00001 #ifndef __DEF_H__
00002 #define __DEF_H__
00003
00004 #define U32 unsigned int
00005 #define U16 unsigned short
00006 #define S32 int
00007 #define S16 short int
00008 #define U8 unsigned char
00009 #define S8 char
00010
00011 typedef union{
00012 U32 u32;
00013 U8 u8[4];
00014 }UN_UL;
00015
00016 typedef union{
00017 U16 u16;
00018 U8 u8[2];
00019 }UN_UI;
00020
00021 #define TRUE 1
00022 #define FALSE 0
00023
00024 #define R_ERROR unsigned char
00025 #define R_NO_ERROR 0 // R_... means return value
00026 #define R_IS_ERROR 1
00027
00028 #endif
00029