type.h
来自「文件系统,运行硬件环境:单片机,软件环境:keilc」· C头文件 代码 · 共 62 行
H
62 行
/* 完成对常用类型和常量定义 */
#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 + =
减小字号Ctrl + -
显示快捷键?