2440 TFT lcd寄存器设置的问题
LCDADDR1~LCDADDR3究竟怎么设置,我看了官方提供的测试代码,看的不大懂,求高人详细讲解,我qq:350278081下面是官方的代码:
rLCDSADDR1 = ((LCD_ADDR >> 22) << 21) | ((M5D(LCD_ADDR >> 1)) <<0);//不太懂????
rLCDSADDR2 = M5D((LCD_ADDR + LCD_WIDTH * LCD_HEIGHT * 2) >> 1);//??????
rLCDSADDR3 = LCD_WIDTH;//?????
相关宏定义如下:
#define LCD_XSIZELCD_WIDTH
#define LCD_YSIZELCD_HEIGHT
#define SCR_XSIZELCD_WIDTH
#define SCR_YSIZELCD_HEIGHT
#define LCD_WIDTH 240
#define LCD_HEIGHT 320
#define LCD_PIXCLOCK 4
#define LCD_RIGHT_MARGIN 25
#define LCD_LEFT_MARGIN 0
#define LCD_HSYNC_LEN 4
#define LCD_UPPER_MARGIN 1
#define LCD_LOWER_MARGIN 4
#define LCD_VSYNC_LEN 1
#define LCD_CON5 ( (1 << 11)| (1<<0) | (1 << 8) | (1 << 6) | (1 << 9) | ( 1<< 10))
页:
[1]