飞凌2440 lcd 调试
分析原因是:
时序不正确,也即lcddrv.h 和 lcddrv.c文件 不正确,需要修改。代码如下:
lcddrv.h:
#ifndef __LCDDRV_H__
#define __LCDDRV_H__
#include
#define LOWER21BITS(n)
#define BPPMODE_1BPP
#define BPPMODE_2BPP
#define BPPMODE_4BPP
#define BPPMODE_8BPP
#define BPPMODE_16BPP
#define BPPMODE_24BPP
#define LCDTYPE_TFT
#define ENVID_DISABLE
#define ENVID_ENABLE
#define FORMAT8BPP_5551 0
#define FORMAT8BPP_565
#define HSYNC_NORM
#define HSYNC_INV
#define VSYNC_NORM
#define VSYNC_INV
#define BSWP
#define HWSWP
//TFT LCD Panel(240*320)
#define MODE_TFT_1BIT_240320
#define MODE_TFT_8BIT_240320
#define MODE_TFT_16BIT_240320
#define MODE_TFT_24BIT_240320
//TFT 240320
#define LCD_XSIZE_TFT_240320
#define LCD_YSIZE_TFT_240320
//TFT 240320
#define HOZVAL_TFT_240320
#define LINEVAL_TFT_240320
#define CLKVAL_TFT_240320
// 60hz @133Mhz
// (9) 60hz @100Mhz
//Timing parameter for LTS350Q1(SAMSUNG)
#define VBPD_240320
#define VFPD_240320
#define VSPW_240320
#define HBPD_240320
#define HFPD_240320
#define HSPW_240320
//TFT LCD Panel(640*480)
#define MODE_TFT_1BIT_640480
#define MODE_TFT_8BIT_640480
#define MODE_TFT_16BIT_640480
#define MODE_TFT_24BIT_640480
//TFT 640480
#define LCD_XSIZE_TFT_640480
#define LCD_YSIZE_TFT_640480
//TFT640480
#define HOZVAL_TFT_640480
#define LINEVAL_TFT_640480
//Timing parameter for V16C6448AB(PRIME VIEW)
#define VBPD_640480
#define VFPD_640480
#define VSPW_640480
#define HBPD_640480
#define HFPD_640480
#define HSPW_640480
#define CLKVAL_TFT_640480
#define LCDFRAMEBUFFER 0x30400000
void Lcd_Port_Init(void);
void Tft_Lcd_Init(int type);
void Lcd_Palette8Bit_Init(void);
void Lcd_EnvidOnOff(int onoff);
void Lcd_PowerEnable(int invpwren, int pwren);
void ClearScrWithTmpPlt(UINT32 color);
void DisableTmpPlt(void);
void ChangePalette(UINT32 color);
#endif
------------------------------------------------------------------
lcddrv.c文件:
#include
#include "s3c24xx.h"
#include "lcddrv.h"
unsigned int fb_base_addr;
unsigned int bpp;
unsigned int xsize;
unsigned int ysize;
static const unsigned short DEMO256pal[]={
};
飞凌2440lcd调 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)