使用stm32cube(HAL库)在keil中为stm32l053r8 nucleo生成getTing()
Generate getTick() in keil using stm32cube(HAL libary) for stm32l053r8 nucleo
如何使用stm32cube(HAL库)在keil中为stm32l053r8核板生成getTick()函数......
void Pedometer::newStep()
{
old_time = new_time; //time in msec of last step
new_time = getTick(); //time in msec of new step
float time = new_time - old_time; //time in msec between
}
检查CubeL0中的HAL_GetTick函数。
语法:
uint32_t HAL_GetTick ( void )
(参考文件第56页"Description of STM32L0xx HAL drivers")
如何使用stm32cube(HAL库)在keil中为stm32l053r8核板生成getTick()函数......
void Pedometer::newStep()
{
old_time = new_time; //time in msec of last step
new_time = getTick(); //time in msec of new step
float time = new_time - old_time; //time in msec between
}
检查CubeL0中的HAL_GetTick函数。
语法:
uint32_t HAL_GetTick ( void )
(参考文件第56页"Description of STM32L0xx HAL drivers")