arch/{nrf52|nrf53}/Kconfig: hide PWM options if PWM not enabled

This commit is contained in:
raiden00pl 2023-05-31 17:12:55 +02:00 committed by Petro Karashchenko
parent 7c2930c3df
commit a3b91bc183
2 changed files with 8 additions and 0 deletions

View File

@ -465,6 +465,8 @@ endmenu # GPIO Interrupt Configuration
menu "PWM configuration"
if NRF52_PWM
config NRF52_PWM_MULTICHAN
bool "PWM Multiple Output Channels"
default n
@ -613,6 +615,8 @@ config NRF52_PWM3_CHANNEL
endif # !NRF52_PWM_MULTICHAN
endif # NRF52_PWM
endmenu # PWM configuration
menu "SAADC Configuration"

View File

@ -457,6 +457,8 @@ config NRF53_PROGMEM
menu "PWM configuration"
if NRF53_PWM
config NRF53_PWM_MULTICHAN
bool "PWM Multiple Output Channels"
default n
@ -571,6 +573,8 @@ config NRF53_PWM2_CHANNEL
endif # !NRF53_PWM_MULTICHAN
endif # NRF53_PWM
endmenu # PWM configuration
menu "SAADC Configuration"