📄 timeunit.h
字号:
#include "class.h"
#define TIMERINT 0x08 // 8253 timer0 interrupt number
#define RTCWPORT 0x70 // RTC write port address
#define RTCRPORT 0x71 // RTC read port address
#define TMRWPORT 0x40 // timer0 io port address
#define SECREG 0x00 // RTC second register address
#define MINREG 0x02 // RTC minute register address
#define HOURREG 0x04 // RTC hour register address
#define DAYREG 0x07 // RTC day register address
#define MONREG 0x08 // RTC month register address
#define YEARREG 0x09 // RTC year register address
#define CENREG 0x32 // RTC century register address
#define SETREG 0x0b // RTC setup register address
#define STREG 0x0a // RTC status register address
//#define NORCNTH 0x04 // timer0 normal const high byte
//#define NORCNTL 0xaa // timer0 normal const low byte 1ms
#define NORCNTH 0x00 // timer0 normal const high byte
#define NORCNTL 0x00 // timer0 normal const low byte 2ms
#define ORGCNTH 0x00 // timer0 orignal const high byte
#define ORGCNTL 0x00 // timer0 orignal const low byte
int monthtab[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
extern BOOLEAN port_run_flag[10];
extern struct ykoperation_t ykoper; //defined in ykclass.h mainprog.h used in ykclass.cpp
struct isatimer_t isatimer[10]; //struct isatimer_t is defined in common.h used in isaclass.h
extern unsigned int cdt_timer;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -