include.h

来自「C语言单片机编程的代码及教程文献」· C头文件 代码 · 共 84 行

H
84
字号

#include<aduc845.h>
#include"LCD_51.h"

/*常用数据类型的重命名*/
#ifndef __uchar_
#define uchar unsigned char 
#endif

#ifndef __uint_
#define uint unsigned int
#endif

#ifndef __ulong_
#define ulong unsigned long int
#endif


//定义日期结构
struct date
 {	
    uchar day;
	uchar week;
	uchar month;
    uint year;
 };


//定义时间结构
struct time
 {
   uchar second;
   uchar minute;
   uchar hour;
 };


//定义时间显示结构
struct disptime
 {
   uchar hour[3];
   uchar minute[3];
   uchar second[3];
 };


//定义日期显示结构
struct dispdate
 {
   uchar day[3];
   uchar month[3];
   uchar year[5];
 };






























⌨️ 快捷键说明

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