[NUCLEO_F103RB] update SystemCoreClock after changing clock settings

pull/724/head
Yihui Xiong 2014-11-19 13:51:12 +08:00
parent 34eccbf435
commit 72e2d393a6
1 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,8 @@ void SystemInit (void)
/* Configure the System clock frequency, HCLK, PCLK2 and PCLK1 prescalers */
/* Configure the Flash Latency cycles and enable prefetch buffer */
SetSysClock();
SystemCoreClockUpdate();
}
/**