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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6189fefdcfd arm/stm32h7: Include LSI helper when both consumers are 
enabled.
6189fefdcfd is described below

commit 6189fefdcfd4b85293f7653063ab426948662c8f
Author: jsanchez-2g <[email protected]>
AuthorDate: Thu Oct 8 09:08:57 2026 -0500

    arm/stm32h7: Include LSI helper when both consumers are enabled.
    
    The filter expression for CONFIG_STM32_IWDG and CONFIG_STM32_RTC_LSICLOCK
    returns "y y" when both are enabled. Comparing that result with "y"
    omits stm32_lsi.c, leaving calls to stm32_rcc_enablelsi() unresolved.
    
    Test for a nonempty result instead. Include the helper once when either
    or both consumers are enabled, and omit it when neither is enabled.
    This changes source selection only, without changing clock or watchdog
    policy.
    
    Assisted-by: Codex:GPT-6
    Signed-off-by: jsanchez-2g <[email protected]>
---
 arch/arm/src/stm32h7/Make.defs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/stm32h7/Make.defs b/arch/arm/src/stm32h7/Make.defs
index abcb35307f0..5120ab178b8 100644
--- a/arch/arm/src/stm32h7/Make.defs
+++ b/arch/arm/src/stm32h7/Make.defs
@@ -99,7 +99,7 @@ ifeq ($(CONFIG_STM32_FMC),y)
 CHIP_CSRCS += stm32_fmc.c
 endif
 
-ifeq ($(filter y,$(CONFIG_STM32_IWDG) $(CONFIG_STM32_RTC_LSICLOCK)),y)
+ifneq ($(filter y,$(CONFIG_STM32_IWDG) $(CONFIG_STM32_RTC_LSICLOCK)),)
 CHIP_CSRCS += stm32_lsi.c
 endif
 

Reply via email to