📄 sys_time.h
字号:
/* sys_time.h */
#ifndef SYS_TIME_H
#define SYS_TIME_H
#ifdef __cplusplus
extern "C"
{
#endif
#define TICK_CNT_PER_SECOND 4
// time
typedef struct _sys_time_
{
unsigned char chksum;
//seconds
unsigned char seconds;
//minutes
unsigned char minutes;
//hours
unsigned char hours;
//week
unsigned char week;
//days
unsigned char days;
//months
unsigned char months;
//year
unsigned char years;
} _sys_time_s;
extern _sys_time_s _sys_time;
extern unsigned char _tick_counter;
extern void second_up(void);
extern void _get_sys_time_bcd(unsigned char *time_bcd);
extern void _set_sys_time_hex(unsigned char *time_hex);
#ifdef __cplusplus
}
#endif
#endif /* SYS_TIME_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -