Files
stc32g128k/App/clock.h

19 lines
452 B
C
Raw Normal View History

#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;
extern volatile bit second_tick_flag; // 整秒滴答标志位,每次 current_sec 递增时置 1供主循环转换为事件
/**
* @brief ( 1ms )
*/
void Clock_IncMS(void);
#endif // __CLOCK_H__