mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
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 <jsanchez@2g-eng.com>
This commit is contained in:
parent
e570885eb7
commit
6189fefdcf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue