📄 normal.h
字号:
#include<absacc.h>
#include<string.h>
#include "reg52.h"
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
#define TRUE 1
#define FALSE 0
sbit RFRST=P1^3;
sbit SOUND=P1^7;
struct BIOStm
{
uchar tm_year;
uchar tm_mon;
uchar tm_day;
uchar tm_hour;
uchar tm_min;
uchar tm_sec;
};
struct STRUCT_INT {
uchar char1;
uchar char2;
};
union UNION_INT {
uint int_int;
struct STRUCT_INT struct_int;
};
struct STRUCT_ULONG {
uchar char1;
uchar char2;
uchar char3;
uchar char4;
};
union UNION_ULONG {
ulong ulong_ulong;
struct STRUCT_ULONG struct_ulong;
};
typedef bit BOOL;
typedef unsigned char BYTE;
typedef unsigned int UWORD;
typedef unsigned long ULONG;
typedef unsigned int ACCADR; /*当需要用地址访问外部数据时,建议用此类型定义*/
// ------------------------------------------------
// ------------------------------------------------
typedef struct
{
BYTE charH;
BYTE charL;
} STRUCTINT;
typedef struct
{
BYTE char1;
BYTE char2;
BYTE char3;
BYTE char4;
}STRUCTLONG ;
typedef union
{
UWORD btint;
STRUCTINT stint;
}UNWORD ;
// ------------------------------------------------
// ------------------------------------------------
typedef union
{
ULONG btlong;
STRUCTLONG stlong;
}UNLONG ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -