mbed library sources. Supersedes mbed-src. Add PORTG support for STM32L476JG (SensorTile kit)

Dependents:   SensorTileTest

Fork of mbed-dev by mbed official

Revision:
148:21d94c44109e
Parent:
144:ef7eb2e8f9f7
diff -r 30b64687e01f -r 21d94c44109e targets/hal/TARGET_STM/TARGET_STM32L1/sleep.c
--- a/targets/hal/TARGET_STM/TARGET_STM32L1/sleep.c	Fri Sep 16 16:24:25 2016 +0100
+++ b/targets/hal/TARGET_STM/TARGET_STM32L1/sleep.c	Fri Sep 30 18:07:01 2016 +0100
@@ -29,6 +29,7 @@
  */
 #include "sleep_api.h"
 #include "hal_tick.h"
+#include "rtc_api_hal.h"
 
 #if DEVICE_SLEEP
 
@@ -90,6 +91,10 @@
 
     // Restart HAL systick
     HAL_ResumeTick();
+
+#if DEVICE_LOWPOWERTIMER
+    rtc_synchronize();
+#endif
 }
 
 #endif