type.h
资源名称:RFID.rar [点击查看]
上传用户:njxy551199
上传日期:2022-04-06
资源大小:1990k
文件大小:1k
源码类别:
RFID编程
开发平台:
C/C++
- #ifndef _TYPE_H_
- #define _TYPE_H_
- //#include "reg52x2.h"
- #ifndef NULL
- #define NULL ((void *) 0L) /*Stdlib.h and String.h already include NULL */
- #endif
- //类型定义
- typedef bit bool;
- typedef unsigned char byte;
- typedef unsigned int word;
- typedef unsigned long dword;
- typedef bit U1;
- typedef unsigned char U8;
- typedef unsigned int U16;
- typedef unsigned long U32;
- typedef char S8;
- typedef int S16;
- typedef long S32;
- //typedef unsigned char uchar;
- //typedef unsigned int uint;
- typedef void (*Function)(void);
- #define FUNC(u16Val) (*(Function)u16Val)()
- /*定义常量*/
- //#define TRUE (U1)1
- //#define FALSE (U1)0
- //#define ERROR 0xFF
- ///#define DP51
- #endif