t

Fork of mbed-dev by mbed official

Revision:
167:e84263d55307
Parent:
150:02e0a0aed4ec
--- a/targets/TARGET_STM/TARGET_STM32L1/mbed_overrides.c	Thu Jun 08 15:02:37 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32L1/mbed_overrides.c	Wed Jun 21 17:46:44 2017 +0100
@@ -35,7 +35,6 @@
 {
     // Update the SystemCoreClock variable.
     SystemCoreClockUpdate();
-    // Need to restart HAL driver after the RAM is initialized
     HAL_Init();
 
 #if defined(TARGET_XDOT_L151CC)
@@ -44,4 +43,9 @@
         xdot_disable_standby_wake_pin();
     }
 #endif /* TARGET_XDOT_L151CC */
+
+    /* Configure the System clock source, PLL Multiplier and Divider factors,
+       AHB/APBx prescalers and Flash settings */
+    SetSysClock();
+    SystemCoreClockUpdate();
 }