comparison chipsetsw/drivers/drv_app/r2d/lcd_gsm_ps_api.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 Name: lcd_gsm_ps_api.c */
4 /* */
5 /* Purpose: This file contains the adaptation layer used to direct */
6 /* Condat LCD calls to void or not */
7 /* */
8 /* Version 0.1 */
9 /* */
10 /* Date Modification */
11 /* ------------------------------------ */
12 /* 29/09/2000 Create */
13 /* */
14 /* Author Davide Carpegna */
15 /* */
16 /* (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved*/
17 /****************************************************************************/
18
19 #ifndef _WINDOWS
20 #include "config/rv.cfg"
21 #endif
22
23
24 #if (_GSM==1)
25 #include "rv/rv_general.h"
26 #include "rvf/rvf_api.h"
27 #include "r2d/lcd_messages.h"
28
29
30 T_RV_RET LCD_Reset(void)
31 {
32 #if (TEST==0)
33 return lcd_reset();
34 #else
35 return RV_OK;
36 #endif
37 }
38
39
40 T_RV_RET LCD_Clear(void)
41 {
42 #if (TEST==0)
43 return lcd_clear();
44 #else
45 return RV_OK;
46 #endif
47 }
48
49
50 T_RV_RET LCD_Init(void)
51 {
52 #if (TEST==0)
53 return lcd_init();
54 #else
55 return RV_OK;
56 #endif
57 }
58
59
60 T_RV_RET LCD_WriteString(UINT8 row, UINT8 column, char *string, T_VIDEO_MODE mode)
61 {
62 #if (TEST==0)
63 return lcd_write_string(row, column, string, mode);
64 #else
65 return RV_OK;
66 #endif
67 }
68
69
70 T_RV_RET LCD_WriteCenter( char *string)
71 {
72 #if (TEST==0)
73 return lcd_write_center(string);
74 #else
75 return RV_OK;
76 #endif
77 }
78
79
80 T_RV_RET LCD_ClearString(UINT8 row)
81 {
82 #if (TEST==0)
83 return lcd_clear_string(row);
84 #else
85 return RV_OK;
86 #endif
87 }
88
89
90 T_RV_RET LCD_ClearWord(UINT8 row, UINT8 column, UINT16 length)
91 {
92 #if (TEST==0)
93 return lcd_clear_word(row, column, length);
94 #else
95 return RV_OK;
96 #endif
97 }
98
99
100 T_RV_RET LCD_PutPixel(UINT8 x, UINT8 y)
101 {
102 #if (TEST==0)
103 return lcd_put_pixel(x, y);
104 #else
105 return RV_OK;
106 #endif
107 }
108
109
110 T_RV_RET LCD_ClearPixel(UINT8 x, UINT8 y)
111 {
112 #if (TEST==0)
113 return lcd_clear_pixel(x, y);
114 #else
115 return RV_OK;
116 #endif
117 }
118
119
120 T_RV_RET LCD_DrawLine(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2)
121 {
122 #if (TEST==0)
123 return lcd_draw_line(x1, y1, x2, y2);
124 #else
125 return RV_OK;
126 #endif
127 }
128
129
130 T_RV_RET LCD_ClearLine(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2)
131 {
132 #if (TEST==0)
133 return lcd_clear_line(x1, y1, x2, y2);
134 #else
135 return RV_OK;
136 #endif
137 }
138
139
140 T_RV_RET LCD_DrawRectangle(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2)
141 {
142 #if (TEST==0)
143 return lcd_draw_rectangle(x1, y1, x2, y2);
144 #else
145 return RV_OK;
146 #endif
147 }
148
149
150 T_RV_RET LCD_ClearRectangle(UINT8 x1, UINT8 y1, UINT8 x2, UINT8 y2)
151 {
152 #if (TEST==0)
153 return lcd_clear_rectangle(x1, y1, x2, y2);
154 #else
155 return RV_OK;
156 #endif
157 }
158
159
160 T_RV_RET LCD_DrawIcon(UINT8 x,UINT8 y,UINT8 icon_id)
161 {
162 #if (TEST==0)
163 return lcd_draw_icon(x,y,icon_id);
164 #else
165 return RV_OK;
166 #endif
167 }
168
169
170 T_RV_RET LCD_RefreshBloc(char *table,UINT8 x_dim,UINT8 y_dim,UINT8 x_pos,UINT8 y_pos)
171 {
172 #if (TEST==0)
173 return lcd_refresh_bloc(table,x_dim,y_dim,x_pos,y_pos);
174 #else
175 return RV_OK;
176 #endif
177 }
178
179
180 T_RV_RET LCD_PixBlt(int x_pos,int y_pos,int x_dim,int y_dim,char *table)
181 {
182 #if (TEST==0)
183 return lcd_pix_blt(x_pos,y_pos,x_dim,y_dim,table);
184 #else
185 return RV_OK;
186 #endif
187 }
188
189
190 T_RV_RET LCD_Enable(UINT8 x)
191 {
192 #if (TEST==0)
193 return lcd_enable(x);
194 #else
195 return RV_OK;
196 #endif
197 }
198
199
200 T_RV_RET LCD_SetPower(void)
201 {
202 #if (TEST==0)
203 return lcd_set_power();
204 #else
205 return RV_OK;
206 #endif
207 }
208
209
210 T_RV_RET LCD_Cursor(UINT8 y,UINT8 x)
211 {
212 #if (TEST==0)
213 return lcd_cursor(y,x);
214 #else
215 return RV_OK;
216 #endif
217 }
218
219
220 #endif