This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit c7a1dce10a6fe7e2967ba98fc267e62b8bddcb1e
Author: raiden00pl <[email protected]>
AuthorDate: Sat Oct 24 09:30:48 2026 +0200

    arch/arm/src/common/stm32: show LPTIM PWM options only on STM32L4
    
    Only the STM32L4 PWM driver supports LPTIM PWM and it is the only user
    of the LPTIM clock source choice.  Offer both only where they are used.
    
    Signed-off-by: raiden00pl <[email protected]>
    Assisted-by: Claude Code
---
 arch/arm/src/common/stm32/Kconfig.tim | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/common/stm32/Kconfig.tim 
b/arch/arm/src/common/stm32/Kconfig.tim
index 333d51695b9..39735f54260 100644
--- a/arch/arm/src/common/stm32/Kconfig.tim
+++ b/arch/arm/src/common/stm32/Kconfig.tim
@@ -943,6 +943,7 @@ endchoice
 choice
        prompt "LPTIM1 clock source"
        default STM32_LPTIM1_CLK_APB1
+       depends on STM32_LPTIM1_PWM
 
 config STM32_LPTIM1_CLK_APB1
        bool "Clock LPTIM1 from APB1"
@@ -961,6 +962,7 @@ endchoice
 choice
        prompt "LPTIM2 clock source"
        default STM32_LPTIM2_CLK_APB1
+       depends on STM32_LPTIM2_PWM
 
 config STM32_LPTIM2_CLK_APB1
        bool "Clock LPTIM2 from APB1"
@@ -4059,7 +4061,7 @@ config STM32_LPTIM5_CLOCK
 
 config STM32_LPTIM1_PWM
        bool "LPTIM1 PWM"
-       depends on STM32_COMMON_L4_L5_U5 && STM32_LPTIM1
+       depends on ARCH_CHIP_STM32L4 && STM32_LPTIM1
        select PWM
        ---help---
                Reserve low-power timer 1 for use by PWM
@@ -4071,7 +4073,7 @@ config STM32_LPTIM1_PWM
 
 config STM32_LPTIM2_PWM
        bool "LPTIM2 PWM"
-       depends on STM32_COMMON_L4_L5_U5 && STM32_LPTIM2
+       depends on ARCH_CHIP_STM32L4 && STM32_LPTIM2
        select PWM
        ---help---
                Reserve low-power timer 2 for use by PWM

Reply via email to