Exemple #1
0
static int get_power_setting_status(void)
{

	static unsigned int temp0,temp1,temp2,temp3;

// LuckAs change
	LCD_WaitForNotBusy();
//	jrd_lcd_waitfornotbusy();
// LuckAs end

         send_ctrl_cmd(0x09);
	read_data_cmd();  //dummy read
	temp0 =  read_data_cmd();	// 0x84
	temp1 =  read_data_cmd();	// 0x63
	temp2 =  read_data_cmd();	// 0x04
	temp3 =  read_data_cmd();	// 0x00

	if( (temp0 != A_NORMAL) || (temp1 != B_NORMAL) || (temp2 != C_NORMAL) || (temp3 != D_NORMAL))
	{
		printk("---------------------------lcm_init ---------------------------\n");
		lcm_init();
// LuckAs change
		lcm_update(0, 0, FRAME_WIDTH, FRAME_HEIGHT);
//		jrd_lcm_update(0, 0, FRAME_WIDTH, FRAME_HEIGHT);
// LuckAs end
	}

	return 0;

}
Exemple #2
0
static void sw_clear_panel(unsigned int color)
{
    unsigned int x, y;

    lcm_update(0, 0, FRAME_WIDTH, FRAME_HEIGHT);

    for (y = 0; y < FRAME_HEIGHT; ++ y) {
        for (x = 0; x < FRAME_WIDTH; ++ x) {
            lcm_util.send_data(color);
        }
    }
}