1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    LCDC_CTRL = ALPHA(7) | LCDC_STOP | LCDC_MCU;
    MCU_CTRL = ALPHA_BASE(0x3f) | MCU_CTRL_BYPASS;
    HOR_BP = 403;
    VERT_BP = 240;
    //VERT_PERIOD = 0x3bf;
    //HOR_ACT = LCD_WIDTH;
    //VERT_ACT = LCD_HEIGHT;

    LINE0_YADDR = 0;
    LINE1_YADDR = (1 * LCD_WIDTH);
    LINE2_YADDR = (2 * LCD_WIDTH);
    LINE3_YADDR = (3 * LCD_WIDTH);

    LINE0_UVADDR = 1;
    LINE1_UVADDR = (1 * LCD_WIDTH) + 1;
    LINE2_UVADDR = (2 * LCD_WIDTH) + 1;
    LINE3_UVADDR = (3 * LCD_WIDTH) + 1;

    lcdctrl_bypass(0);

memset(&LCD_BUFF, 0x00, 2048*4);

for (j=0; j<4; j++)
    for (i=0; i<200; i++)
        if (i<50)
                *(&LCD_BUFF + i) = (0x1f<<16)|0x1f; /* blue */
        else if (i<100)
                *(&LCD_BUFF + i) = (0x3f<<21)|0x3f<<5; /* green */
        else if (i<150)
                *(&LCD_BUFF + i) = (0x1f<<27)|(0x1f<<11); /* red */
        else
                *(&LCD_BUFF + i) = (0x1f<<18)|(0x1f<<2); /* magenta */

    MCU_CTRL=(1<<1)|(1<<2)|(1<<5);