Skip to content

Commit ceef654

Browse files
committed
fix sysTickMillisecond to _systick_ms of drv_common.c in stm32 bsp
1 parent 88133da commit ceef654

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bsp/stm32/libraries/HAL_Drivers/drv_common.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ MSH_CMD_EXPORT(reboot, Reboot System);
2929
#endif /* RT_USING_FINSH */
3030

3131
extern __IO uint32_t uwTick;
32-
static uint32_t sysTickMillisecond = 1;
32+
static uint32_t _systick_ms = 1;
3333

3434
/* SysTick configuration */
3535
void rt_hw_systick_init(void)
@@ -38,9 +38,9 @@ void rt_hw_systick_init(void)
3838

3939
NVIC_SetPriority(SysTick_IRQn, 0xFF);
4040

41-
sysTickMillisecond = 1000u / RT_TICK_PER_SECOND;
42-
if(sysTickMillisecond == 0)
43-
sysTickMillisecond = 1;
41+
_systick_ms = 1000u / RT_TICK_PER_SECOND;
42+
if(_systick_ms == 0)
43+
_systick_ms = 1;
4444
}
4545

4646
/**
@@ -71,7 +71,7 @@ uint32_t HAL_GetTick(void)
7171

7272
void HAL_IncTick(void)
7373
{
74-
uwTick += sysTickMillisecond;
74+
uwTick += _systick_ms;
7575
}
7676

7777
void HAL_SuspendTick(void)

0 commit comments

Comments
 (0)