?? sys_time.h
字號:
/* sys_time.h */
#ifndef SYS_TIME_H
#define SYS_TIME_H
#ifdef __cplusplus
extern "C"
{
#endif
typedef void (* TIMER_FUNC)(void);
#define TICK_CNT_PER_SECOND (unsigned char)(50)
#define TIMER_NUMBER 1
#define TIMER_PROC_PAGE 0
#define TIMER_PROC_LCD_LIGHT 1
#define TIMER_PROC_PROG 2
#define TIMER_PROC_CHECK_ATT702X 4
// time
typedef struct _sys_time_
{
unsigned char chksum;
//seconds
unsigned char seconds;
//minutes
unsigned char minutes;
//hours
unsigned char hours;
//days
unsigned char days;
} _sys_time_s;
extern const unsigned char days_every_month[];
extern _sys_time_s _sys_time;
extern unsigned char _calc_demand_timer;
extern unsigned char _current_minute;
extern unsigned short TimerCounter[TIMER_NUMBER];
extern void _crossDayDetect(void);
extern void _redundancy_timer(void);
extern void _get_sys_time_bcd(unsigned char *time_bcd);
extern void _get_sys_time_hex(void);
extern void _set_system_time(unsigned char *time);
extern void calc_week(unsigned char *time);
extern void _init_sys_time_hex(void);
extern void _daybreak();
#ifdef __cplusplus
}
#endif
#endif /* SYS_TIME_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -