From bb5be4d19ad0ea04ae78401d338d76850fb0ffc8 Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Sat, 1 Mar 2025 15:34:20 +0800 Subject: [PATCH] fix:nxp pwm kconfig --- bsp/nxp/mcx/mcxa/frdm-mcxa153/board/Kconfig | 4 +- bsp/nxp/mcx/mcxa/frdm-mcxa156/board/Kconfig | 44 ++++++++------------- 2 files changed, 19 insertions(+), 29 deletions(-) diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa153/board/Kconfig b/bsp/nxp/mcx/mcxa/frdm-mcxa153/board/Kconfig index b7521d5d07..bfb840f930 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa153/board/Kconfig +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa153/board/Kconfig @@ -131,10 +131,10 @@ menu "On-chip Peripheral Drivers" config BSP_USING_PWM0 bool "Enable eFlex PWM0" default n - config BSP_USING_PWM1 + config BSP_USING_PWM1 bool "Enable eFlex PWM1" default n - config BSP_USING_PWM2 + config BSP_USING_PWM2 bool "Enable eFlex PWM2" default n endif diff --git a/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/Kconfig b/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/Kconfig index 19bc796646..bc13fcdb5c 100644 --- a/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/Kconfig +++ b/bsp/nxp/mcx/mcxa/frdm-mcxa156/board/Kconfig @@ -132,33 +132,23 @@ menu "On-chip Peripheral Drivers" default n endif - menuconfig BSP_USING_PWM - config BSP_USING_PWM - bool "Enable PWM" - select RT_USING_PWM - default y - - if BSP_USING_PWM - config BSP_USING_CTIMER1_MAT0 - bool "Enable CIMER1 Match0 as PWM output" - default y - - config BSP_USING_CTIMER2_MAT0 - bool "Enable CIMER2 Match0 as PWM output" - default n - - config BSP_USING_CTIMER2_MAT1 - bool "Enable CIMER2 Match1 as PWM output" - default n - - config BSP_USING_CTIMER2_MAT2 - bool "Enable CIMER2 Match2 as PWM output" - default n - - config BSP_USING_CTIMER3_MAT2 - bool "Enable CIMER3 Match2 as PWM output" - default n - endif + menuconfig BSP_USING_PWM + config BSP_USING_PWM + bool "Enable PWM" + select RT_USING_PWM + default n + + if BSP_USING_PWM + config BSP_USING_PWM0 + bool "Enable eFlex PWM0" + default n + config BSP_USING_PWM1 + bool "Enable eFlex PWM1" + default n + config BSP_USING_PWM2 + bool "Enable eFlex PWM2" + default n + endif endmenu