mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 09:32:28 +08:00
[bsp] update clock before configure systick
This commit is contained in:
@@ -60,6 +60,7 @@ void SysTick_Handler(void)
|
||||
*/
|
||||
void rt_hw_board_init()
|
||||
{
|
||||
SystemCoreClockUpdate();
|
||||
SysTick_Config(SystemCoreClock / RT_TIMER_TICK_PER_SECOND);
|
||||
|
||||
#ifdef RT_USING_COMPONENTS_INIT
|
||||
|
||||
Reference in New Issue
Block a user