File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ void rt_hw_board_init()
6565#endif
6666
6767 /* init systick */
68- SysTick_Config ( SystemCoreClock /RT_TICK_PER_SECOND - 1 );
68+ SysTick_Config (SystemCoreClock /RT_TICK_PER_SECOND );
6969 /* set pend exception priority */
7070 NVIC_SetPriority (PendSV_IRQn , (1 <<__NVIC_PRIO_BITS ) - 1 );
7171
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void rt_hw_board_init()
5252#endif
5353
5454 /* init systick */
55- SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND - 1 );
55+ SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND );
5656 /* set pend exception priority */
5757 NVIC_SetPriority (PendSV_IRQn , (1 << __NVIC_PRIO_BITS ) - 1 );
5858 /*init uart device*/
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ void rt_hw_board_init()
6060#endif
6161 SystemCoreClockUpdate ();
6262 /* init systick 1 systick = 1/(100M / 100) 100¸ösystick = 1s*/
63- SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND - 1 );
63+ SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND );
6464 /* set pend exception priority */
6565 NVIC_SetPriority (PendSV_IRQn , (1 << __NVIC_PRIO_BITS ) - 1 );
6666
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ void SysTick_Handler(void)
4848void rt_hw_board_init ()
4949{
5050 /* init systick */
51- SysTick_Config (SystemFrequency /RT_TICK_PER_SECOND - 1 );
51+ SysTick_Config (SystemFrequency /RT_TICK_PER_SECOND );
5252}
5353
5454/*@}*/
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ void rt_hw_board_init()
5656 SystemCoreClockUpdate ();
5757
5858 /* init systick */
59- SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND - 1 );
59+ SysTick_Config (SystemCoreClock / RT_TICK_PER_SECOND );
6060
6161 /* set pend exception priority */
6262 NVIC_SetPriority (PendSV_IRQn , (1 << __NVIC_PRIO_BITS ) - 1 );
You can’t perform that action at this time.
0 commit comments