timeunit.h

来自「基于PC104平台」· C头文件 代码 · 共 28 行

H
28
字号
#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 + =
减小字号Ctrl + -
显示快捷键?