From a3b91bc183bd5568fcab1875ca2aca6d01d2a863 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Wed, 31 May 2023 17:12:55 +0200 Subject: [PATCH] arch/{nrf52|nrf53}/Kconfig: hide PWM options if PWM not enabled --- arch/arm/src/nrf52/Kconfig | 4 ++++ arch/arm/src/nrf53/Kconfig | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/src/nrf52/Kconfig b/arch/arm/src/nrf52/Kconfig index 59037539e2..6b44e4af40 100644 --- a/arch/arm/src/nrf52/Kconfig +++ b/arch/arm/src/nrf52/Kconfig @@ -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" diff --git a/arch/arm/src/nrf53/Kconfig b/arch/arm/src/nrf53/Kconfig index c8a4853835..6250478dc6 100644 --- a/arch/arm/src/nrf53/Kconfig +++ b/arch/arm/src/nrf53/Kconfig @@ -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"