FreeCalypso > hg > fc-selenite
comparison src/cs/drivers/drv_app/r2d/lcds/Customer/r2d_task_init_i.c @ 0:b6a5e36de839
src/cs: initial import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 04:39:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b6a5e36de839 |
---|---|
1 /* Used by refresh task to extract bytes from the | |
2 framebuffer */ | |
3 | |
4 | |
5 #if (R2D_REFRESH == R2D_VERTICAL) | |
6 #define R2D_MB_PRIM_SIZE ((R2D_WIDTH*R2D_HEIGHT*4)+R2D_WIDTH*8*10*4+(R2D_WIDTH*R2D_HEIGHT*4)+(R2D_WIDTH*R2D_HEIGHT*4))//70000//8000 //70000 | |
7 #else | |
8 #define R2D_MB_PRIM_SIZE ((R2D_WIDTH*R2D_HEIGHT*4)+R2D_WIDTH*8*10*4+(R2D_WIDTH*R2D_HEIGHT*4)+(R2D_WIDTH*R2D_HEIGHT*4))//70000//8000 //70000 | |
9 #endif | |
10 | |
11 | |
12 extern UINT32 r2d_p_refresh_buffer[4*R2D_WIDTH*R2D_MWHEIGHT]; | |
13 | |
14 | |
15 static void r2d_refresh_task_init(void) | |
16 { | |
17 INT16 i; | |
18 UINT32 *p; | |
19 | |
20 | |
21 p=r2d_p_refresh_buffer; | |
22 for(i=0;i<4*R2D_WIDTH*R2D_MWHEIGHT;i++) | |
23 { | |
24 *p++=0; | |
25 } | |
26 } | |
27 | |
28 static void r2d_refresh_task_kill(void) | |
29 { | |
30 | |
31 } | |
32 | |
33 static void r2d_dithering_init(void) | |
34 { | |
35 R2D_MALLOC(r2d_mb_id,UINT32,sizeof(UINT32)*4,r2d_g_dithering_matrix); | |
36 r2d_g_dithering_matrix[0]=0; | |
37 r2d_g_dithering_matrix[1]=2; | |
38 r2d_g_dithering_matrix[2]=3; | |
39 r2d_g_dithering_matrix[3]=1; | |
40 } |