00001 #ifndef DEFINE_H 00002 #define DEFINE_H 00003 00004 typedef unsigned char UCHAR; 00005 typedef unsigned int UINT; 00006 typedef unsigned long ULONG; 00007 typedef unsigned char UC; 00008 typedef unsigned int UI; 00009 typedef unsigned long UL; 00010 typedef unsigned char INT8U; 00011 typedef unsigned int INT16U; 00012 typedef unsigned long INT32U; 00013 typedef unsigned char INT8; 00014 typedef unsigned int INT16; 00015 typedef unsigned long INT32; 00016 00017 #define TRUE 1 00018 #define FALSE 0 00019 00020 typedef union{ 00021 UI ui; 00022 UC uc[2]; 00023 }UN_UI; 00024 00025 typedef union{ 00026 UL ul; 00027 UC uc[4]; 00028 }UN_UL; 00029 00030 #define ENABLE_DEBUG 0 00031 #define BAUDRATE 9600 // 9600bps ,19200, 38400 00032 00033 #endif