|
@@ -60,7 +60,7 @@ void rt_hw_board_init()
|
|
|
#endif
|
|
|
SystemCoreClockUpdate();
|
|
|
/* init systick 1 systick = 1/(100M / 100) 100¸ösystick = 1s*/
|
|
|
- SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND - 1);
|
|
|
+ SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND);
|
|
|
/* set pend exception priority */
|
|
|
NVIC_SetPriority(PendSV_IRQn, (1 << __NVIC_PRIO_BITS) - 1);
|
|
|
|