comparison src/cs/drivers/drv_app/r2d/lcds/luna/r2d_task_i_bw.c @ 276:4221c724c664

R2D: preparations for adding LCD hardware suspend handling
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 07 Sep 2021 21:05:38 +0000
parents c905daaff834
children
comparison
equal deleted inserted replaced
275:79cfefc1e2b4 276:4221c724c664
18 18
19 p=r2d_g_framebuffer->p_memory_words; 19 p=r2d_g_framebuffer->p_memory_words;
20 20
21 y1=r2d_update_ul_y; //0 21 y1=r2d_update_ul_y; //0
22 y2=r2d_update_br_y; //219 22 y2=r2d_update_br_y; //219
23
24 if (y1 > y2)
25 return;
26 r2d_reinit_update_region();
23 27
24 /* set window area */ 28 /* set window area */
25 LCD_REG_WR(0x36, 175); 29 LCD_REG_WR(0x36, 175);
26 LCD_REG_WR(0x37, 0); 30 LCD_REG_WR(0x37, 0);
27 LCD_REG_WR(0x38, y2); 31 LCD_REG_WR(0x38, y2);
56 else 60 else
57 LCD_DR = LCD16_COLOR_WHITE; 61 LCD_DR = LCD16_COLOR_WHITE;
58 v=v>>1; 62 v=v>>1;
59 } 63 }
60 } 64 }
61
62 r2d_reinit_update_region();
63 } 65 }