This commit is contained in:
edisondeng
2026-07-31 13:57:06 +08:00
parent d8df5d49d3
commit a7a2cc9465
23 changed files with 902 additions and 328 deletions

View File

@@ -53,7 +53,7 @@ bit EventQueue_IsFull(void);
u8 EventQueue_GetCount(void);
/* ====== 事件分发环与定时器驱动初始化 ====== */
/* ====== 事件分发环 ====== */
/**
* @brief 事件分发轮询主处理程序
@@ -62,13 +62,7 @@ u8 EventQueue_GetCount(void);
*/
void Event_Dispatcher_Loop(void);
/**
* @brief 初始化 Timer1 定时器,生成系统基准时钟 (1ms 中断)
* @details 配置定时器 1 为 16 位自动重装载模式,设定中断周期为 1.0 毫秒,开启 Timer1 中断并启动计数。
*/
void Timer1_Init(void);
// 主循环按键扫描定时标志 (由 1ms 中断置 1主循环响应清除)
// 主循环按键扫描定时标志 (由 Drivers/timer.c 的 Timer1 1ms 中断置 1主循环响应清除)
extern volatile bit key_scan_flag;
/**