优化调试新增按键驱动
This commit is contained in:
@ -47,3 +47,16 @@ void hal_delay_us(uint32_t us) {
|
||||
#error "Unsupported HAL architecture"
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get current system tick count in milliseconds
|
||||
* @return Current tick count in milliseconds
|
||||
*/
|
||||
uint32_t hal_get_tick(void) {
|
||||
/* Call architecture specific tick implementation */
|
||||
#if HAL_TARGET_ARCH == HAL_ARCH_STM32F4
|
||||
return hal_stm32f4_get_tick();
|
||||
#else
|
||||
#error "Unsupported HAL architecture"
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user