18 lines
323 B
C
18 lines
323 B
C
#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__
|