// Enable contrast for backlight control. Initialize to half power
pLCDC->PCCR = CSP_BITFVAL(LCDC_PCCR_PW, LCDC_PCCR_PW_MAX) |
CSP_BITFVAL(LCDC_PCCR_CC_EN, LCDC_PCCR_CC_EN_ENABLE) |
CSP_BITFVAL(LCDC_PCCR_SCR, LCDC_PCCR_SCR_PIXELCLK) |
CSP_BITFVAL(LCDC_PCCR_LDMSK, LCDC_PCCR_LDMSK_DISABLE) |
CSP_BITFVAL(LCDC_PCCR_CLS_HI_WIDTH, 169);
// Settings for heavily loaded bus with SDRAM access.
// dynamic burst, High mark = 3, low mark = 1D (best setting after testing)
pLCDC->DCR = CSP_BITFVAL(LCDC_DCR_BURST, LCDC_DCR_BURST_DYNAMIC) |
CSP_BITFVAL(LCDC_DCR_HM, 0x03) |
CSP_BITFVAL(LCDC_DCR_TM, 0x08);
// Set for interrupt on output of last data to panel, end of graphic window
pLCDC->ICR = CSP_BITFVAL(LCDC_ICR_GW_INT_CON, LCDC_ICR_GW_INT_CON_END) |
CSP_BITFVAL(LCDC_ICR_INTSYN, LCDC_ICR_INTSYN_PANEL) |
CSP_BITFVAL(LCDC_ICR_INTCON, LCDC_ICR_INTCON_BOF);
[Quote=引用 9 楼 kacyquan 的回复:]
BOOL OALDisplaySplashScreen(void)
{
int screenWidth, screenHeight, screenBpp, pixelBytes;
int bmpWidth, bmpHeight;
int w, w1;
int h;
int i, j;
BOOL success = FALSE;
BYTE *pfb;
BOOL OALDisplaySplashScreen(void)
{
int screenWidth, screenHeight, screenBpp, pixelBytes;
int bmpWidth, bmpHeight;
int w, w1;
int h;
int i, j;
BOOL success = FALSE;
BYTE *pfb;