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/2);
    LINE2_YADDR = (2 * LCD_WIDTH/2);
    LINE3_YADDR = (3 * LCD_WIDTH/2);

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

    lcdctrl_bypass(0);

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

for (j=0; j<4; j++)
    for (i=0; i<200; i++)
        if (j==0)
                *(&LCD_BUFF + i*j*200) = (0x1f<<16)|0x1f; /* blue line */
        else if (j == 1)
                *(&LCD_BUFF + i*j*200) = (0x3f<<21)|0x3f<<5; /* green line*/
        else if (j == 2)
                *(&LCD_BUFF + i*j*200) = (0x1f<<27)|(0x1f<<11); /* red line */
        else
                *(&LCD_BUFF + i*j*200) = 0xffffffff; /* white line */

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