Browse Source

soc: stm32f1x: fix typo/debug in stop/standby modes

Check for STM32F1 series was done with "#ifdef SOC_SERIES_STM32F1X"
but this symbol comes from Kconfig.

Use the correct "CONFIG_SOC_SERIES_STM32F1X" instead.

Signed-off-by: Oleh Kravchenko <oleg@kaa.org.ua>
pull/92661/merge
Oleh Kravchenko 5 days ago committed by Daniel DeGrasse
parent
commit
a75abdc5df
  1. 4
      soc/st/stm32/common/soc_config.c

4
soc/st/stm32/common/soc_config.c

@ -69,7 +69,7 @@ static int st_stm32_common_config(void)
#if defined(CONFIG_STM32_ENABLE_DEBUG_SLEEP_STOP) #if defined(CONFIG_STM32_ENABLE_DEBUG_SLEEP_STOP)
#if defined(SOC_SERIES_STM32F1X) #if defined(CONFIG_SOC_SERIES_STM32F1X)
LL_DBGMCU_EnableDBGSleepMode(); LL_DBGMCU_EnableDBGSleepMode();
LL_DBGMCU_EnableDBGStopMode(); LL_DBGMCU_EnableDBGStopMode();
LL_DBGMCU_EnableDBGStandbyMode(); LL_DBGMCU_EnableDBGStandbyMode();
@ -89,7 +89,7 @@ static int st_stm32_common_config(void)
#else #else
/* keeping in mind that debugging draws a lot of power we explcitly disable when not needed */ /* keeping in mind that debugging draws a lot of power we explcitly disable when not needed */
#if defined(SOC_SERIES_STM32F1X) #if defined(CONFIG_SOC_SERIES_STM32F1X)
LL_DBGMCU_DisableDBGSleepMode(); LL_DBGMCU_DisableDBGSleepMode();
LL_DBGMCU_DisableDBGStopMode(); LL_DBGMCU_DisableDBGStopMode();
LL_DBGMCU_DisableDBGStandbyMode(); LL_DBGMCU_DisableDBGStandbyMode();

Loading…
Cancel
Save