Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/sleep.c
- Revision:
- 166:cb4253f91ada
- Parent:
- 84:f54042cbc282
- Child:
- 216:577900467c9e
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/sleep.c Tue Apr 22 15:00:07 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F030R8/sleep.c Tue Apr 22 16:00:06 2014 +0100
@@ -28,6 +28,9 @@
*******************************************************************************
*/
#include "sleep_api.h"
+
+#if DEVICE_SLEEP
+
#include "cmsis.h"
void sleep(void)
@@ -51,4 +54,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();
}
+
+#endif
