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.
Dependents: Hobbyking_Cheetah_Compact Hobbyking_Cheetah_Compact_DRV8323_14bit Hobbyking_Cheetah_Compact_DRV8323_V51_201907 HKC_MiniCheetah ... more
Fork of mbed-dev by
Diff: targets/hal/TARGET_STM/TARGET_STM32F3/sleep.c
- Revision:
- 148:21d94c44109e
- Parent:
- 144:ef7eb2e8f9f7
--- a/targets/hal/TARGET_STM/TARGET_STM32F3/sleep.c Fri Sep 16 16:24:25 2016 +0100
+++ b/targets/hal/TARGET_STM/TARGET_STM32F3/sleep.c Fri Sep 30 18:07:01 2016 +0100
@@ -28,6 +28,7 @@
*******************************************************************************
*/
#include "sleep_api.h"
+#include "rtc_api_hal.h"
#if DEVICE_SLEEP
@@ -51,6 +52,10 @@
// After wake-up from STOP reconfigure the PLL
SetSysClock();
+
+#if DEVICE_LOWPOWERTIMER
+ rtc_synchronize();
+#endif
}
#endif
