fix sysTickMillisecond to _systick_ms of drv_common.c in stm32 bsp

This commit is contained in:
malongwei 2021-10-12 15:27:48 +08:00
parent 88133da8e5
commit ceef6543ee
1 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ MSH_CMD_EXPORT(reboot, Reboot System);
#endif /* RT_USING_FINSH */ #endif /* RT_USING_FINSH */
extern __IO uint32_t uwTick; extern __IO uint32_t uwTick;
static uint32_t sysTickMillisecond = 1; static uint32_t _systick_ms = 1;
/* SysTick configuration */ /* SysTick configuration */
void rt_hw_systick_init(void) void rt_hw_systick_init(void)
@ -38,9 +38,9 @@ void rt_hw_systick_init(void)
NVIC_SetPriority(SysTick_IRQn, 0xFF); NVIC_SetPriority(SysTick_IRQn, 0xFF);
sysTickMillisecond = 1000u / RT_TICK_PER_SECOND; _systick_ms = 1000u / RT_TICK_PER_SECOND;
if(sysTickMillisecond == 0) if(_systick_ms == 0)
sysTickMillisecond = 1; _systick_ms = 1;
} }
/** /**
@ -71,7 +71,7 @@ uint32_t HAL_GetTick(void)
void HAL_IncTick(void) void HAL_IncTick(void)
{ {
uwTick += sysTickMillisecond; uwTick += _systick_ms;
} }
void HAL_SuspendTick(void) void HAL_SuspendTick(void)