优化调试新增按键驱动

This commit is contained in:
冯佳
2026-01-23 13:03:40 +08:00
parent 0a30f956b4
commit 988cc7ad4a
66 changed files with 878713 additions and 1274 deletions

View File

@ -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
}