mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
arch/arm/src/stm32l4/stm32l4x6xx_rcc.c: This fix is needed if HSI clock is selected. Otherwise when waking up from STOP mode, the MSI clock is selected instead of the HSI clock.
This commit is contained in:
@@ -968,6 +968,14 @@ static void stm32l4_stdclockconfig(void)
|
||||
stm32l4_rcc_enablelsi();
|
||||
#endif
|
||||
|
||||
#if defined(STM32L4_BOARD_USEHSI)
|
||||
/* Enable wake-up to HSI from Stop modes */
|
||||
|
||||
regval = getreg32(STM32L4_RCC_CFGR);
|
||||
regval |= RCC_CFGR_STOPWUCK_HSI;
|
||||
putreg32(regval, STM32L4_RCC_CFGR);
|
||||
#endif
|
||||
|
||||
#if defined(STM32L4_USE_LSE)
|
||||
/* Low speed external clock source LSE
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user