mbed library sources
Dependents: Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more
Superseded
This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.
Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.
If you are looking for a stable and tested release, please import one of the official mbed library releases:
Import librarymbed
The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c
- Revision:
- 139:e3413eddde57
- Parent:
- 84:f54042cbc282
- Child:
- 174:8bb9f3a33240
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c Tue Mar 25 17:45:07 2014 +0000 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/sleep.c Thu Mar 27 09:45:07 2014 +0000 @@ -30,6 +30,9 @@ #include "sleep_api.h" #include "cmsis.h" +// This function is in the system_stm32f10x.c file +extern void SetSysClock(void); + void sleep(void) { // Disable us_ticker update interrupt @@ -53,6 +56,9 @@ // Request to enter STOP mode with regulator in low power mode PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI); + // After wake-up from STOP reconfigure the PLL + SetSysClock(); + // Re-enable us_ticker update interrupt TIM_ITConfig(TIM1, TIM_IT_Update, ENABLE); }