📄 type.h
字号:
/* 完成对常用类型和常量定义 */
#ifndef __TYPE_H__
#define __TYPE_H__
#ifdef __CX51__
#ifndef __C51__
#define __C51__ 1
#endif
#endif
#ifdef __C51__
typedef bit bdata BOOL;
#else
#define data
#define idata
#define xdata
typedef unsigned char BOOL;
#endif
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
#ifndef NULL
#define NULL 0
#endif
#ifndef UINT8
typedef unsigned char UINT8;
#endif
#ifndef UINT16
typedef unsigned short UINT16;
#endif
#ifndef UINT32
typedef unsigned long UINT32;
#endif
#ifndef PUINT8
typedef unsigned char *PUINT8;
#endif
#ifndef PUINT16
typedef unsigned short *PUINT16;
#endif
#ifndef PUINT32
typedef unsigned long *PUINT32;
#endif
#ifndef UINT8V
typedef unsigned char volatile UINT8V;
#endif
#ifdef __C51__
typedef unsigned char code UINT8C;
typedef unsigned char code *PUINT8C;
typedef unsigned char volatile xdata UINT8XV;
#else
typedef const unsigned char UINT8C;
typedef const unsigned char *PUINT8C;
typedef unsigned char volatile UINT8XV;
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -