mbed library sources
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/sleep.c
- Revision:
- 125:23cc3068a9e4
- Parent:
- 100:0412b5443284
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/sleep.c Tue Mar 18 13:30:07 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/sleep.c Wed Mar 19 10:15:22 2014 +0000 @@ -31,6 +31,9 @@ #include "cmsis.h" #include "stm32f4xx_hal.h" +// This function is in the system_stm32f4xx.c file +extern void SystemClock_Config(void); + static TIM_HandleTypeDef TimMasterHandle; void sleep(void) @@ -43,4 +46,6 @@ { // Request to enter STOP mode with regulator in low power mode HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); + // After wake-up from STOP reconfigure the PLL + SystemClock_Config(); }