⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dongli_24h.h

📁 这段源码包括7279驱动
💻 H
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -