[bsp] update clock before configure systick

This commit is contained in:
tanek liang 2017-07-30 19:21:01 +08:00
parent e2e9afb699
commit 47c7d94799
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ void SysTick_Handler(void)
*/ */
void rt_hw_board_init() void rt_hw_board_init()
{ {
SystemCoreClockUpdate();
SysTick_Config(SystemCoreClock / RT_TIMER_TICK_PER_SECOND); SysTick_Config(SystemCoreClock / RT_TIMER_TICK_PER_SECOND);
#ifdef RT_USING_COMPONENTS_INIT #ifdef RT_USING_COMPONENTS_INIT