www.pudn.com > TFT.rar > Main.h


#ifndef __MAIN_H 
#define __MAIN_H 
 
//;********************************************************** 
#include  
#include  
 
/* 
//************************************************************************* 
// macros 
//************************************************************************* 
*/ 
#define SWAP(x)   ((((x) & 0xFF) << 8) | (((x) >> 8) & 0xFF)) 
 
#define MSB(x)    (((x) >> 8) & 0xFF) 
#define LSB(x)    ((x) & 0xFF) 
 
#define FALSE   0 
#define TRUE    (!FALSE) 
 
/* 
//************************************************************************* 
// basic typedefs 
//************************************************************************* 
*/ 
typedef unsigned char bool; 
typedef unsigned char uchar; 
typedef unsigned int  uint; 
typedef unsigned long ulong; 
 
typedef unsigned char BOOL; 
typedef unsigned char UCHAR; 
typedef unsigned int  UINT; 
typedef unsigned long ULONG; 
 
typedef unsigned char u8; 
typedef unsigned int  u16; 
typedef unsigned long u32; 
 
typedef unsigned char U8; 
typedef unsigned int  U16; 
typedef unsigned long U32; 
/////////////////////////////////////////////////////////// 
 
void load_bmp_to_ram(void); 
BOOL check_extram(void); 
unsigned int BinBcd(unsigned char); 
 
#endif