📄 lcdconf.h
字号:
#ifndef __LCDCONF_H#define __LCDCONF_H/*********************************************************************** General configuration of LCD************************************************************************/#define LCD_XSIZE (320) /* X-resolution of LCD, Logical coor. */#define LCD_YSIZE (240) /* Y-resolution of LCD, Logical coor. */#define LCD_BITSPERPIXEL (2) // Bpp.#define LCD_BUSWIDTH (8)//(8)#define LCD_CONTROLLER 1375 // 控制器型号.//#define LCD_FIXEDPALETTE (323)#define LCD_MIRROR_Y 1#define LCD_MIRROR_X 1#define LCD_SWAP_RB 1 // 红绿位置交换.#define I8 signed char#define U8 unsigned char /* unsigned 8 bits. */#define I16 signed short /* signed 16 bits. */#define U16 unsigned short /* unsigned 16 bits. */#define I32 signed long /* signed 32 bits. */#define U32 unsigned long /* unsigned 32 bits. */#define I16P I16 /* signed 16 bits OR MORE ! */#define U16P U16 /* unsigned 16 bits OR MORE ! *//********************************************************************** Full bus configuration***********************************************************************//*#define LCD_READ_MEM(Off) *((U16*) (0xc00000+(((U32)(Off))<<1)))#define LCD_WRITE_MEM(Off,data) *((U16*) (0xc00000+(((U32)(Off))<<1)))=data#define LCD_READ_REG(Off) *((volatile U16*)(0xc1ffe0+(((U16)(Off))<<1)))#define LCD_WRITE_REG(Off,data) *((volatile U16*)(0xc1ffe0+(((U16)(Off))<<1)))=data// 将所有对 Video RAM 的操作放在 LCD13XX.C 文件中, 避免编译问题.*//********************************************************************** Init sequence for 8 bit access***********************************************************************/#endif /* LCDCONF_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -