type.h

来自「ARM+MP3+USBHOST(at91sam7s64+vs1003b+ch37」· C头文件 代码 · 共 67 行

H
67
字号
#ifndef __DATA_TYPE__
#define __DATA_TYPE__

typedef unsigned char      Byte;
typedef unsigned char      BYTE;
typedef unsigned char      byte;
typedef unsigned char      Uchar;
typedef unsigned char      uchar;
typedef unsigned short     Uint16;
typedef unsigned short     WORD;
typedef unsigned short     uint; 
typedef unsigned char      Uint8;
typedef short              Int16;
typedef float              Float16;
typedef unsigned long int  Uint32;
typedef long int           Int32;

typedef unsigned char      INT8U;
typedef unsigned short     INT16U;
typedef unsigned long      INT32U;
typedef unsigned long      DWORD;

typedef unsigned int       BOOL;


#ifndef NULL
#define NULL    ((void *)0)
#endif

#ifndef FALSE
#define FALSE   (0)
#endif

#ifndef TRUE
#define TRUE    (1)
#endif






#define OK    1
#define KO    0


#define LOW(U16)   ((Byte)U16)
#define HIGH(U16)  ((Byte)(U16>>8))


typedef union 
{
  Uint32 l;
  Uint16 w[2];
  Byte   b[4];
} Union32;


typedef union 
{

  Uint16 w;
  Byte   b[2];
} Union16;


#endif

⌨️ 快捷键说明

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