s3c6410 + wince6.0 内核中修改LCD尺寸进度条

在目录C:\WINCE600\PLATFORM\SMDK6410\SRC\INC\options.h中进行修改LCD尺寸,进度条颜色位置等。


一、选择LCD尺寸

//#define LCD_N43
//#define LCD_T35
//#define LCD_X35
  #define LCD_L80
//#define LCD_A70
//#define LCD_VGA1024768
//#define LCD_VGA800600
//#define LCD_VGA640480
//#define LCD_EZVGA


二、设置进度条颜色


#define PROGRESS_BAR_R 0xFF   //RED
#define PROGRESS_BAR_G 0xFF   //GREEN
#define PROGRESS_BAR_B 0x00   //BLUE


三、设置启动条的位置和长宽

//设置启动条的位置和长宽
#define PROGRESS_BAR_TOP     560  //进度条上方位置
#define PROGRESS_BAR_LEFT    30  //进度条左边位置
#define PROGRESS_BAR_WIDTH  (LCD_WIDTH - 2 * PROGRESS_BAR_LEFT) //宽度
#define PROGRESS_BAR_HEIGHT   40 //高度


四、修改对应尺寸LCD分辨率及时钟同步信号等

/*#elif defined(LCD_L80)
#define LCD_WIDTH   640
#define LCD_HEIGHT  480
#define LCD_VBPD_VALUE   0x01
#define LCD_VFPD_VALUE   0x01
#define LCD_VSPW_VALUE   0x01
#define LCD_HBPD_VALUE   0x03
#define LCD_HFPD_VALUE   0x03
#define LCD_HSPW_VALUE   0x28
#define LCD_RGB_OUT_MODE   DISP_16BIT_RGB565_P
#define LCD_VCLK_POLARITY  IVCLK_FALL_EDGE
#define LCD_HSYNC_POLARITY IHSYNC_LOW_ACTIVE
#define LCD_VSYNC_POLARITY IVSYNC_LOW_ACTIVE
#define LCD_VDEN_POLARITY  IVDEN_HIGH_ACTIVE
#define LCD_PNR_MODE       PNRMODE_RGB_P
#define LCD_VCLK_SOURCE    CLKSEL_F_LCDCLK
#define LCD_VCLK_DIRECTION CLKDIR_DIVIDED
#define LCD_FRAME_RATE     20
#define LCD_TFT_CLKVAL     3    */
#elif defined(LCD_L80)
#define LCD_WIDTH   800
#define LCD_HEIGHT  600
#define LCD_VBPD_VALUE   ((23)&0xff)
#define LCD_VFPD_VALUE   ((1)&0xff)
#define LCD_VSPW_VALUE   ((1) &0x3f)
#define LCD_HBPD_VALUE   ((46)&0x7f)
#define LCD_HFPD_VALUE   ((16)&0xff)
#define LCD_HSPW_VALUE   ((1)&0xff)
#define LCD_RGB_OUT_MODE   DISP_16BIT_RGB565_P
#define LCD_VCLK_POLARITY  IVCLK_FALL_EDGE
#define LCD_HSYNC_POLARITY IHSYNC_LOW_ACTIVE
#define LCD_VSYNC_POLARITY IVSYNC_LOW_ACTIVE
#define LCD_VDEN_POLARITY  IVDEN_HIGH_ACTIVE
#define LCD_PNR_MODE       PNRMODE_RGB_P
#define LCD_VCLK_SOURCE    CLKSEL_F_LCDCLK
#define LCD_VCLK_DIRECTION CLKDIR_DIVIDED
#define LCD_FRAME_RATE     80
#define LCD_TFT_CLKVAL     4    

你可能感兴趣的:(c,WinCE)