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-dev by
Diff: targets/TARGET_STM/TARGET_STM32F1/mbed_overrides.c
- Revision:
- 167:e84263d55307
- Parent:
- 150:02e0a0aed4ec
--- a/targets/TARGET_STM/TARGET_STM32F1/mbed_overrides.c Thu Jun 08 15:02:37 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F1/mbed_overrides.c Wed Jun 21 17:46:44 2017 +0100
@@ -32,6 +32,10 @@
{
// Update the SystemCoreClock variable.
SystemCoreClockUpdate();
- // Need to restart HAL driver after the RAM is initialized
HAL_Init();
+
+ /* Configure the System clock source, PLL Multiplier and Divider factors,
+ AHB/APBx prescalers and Flash settings */
+ SetSysClock();
+ SystemCoreClockUpdate();
}
