diff --git a/bsp/lpc178x/drivers/board.c b/bsp/lpc178x/drivers/board.c index cb974bfa075850a154f7f3e3006709b59febc0e9..42cc85912ae4a0f5b18adb7827fe7d76ef00b5f2 100644 --- a/bsp/lpc178x/drivers/board.c +++ b/bsp/lpc178x/drivers/board.c @@ -65,7 +65,7 @@ void rt_hw_board_init() #endif /* init systick */ - 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); diff --git a/bsp/lpc408x/applications/board.c b/bsp/lpc408x/applications/board.c index d703b1583e9d0ec038de26497e80ea8e3f64f441..f50148ae1c2022a51e1129ec1d6941f7c8163e25 100644 --- a/bsp/lpc408x/applications/board.c +++ b/bsp/lpc408x/applications/board.c @@ -52,7 +52,7 @@ void rt_hw_board_init() #endif /* init systick */ - 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); /*init uart device*/ diff --git a/bsp/lpc5410x/applications/board.c b/bsp/lpc5410x/applications/board.c index d6be4bd50c94674da98dbb89ee1e6f8a7e5f1b50..1fc1803dfcaa3e962a1cea90bc1f3cc89665cc51 100644 --- a/bsp/lpc5410x/applications/board.c +++ b/bsp/lpc5410x/applications/board.c @@ -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); diff --git a/bsp/mb9bf500r/board.c b/bsp/mb9bf500r/board.c index c488471b442da3d962727b597050752ccdb8842c..f9f83d99ed6058319bab2d03405b1abd5053e4e7 100644 --- a/bsp/mb9bf500r/board.c +++ b/bsp/mb9bf500r/board.c @@ -48,7 +48,7 @@ void SysTick_Handler(void) void rt_hw_board_init() { /* init systick */ - SysTick_Config(SystemFrequency/RT_TICK_PER_SECOND - 1); + SysTick_Config(SystemFrequency/RT_TICK_PER_SECOND); } /*@}*/ diff --git a/bsp/xplorer4330/drivers/board.c b/bsp/xplorer4330/drivers/board.c index 421298c19ea5e06e6d7e1d5d8056fe118f616137..b0621b82385484e32b45bbeec1f5eaf526f893dc 100644 --- a/bsp/xplorer4330/drivers/board.c +++ b/bsp/xplorer4330/drivers/board.c @@ -56,7 +56,7 @@ void rt_hw_board_init() SystemCoreClockUpdate(); /* init systick */ - 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);