dongli_24h.h

来自「这段源码包括7279驱动」· C头文件 代码 · 共 39 行

H
39
字号
typedef		unsigned int32	UDWORD;
typedef		unsigned long int	UWORD;
typedef		unsigned char    UCHAR;
//报警时间存储
#define	a_year	0x10
#define a_month	0x11
#define a_date  0x12
//终止时间存储
#define	e_year	0x14
#define e_month	0x15
#define e_date  0x16


#define	first_flag	0x18
#define pd_time		0x19//存储切换时间间隔

//uchar up_flag=0 ;
//**************************************
	struct time
	{
		uchar	year;
		uchar	month;
		uchar	day;
		uchar	hour;
		uchar	min;
	}realtime,endtime,startime,altime;

//**************************************************************
void write7279(unsigned char cmd,unsigned char dta);
void get_endate(uchar year,uchar month,uchar date);
//void disp_time();//显示时间
unsigned char HEX_TO_BCD(unsigned char x);
char delay_int(UWORD c_time);

//*****************************************************************
//#use delay(clock=4000000,RESTART_WDT)
//#fuses XT,WDT

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?