www.pudn.com > Source_program.rar > lcd.h
/***********************************************/ // 定义LCD控制器寄存器设置值等。 /***********************************************/ #ifndef __LCD_H__ #define __LCD_H__ //#include "..\Target\Def.h" #define BLACK 0x0 #define ALLBLACK ((BLACK << 24) | (BLACK << 16) | (BLACK << 8) | BLACK) #define WHITE 0xff #define ALLWHITE ((WHITE << 24) | (WHITE << 16) | (WHITE << 8) | WHITE) #define LIGHTGRAY 0xa0 #define DARKGRAY 0x50 #define TRANSPARENCY 0xff #define RED 0xe0 #define GREEN 0x1c #define BLUE 0x03 #define SCR_XSIZE (320) #define SCR_YSIZE (240) #define COLOR_NUMBER 256 #define LCD_XSIZE (320) #define LCD_YSIZE (240) #define M5D(n) ((n) & 0x1fffff) #define ARRAY_SIZE_COLOR (SCR_XSIZE/1*SCR_YSIZE) #define HOZVAL (LCD_XSIZE/4-1) #define HOZVAL_COLOR (LCD_XSIZE*3/8-1) #define LINEVAL (LCD_YSIZE-1) #define MVAL (13) #define CLKVAL_COLOR (4) //60Mhz #define MVAL_USED 0 #define LCD_BUF_SIZE (SCR_XSIZE * SCR_YSIZE) void Lcd_Init(void); void LcdDraw_backgroundcolor(unsigned char color_code); void LcdDrawbox(int V_offset, int H_offset, int V_size, int H_size, unsigned char color_code); void Test_LCD(void); #endif