comparison src/cs/drivers/drv_app/r2d/lcds/BW_D_Sample/r2d_task_i.c @ 0:945cf7f506b2

src/cs: chipsetsw import from tcs211-fcmodem binary blobs and LCD demo files have been excluded, all line endings are LF only
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Sep 2016 22:50:11 +0000
parents
children 96c047b4325e
comparison
equal deleted inserted replaced
-1:000000000000 0:945cf7f506b2
1 #include "r2d/lcds/bw_d_sample/r2d_tfd_lcd.h"
2
3 void r2d_lcd_power_on(void)
4 {
5 }
6
7 void r2d_lcd_power_off(void)
8 {
9 }
10
11 void r2d_refresh(void)
12 {
13 UINT16 i,j,k;
14
15
16
17 UINT32 v;
18 UINT32 *p;
19 INT16 r,g,b;
20
21
22
23
24 // rvf_send_trace("R2D REFRESH",strlen("R2D REFRESH"), NULL_PARAM,
25 // RV_TRACE_LEVEL_DEBUG_HIGH, TRACE_XXX );
26
27 p=r2d_g_framebuffer->p_memory_words;
28
29
30 //LCD_cmd(LCD_DISOFF);
31 LCD_activate;
32 LCD_cmd(LCD_RAMWR);
33 i=0;
34 while(i<R2D_HEIGHT)
35 {
36 j=0;
37 while(j<R2D_MWWIDTH-1)
38 {
39 v=*p++;
40
41
42 for(k=0;k<32;k++)
43 {
44 if (v&1)
45 LCD_data(0x0000);
46 else
47 LCD_data(0x0FFFF);
48 v=v>>1;
49 }
50
51 j++;
52 }
53
54 v=*p++;
55
56
57 for(k=0;k<16;k++)
58 {
59 if (v&1)
60 LCD_data(0x0000);
61 else
62 LCD_data(0x0FFFF);
63 v=v>>1;
64 }
65
66
67
68
69 i++;
70
71 }
72 //LCD_cmd(LCD_DISON);
73 LCD_deactivate;
74
75
76 r2d_reinit_update_region();
77
78 }