重构手环软件架构:实现动态挂载前后台 App 框架,解耦拆分源文件,并引入统一日志宏 xtell.h
This commit is contained in:
17
App/clock.h
Normal file
17
App/clock.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef __CLOCK_H__
|
||||
#define __CLOCK_H__
|
||||
|
||||
#include "config.h"
|
||||
|
||||
// 全局软时钟变量声明
|
||||
extern u8 current_hour;
|
||||
extern u8 current_min;
|
||||
extern u8 current_sec;
|
||||
extern volatile u8 clock_updated;
|
||||
|
||||
/**
|
||||
* @brief 系统软时钟毫秒递增更新 (在 1ms 中断中调用)
|
||||
*/
|
||||
void Clock_IncMS(void);
|
||||
|
||||
#endif // __CLOCK_H__
|
||||
Reference in New Issue
Block a user