type.h

来自「制作Zigbee模块的详细电路原理图和C代码」· C头文件 代码 · 共 55 行

H
55
字号
/*******************************************************************************

       UBEC (Uniband Electronic Corp.)

       Project: U-NET01, Ubiquitous network platform

       File: type.h

       Version: 0.1.1

       Usage:  Data type defitions

       Platform: U-NET01 DK with IAR 8051 C compiler

       Reference:

               Silicon Laboratories: C8051F124

               UBEC: UZ2400

       Note : 

               Copyright (C) 2007 Uniband Electronic Corporation, All rights reserved

********************************************************************************/

#ifndef true
#define 	true 0x1
#endif

#ifndef false
#define	false 0x0
#endif

//Define external memory data type
#define XUINT32	unsigned int __xdata 		
#define XUINT16	unsigned short __xdata	
#define XUINT8	unsigned char __xdata
#define XINT32	int __xdata 
#define XINT16	short __xdata
#define XINT8	char __xdata			
 
#define UINT32	unsigned int  		
#define UINT16	unsigned short 	
#define UINT8	unsigned char 		
#define INT32	int  
#define INT16	short
#define INT8	char 			
#define PUINT32	unsigned int *

//define the BOOLN type
typedef	UINT8	BOOL;

#define EOF     (-1)

⌨️ 快捷键说明

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