Skip to content

Commit 571095e

Browse files
committed
Merge pull request #411 from grissiom/fix-cortex-m
bsp/{cortex-M}: fix the SysTick_Config
2 parents e395c8c + c565925 commit 571095e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bsp/lpc178x/drivers/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

bsp/lpc408x/applications/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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*/

bsp/lpc5410x/applications/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

bsp/mb9bf500r/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void SysTick_Handler(void)
4848
void 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
/*@}*/

bsp/xplorer4330/drivers/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)