comparison chipsetsw/drivers/drv_app/r2d/r2d_refresh.c @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /**
2
3 @file: r2d_refresh.c
4
5 @author Christophe Favergeon
6
7 @version 0.5
8
9 Purpose: Includes LCDs depend definitions for the refresh task
10 (Second part of LCD APIs)
11
12 */
13
14 /*
15
16 Date Modification
17 ------------------------------------
18 06/02/2001 Create
19 10/18/2001 Version 0.5 for first integration with Riviera database
20
21
22 (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved
23 */
24
25
26
27
28 #include "rv/general.h"
29 #include "rvf/rvf_api.h"
30 #include "r2d/r2d_messages.h"
31 #include "r2d/r2d_env.h"
32 #include "r2d/lcd_messages_ti.h"
33 #include "r2d/lcd_messages.h"
34 #include "r2d/r2d_config.h"
35 #include "r2d/r2d.h"
36 #include "r2d/r2d_i.h"
37 #ifdef _WINDOWS
38 #include <Windows.h>
39 #endif
40 #include "r2d/uwire.h"
41
42
43 extern T_RVF_MB_ID r2d_mb_id;
44
45 INT16 r2d_update_ul_x,r2d_update_ul_y,r2d_update_br_x,r2d_update_br_y;
46
47
48 #if (R2D_REFRESH == R2D_VERTICAL)
49 UINT32 r2d_lcd_memory_words[(((R2D_WIDTH*R2D_MWHEIGHT)+1))];
50 #else
51 UINT32 r2d_lcd_memory_words[(((R2D_MWWIDTH*R2D_HEIGHT)+1))];
52 #endif
53
54 void r2d_reinit_update_region(void)
55 {
56 rvf_lock_mutex(r2d_g_global_mutex);
57 //r2d_update_ul_x=0;
58 //r2d_update_ul_y=0;
59 //r2d_update_br_x=R2D_WIDTH-1;
60 //r2d_update_br_y=R2D_HEIGHT-1;
61 r2d_update_ul_x=R2D_WIDTH;
62 r2d_update_ul_y=R2D_HEIGHT;
63 r2d_update_br_x=-1;
64 r2d_update_br_y=-1;
65 rvf_unlock_mutex(r2d_g_global_mutex);
66 }
67
68 #if (R2D_EMBEDDED_LCD == R2D_PC_COLOR_LCD)
69 #include "lcds/colorpc/r2d_task_i.c"
70 #endif
71
72 #if (R2D_EMBEDDED_LCD == R2D_PC_CSAMPLE)
73 #include "lcds/pc_csample/r2d_task_i.c"
74 #endif
75
76 #if (R2D_EMBEDDED_LCD == R2D_PC_DSAMPLE)
77 #include "lcds/pc_dsample/r2d_task_i.c"
78 #endif
79
80 #if (R2D_EMBEDDED_LCD == R2D_SIMPLE_LCD)
81 #include "lcds/simple/r2d_task_i.c"
82 #endif
83
84 #if (R2D_EMBEDDED_LCD == R2D_MIRRORED_LCD)
85 #include "lcds/simple/r2d_task_i.c"
86 #endif
87
88 #if (R2D_EMBEDDED_LCD == R2D_CUSTOMER_LCD)
89 #include "lcds/customer/r2d_task_i.c"
90 #endif
91
92 #if (R2D_EMBEDDED_LCD == R2D_HORIZONTAL_LCD)
93 #include "lcds/horizontal/r2d_task_i.c"
94 #endif
95
96 #if (R2D_EMBEDDED_LCD == R2D_BOARD_COLOR_LCD)
97 #include "lcds/colorboard/r2d_task_i.c"
98 #endif
99
100 #if (R2D_EMBEDDED_LCD == R2D_BOARD_DSAMPLE)
101 #include "lcds/d_sample/r2d_task_i.c"
102 #endif
103
104 #if (R2D_EMBEDDED_LCD == R2D_BOARD_BW_DSAMPLE)
105 #include "lcds/bw_d_sample/r2d_task_i.c"
106 #endif
107