sync hh.org
[hh.org.git] / include / asm-arm / arch-pxa / roverp1-init.h
blob67296fc20fce4be44296cd5006523c64ec3cda10
1 /*
2 * RoverP1 GPIO definitions.
4 * Authors: Konstantine A. Beklemishev (konstantine@r66.ru)
5 */
7 #ifndef _ROVERP1_INIT_H_
8 #define _ROVERP1_INIT_H_
9 /* GPIO pin direction setup */
10 #define GPIO00_Dir 0
11 #define GPIO01_Dir 0
12 #define GPIO02_Dir 0
13 #define GPIO03_Dir 0
14 #define GPIO04_Dir 0
15 #define GPIO05_Dir 0
16 #define GPIO06_Dir 1
17 #define GPIO07_Dir 0
18 #define GPIO08_Dir 1
19 #define GPIO09_Dir 0
20 #define GPIO10_Dir 0
21 #define GPIO11_Dir 0
22 #define GPIO12_Dir 0
23 #define GPIO13_Dir 0
24 #define GPIO14_Dir 1
25 #define GPIO15_Dir 0
26 #define GPIO16_Dir 1
27 #define GPIO17_Dir 1
28 #define GPIO18_Dir 1
29 #define GPIO19_Dir 0
30 #define GPIO20_Dir 0
31 #define GPIO21_Dir 1
32 #define GPIO22_Dir 0
33 #define GPIO23_Dir 0
34 #define GPIO24_Dir 0
35 #define GPIO25_Dir 0
36 #define GPIO26_Dir 0
37 #define GPIO27_Dir 0
38 #define GPIO28_Dir 0
39 #define GPIO29_Dir 0
40 #define GPIO30_Dir 1
41 #define GPIO31_Dir 1
42 #define GPIO32_Dir 0
43 #define GPIO33_Dir 0
44 #define GPIO34_Dir 0
45 #define GPIO35_Dir 0
46 #define GPIO36_Dir 0
47 #define GPIO37_Dir 0
48 #define GPIO38_Dir 1
49 #define GPIO39_Dir 1
50 #define GPIO40_Dir 1
51 #define GPIO41_Dir 1
52 #define GPIO42_Dir 0
53 #define GPIO43_Dir 1
54 #define GPIO44_Dir 0
55 #define GPIO45_Dir 0
56 #define GPIO46_Dir 0
57 #define GPIO47_Dir 0
58 #define GPIO48_Dir 1
59 #define GPIO49_Dir 1
60 #define GPIO50_Dir 1
61 #define GPIO51_Dir 1
62 #define GPIO52_Dir 1
63 #define GPIO53_Dir 1
64 #define GPIO54_Dir 1
65 #define GPIO55_Dir 1
66 #define GPIO56_Dir 1
67 #define GPIO57_Dir 0
68 #define GPIO58_Dir 1
69 #define GPIO59_Dir 1
70 #define GPIO60_Dir 1
71 #define GPIO61_Dir 1
72 #define GPIO62_Dir 1
73 #define GPIO63_Dir 1
74 #define GPIO64_Dir 1
75 #define GPIO65_Dir 1
76 #define GPIO66_Dir 1
77 #define GPIO67_Dir 1
78 #define GPIO68_Dir 1
79 #define GPIO69_Dir 1
80 #define GPIO70_Dir 1
81 #define GPIO71_Dir 1
82 #define GPIO72_Dir 1
83 #define GPIO73_Dir 1
84 #define GPIO74_Dir 0
85 #define GPIO75_Dir 1
86 #define GPIO76_Dir 1
87 #define GPIO77_Dir 1
88 #define GPIO78_Dir 1
89 #define GPIO79_Dir 0
90 #define GPIO80_Dir 0
92 /* GPIO Alternate Function (Select Function 0 ~ 3) */
93 #define GPIO00_AltFunc 0
94 #define GPIO01_AltFunc 1
95 #define GPIO02_AltFunc 0
96 #define GPIO03_AltFunc 0
97 #define GPIO04_AltFunc 0
98 #define GPIO05_AltFunc 0
99 #define GPIO06_AltFunc 1
100 #define GPIO07_AltFunc 0
101 #define GPIO08_AltFunc 1
102 #define GPIO09_AltFunc 0
103 #define GPIO10_AltFunc 0
104 #define GPIO11_AltFunc 0
105 #define GPIO12_AltFunc 0
106 #define GPIO13_AltFunc 0
107 #define GPIO14_AltFunc 0
108 #define GPIO15_AltFunc 0
109 #define GPIO16_AltFunc 0
110 #define GPIO17_AltFunc 2
111 #define GPIO18_AltFunc 0
112 #define GPIO19_AltFunc 0
113 #define GPIO20_AltFunc 0
114 #define GPIO21_AltFunc 0
115 #define GPIO22_AltFunc 0
116 #define GPIO23_AltFunc 0
117 #define GPIO24_AltFunc 0
118 #define GPIO25_AltFunc 0
119 #define GPIO26_AltFunc 0
120 #define GPIO27_AltFunc 0
121 #define GPIO28_AltFunc 1
122 #define GPIO29_AltFunc 1
123 #define GPIO30_AltFunc 2
124 #define GPIO31_AltFunc 2
125 #define GPIO32_AltFunc 0
126 #define GPIO33_AltFunc 0
127 #define GPIO34_AltFunc 1
128 #define GPIO35_AltFunc 1
129 #define GPIO36_AltFunc 1
130 #define GPIO37_AltFunc 1
131 #define GPIO38_AltFunc 0
132 #define GPIO39_AltFunc 2
133 #define GPIO40_AltFunc 2
134 #define GPIO41_AltFunc 2
135 #define GPIO42_AltFunc 0
136 #define GPIO43_AltFunc 0
137 #define GPIO44_AltFunc 0
138 #define GPIO45_AltFunc 0
139 #define GPIO46_AltFunc 2
140 #define GPIO47_AltFunc 1
141 #define GPIO48_AltFunc 0
142 #define GPIO49_AltFunc 0
143 #define GPIO50_AltFunc 0
144 #define GPIO51_AltFunc 0
145 #define GPIO52_AltFunc 0
146 #define GPIO53_AltFunc 0
147 #define GPIO54_AltFunc 0
148 #define GPIO55_AltFunc 0
149 #define GPIO56_AltFunc 0
150 #define GPIO57_AltFunc 0
151 #define GPIO58_AltFunc 2
152 #define GPIO59_AltFunc 2
153 #define GPIO60_AltFunc 2
154 #define GPIO61_AltFunc 2
155 #define GPIO62_AltFunc 2
156 #define GPIO63_AltFunc 2
157 #define GPIO64_AltFunc 2
158 #define GPIO65_AltFunc 2
159 #define GPIO66_AltFunc 2
160 #define GPIO67_AltFunc 2
161 #define GPIO68_AltFunc 2
162 #define GPIO69_AltFunc 2
163 #define GPIO70_AltFunc 2
164 #define GPIO71_AltFunc 2
165 #define GPIO72_AltFunc 2
166 #define GPIO73_AltFunc 2
167 #define GPIO74_AltFunc 2
168 #define GPIO75_AltFunc 0
169 #define GPIO76_AltFunc 2
170 #define GPIO77_AltFunc 2
171 #define GPIO78_AltFunc 2
172 #define GPIO79_AltFunc 0
173 #define GPIO80_AltFunc 0
175 /* GPIO Pin Init State */
176 #define GPIO00_Level 0
177 #define GPIO01_Level 0
178 #define GPIO02_Level 0
179 #define GPIO03_Level 0
180 #define GPIO04_Level 0
181 #define GPIO05_Level 0
182 #define GPIO06_Level 0
183 #define GPIO07_Level 0
184 #define GPIO08_Level 1
185 #define GPIO09_Level 0
186 #define GPIO10_Level 0
187 #define GPIO11_Level 0
188 #define GPIO12_Level 0
189 #define GPIO13_Level 0
190 #define GPIO14_Level 1
191 #define GPIO15_Level 0
192 #define GPIO16_Level 1
193 #define GPIO17_Level 1
194 #define GPIO18_Level 1
195 #define GPIO19_Level 0
196 #define GPIO20_Level 0
197 #define GPIO21_Level 0
198 #define GPIO22_Level 0
199 #define GPIO23_Level 0
200 #define GPIO24_Level 0
201 #define GPIO25_Level 0
202 #define GPIO26_Level 0
203 #define GPIO27_Level 0
204 #define GPIO28_Level 0
205 #define GPIO29_Level 0
206 #define GPIO30_Level 0
207 #define GPIO31_Level 0
208 #define GPIO32_Level 0
209 #define GPIO33_Level 0
210 #define GPIO34_Level 0
211 #define GPIO35_Level 0
212 #define GPIO36_Level 0
213 #define GPIO37_Level 0
214 #define GPIO38_Level 0
215 #define GPIO39_Level 0
216 #define GPIO40_Level 0
217 #define GPIO41_Level 0
218 #define GPIO42_Level 0
219 #define GPIO43_Level 0
220 #define GPIO44_Level 0
221 #define GPIO45_Level 0
222 #define GPIO46_Level 0
223 #define GPIO47_Level 0
224 #define GPIO48_Level 1
225 #define GPIO49_Level 0
226 #define GPIO50_Level 0
227 #define GPIO51_Level 0
228 #define GPIO52_Level 1
229 #define GPIO53_Level 0
230 #define GPIO54_Level 1
231 #define GPIO55_Level 0
232 #define GPIO56_Level 1
233 #define GPIO57_Level 0
234 #define GPIO58_Level 1
235 #define GPIO59_Level 0
236 #define GPIO60_Level 1
237 #define GPIO61_Level 1
238 #define GPIO62_Level 0
239 #define GPIO63_Level 1
240 #define GPIO64_Level 1
241 #define GPIO65_Level 0
242 #define GPIO66_Level 1
243 #define GPIO67_Level 0
244 #define GPIO68_Level 1
245 #define GPIO69_Level 1
246 #define GPIO70_Level 0
247 #define GPIO71_Level 1
248 #define GPIO72_Level 1
249 #define GPIO73_Level 1
250 #define GPIO74_Level 0
251 #define GPIO75_Level 1
252 #define GPIO76_Level 0
253 #define GPIO77_Level 1
254 #define GPIO78_Level 1
255 #define GPIO79_Level 0
256 #define GPIO80_Level 0
258 /* GPIO Pin Sleep Level */
259 #define GPIO00_Sleep_Level 0
260 #define GPIO01_Sleep_Level 0
261 #define GPIO02_Sleep_Level 0
262 #define GPIO03_Sleep_Level 0
263 #define GPIO04_Sleep_Level 0
264 #define GPIO05_Sleep_Level 0
265 #define GPIO06_Sleep_Level 0
266 #define GPIO07_Sleep_Level 0
267 #define GPIO08_Sleep_Level 0
268 #define GPIO09_Sleep_Level 0
269 #define GPIO10_Sleep_Level 0
270 #define GPIO11_Sleep_Level 0
271 #define GPIO12_Sleep_Level 0
272 #define GPIO13_Sleep_Level 0
273 #define GPIO14_Sleep_Level 1
274 #define GPIO15_Sleep_Level 0
275 #define GPIO16_Sleep_Level 1
276 #define GPIO17_Sleep_Level 0
277 #define GPIO18_Sleep_Level 0
278 #define GPIO19_Sleep_Level 0
279 #define GPIO20_Sleep_Level 0
280 #define GPIO21_Sleep_Level 0
281 #define GPIO22_Sleep_Level 0
282 #define GPIO23_Sleep_Level 0
283 #define GPIO24_Sleep_Level 0
284 #define GPIO25_Sleep_Level 0
285 #define GPIO26_Sleep_Level 0
286 #define GPIO27_Sleep_Level 0
287 #define GPIO28_Sleep_Level 0
288 #define GPIO29_Sleep_Level 0
289 #define GPIO30_Sleep_Level 0
290 #define GPIO31_Sleep_Level 0
291 #define GPIO32_Sleep_Level 0
292 #define GPIO33_Sleep_Level 0
293 #define GPIO34_Sleep_Level 0
294 #define GPIO35_Sleep_Level 0
295 #define GPIO36_Sleep_Level 0
296 #define GPIO37_Sleep_Level 0
297 #define GPIO38_Sleep_Level 0
298 #define GPIO39_Sleep_Level 0
299 #define GPIO40_Sleep_Level 1
300 #define GPIO41_Sleep_Level 1
301 #define GPIO42_Sleep_Level 1
302 #define GPIO43_Sleep_Level 0
303 #define GPIO44_Sleep_Level 0
304 #define GPIO45_Sleep_Level 0
305 #define GPIO46_Sleep_Level 0
306 #define GPIO47_Sleep_Level 0
307 #define GPIO48_Sleep_Level 1
308 #define GPIO49_Sleep_Level 0
309 #define GPIO50_Sleep_Level 1
310 #define GPIO51_Sleep_Level 1
311 #define GPIO52_Sleep_Level 0
312 #define GPIO53_Sleep_Level 1
313 #define GPIO54_Sleep_Level 1
314 #define GPIO55_Sleep_Level 1
315 #define GPIO56_Sleep_Level 1
316 #define GPIO57_Sleep_Level 0
317 #define GPIO58_Sleep_Level 0
318 #define GPIO59_Sleep_Level 0
319 #define GPIO60_Sleep_Level 0
320 #define GPIO61_Sleep_Level 0
321 #define GPIO62_Sleep_Level 0
322 #define GPIO63_Sleep_Level 0
323 #define GPIO64_Sleep_Level 0
324 #define GPIO65_Sleep_Level 0
325 #define GPIO66_Sleep_Level 0
326 #define GPIO67_Sleep_Level 0
327 #define GPIO68_Sleep_Level 0
328 #define GPIO69_Sleep_Level 0
329 #define GPIO70_Sleep_Level 0
330 #define GPIO71_Sleep_Level 0
331 #define GPIO72_Sleep_Level 0
332 #define GPIO73_Sleep_Level 0
333 #define GPIO74_Sleep_Level 0
334 #define GPIO75_Sleep_Level 0
335 #define GPIO76_Sleep_Level 0
336 #define GPIO77_Sleep_Level 0
337 #define GPIO78_Sleep_Level 1
338 #define GPIO79_Sleep_Level 0
339 #define GPIO80_Sleep_Level 0
341 //****************************************************
342 // Init Value base on Cotulla CPU Register definition
343 //****************************************************
344 #define GPDRx_i0 (GPIO00_Dir << 0) + (GPIO01_Dir << 1) + (GPIO02_Dir << 2) + (GPIO03_Dir << 3)
345 #define GPDRx_i1 (GPIO04_Dir << 4) + (GPIO05_Dir << 5) + (GPIO06_Dir << 6) + (GPIO07_Dir << 7)
346 #define GPDRx_i2 (GPIO08_Dir << 8) + (GPIO09_Dir << 9) + (GPIO10_Dir << 10) + (GPIO11_Dir << 11)
347 #define GPDRx_i3 (GPIO12_Dir << 12) + (GPIO13_Dir << 13) + (GPIO14_Dir << 14) + (GPIO15_Dir << 15)
348 #define GPDRx_i4 (GPIO16_Dir << 16) + (GPIO17_Dir << 17) + (GPIO18_Dir << 18) + (GPIO19_Dir << 19)
349 #define GPDRx_i5 (GPIO20_Dir << 20) + (GPIO21_Dir << 21) + (GPIO22_Dir << 22) + (GPIO23_Dir << 23)
350 #define GPDRx_i6 (GPIO24_Dir << 24) + (GPIO25_Dir << 25) + (GPIO26_Dir << 26) + (GPIO27_Dir << 27)
351 #define GPDRx_i7 (GPIO28_Dir << 28) + (GPIO29_Dir << 29) + (GPIO30_Dir << 30) + (GPIO31_Dir << 31)
352 #define GPDRx_InitValue (GPDRx_i0+GPDRx_i1+GPDRx_i2+GPDRx_i3+GPDRx_i4+GPDRx_i5+GPDRx_i6+GPDRx_i7)
354 #define GPDRy_i0 (GPIO32_Dir << 0) + (GPIO33_Dir << 1) + (GPIO34_Dir << 2) + (GPIO35_Dir << 3)
355 #define GPDRy_i1 (GPIO36_Dir << 4) + (GPIO37_Dir << 5) + (GPIO38_Dir << 6) + (GPIO39_Dir << 7)
356 #define GPDRy_i2 (GPIO40_Dir << 8) + (GPIO41_Dir << 9) + (GPIO42_Dir << 10) + (GPIO43_Dir << 11)
357 #define GPDRy_i3 (GPIO44_Dir << 12) + (GPIO45_Dir << 13) + (GPIO46_Dir << 14) + (GPIO47_Dir << 15)
358 #define GPDRy_i4 (GPIO48_Dir << 16) + (GPIO49_Dir << 17) + (GPIO50_Dir << 18) + (GPIO51_Dir << 19)
359 #define GPDRy_i5 (GPIO52_Dir << 20) + (GPIO53_Dir << 21) + (GPIO54_Dir << 22) + (GPIO55_Dir << 23)
360 #define GPDRy_i6 (GPIO56_Dir << 24) + (GPIO57_Dir << 25) + (GPIO58_Dir << 26) + (GPIO59_Dir << 27)
361 #define GPDRy_i7 (GPIO60_Dir << 28) + (GPIO61_Dir << 29) + (GPIO62_Dir << 30) + (GPIO63_Dir << 31)
362 #define GPDRy_InitValue (GPDRy_i0+GPDRy_i1+GPDRy_i2+GPDRy_i3+GPDRy_i4+GPDRy_i5+GPDRy_i6+GPDRy_i7)
364 #define GPDRz_i0 (GPIO64_Dir << 0) + (GPIO65_Dir << 1) + (GPIO66_Dir << 2) + (GPIO67_Dir << 3)
365 #define GPDRz_i1 (GPIO68_Dir << 4) + (GPIO69_Dir << 5) + (GPIO70_Dir << 6) + (GPIO71_Dir << 7)
366 #define GPDRz_i2 (GPIO72_Dir << 8) + (GPIO73_Dir << 9) + (GPIO74_Dir << 10) + (GPIO75_Dir << 11)
367 #define GPDRz_i3 (GPIO76_Dir << 12) + (GPIO77_Dir << 13) + (GPIO78_Dir << 14) + (GPIO79_Dir << 15)
368 #define GPDRz_i4 (GPIO80_Dir << 16)
369 #define GPDRz_InitValue (GPDRz_i0+GPDRz_i1+GPDRz_i2+GPDRz_i3+GPDRz_i4)
371 #define GAFR0x_i0 (GPIO00_AltFunc << 0) + (GPIO01_AltFunc << 2) + (GPIO02_AltFunc << 4) + (GPIO03_AltFunc << 6)
372 #define GAFR0x_i1 (GPIO04_AltFunc << 8) + (GPIO05_AltFunc << 10) + (GPIO06_AltFunc << 12) + (GPIO07_AltFunc << 14)
373 #define GAFR0x_i2 (GPIO08_AltFunc << 16) + (GPIO09_AltFunc << 18) + (GPIO10_AltFunc << 20) + (GPIO11_AltFunc << 22)
374 #define GAFR0x_i3 (GPIO12_AltFunc << 24) + (GPIO13_AltFunc << 26) + (GPIO14_AltFunc << 28) + (GPIO15_AltFunc << 30)
375 #define GAFR0x_InitValue (GAFR0x_i0+GAFR0x_i1+GAFR0x_i2+GAFR0x_i3)
377 #define GAFR1x_i0 (GPIO16_AltFunc << 0) + (GPIO17_AltFunc << 2) + (GPIO18_AltFunc << 4) + (GPIO19_AltFunc << 6)
378 #define GAFR1x_i1 (GPIO20_AltFunc << 8) + (GPIO21_AltFunc << 10) + (GPIO22_AltFunc << 12) + (GPIO23_AltFunc << 14)
379 #define GAFR1x_i2 (GPIO24_AltFunc << 16) + (GPIO25_AltFunc << 18) + (GPIO26_AltFunc << 20) + (GPIO27_AltFunc << 22)
380 #define GAFR1x_i3 (GPIO28_AltFunc << 24) + (GPIO29_AltFunc << 26) + (GPIO30_AltFunc << 28) + (GPIO31_AltFunc << 30)
381 #define GAFR1x_InitValue (GAFR1x_i0+GAFR1x_i1+GAFR1x_i2+GAFR1x_i3)
383 #define GAFR0y_i0 (GPIO32_AltFunc << 0) + (GPIO33_AltFunc << 2) + (GPIO34_AltFunc << 4) + (GPIO35_AltFunc << 6)
384 #define GAFR0y_i1 (GPIO36_AltFunc << 8) + (GPIO37_AltFunc << 10) + (GPIO38_AltFunc << 12) + (GPIO39_AltFunc << 14)
385 #define GAFR0y_i2 (GPIO40_AltFunc << 16) + (GPIO41_AltFunc << 18) + (GPIO42_AltFunc << 20) + (GPIO43_AltFunc << 22)
386 #define GAFR0y_i3 (GPIO44_AltFunc << 24) + (GPIO45_AltFunc << 26) + (GPIO46_AltFunc << 28) + (GPIO47_AltFunc << 30)
387 #define GAFR0y_InitValue (GAFR0y_i0+GAFR0y_i1+GAFR0y_i2+GAFR0y_i3)
389 #define GAFR1y_i0 (GPIO48_AltFunc << 0) + (GPIO49_AltFunc << 2) + (GPIO50_AltFunc << 4) + (GPIO51_AltFunc << 6)
390 #define GAFR1y_i1 (GPIO52_AltFunc << 8) + (GPIO53_AltFunc << 10) + (GPIO54_AltFunc << 12) + (GPIO55_AltFunc << 14)
391 #define GAFR1y_i2 (GPIO56_AltFunc << 16) + (GPIO57_AltFunc << 18) + (GPIO58_AltFunc << 20) + (GPIO59_AltFunc << 22)
392 #define GAFR1y_i3 (GPIO60_AltFunc << 24) + (GPIO61_AltFunc << 26) + (GPIO62_AltFunc << 28) + (GPIO63_AltFunc << 30)
393 #define GAFR1y_InitValue (GAFR1y_i0+GAFR1y_i1+GAFR1y_i2+GAFR1y_i3)
395 #define GAFR0z_i0 (GPIO64_AltFunc << 0) + (GPIO65_AltFunc << 2) + (GPIO66_AltFunc << 4) + (GPIO67_AltFunc << 6)
396 #define GAFR0z_i1 (GPIO68_AltFunc << 8) + (GPIO69_AltFunc << 10) + (GPIO70_AltFunc << 12) + (GPIO71_AltFunc << 14)
397 #define GAFR0z_i2 (GPIO72_AltFunc << 16) + (GPIO73_AltFunc << 18) + (GPIO74_AltFunc << 20) + (GPIO75_AltFunc << 22)
398 #define GAFR0z_i3 (GPIO76_AltFunc << 24) + (GPIO77_AltFunc << 26) + (GPIO78_AltFunc << 28) + (GPIO79_AltFunc << 30)
399 #define GAFR0z_InitValue (GAFR0z_i0+GAFR0z_i1+GAFR0z_i2+GAFR0z_i3)
401 #define GAFR1z_InitValue (GPIO80_AltFunc << 0)
403 #define GPSRx_i0 (GPIO00_Level << 0) + (GPIO01_Level << 1) + (GPIO02_Level << 2) + (GPIO03_Level << 3)
404 #define GPSRx_i1 (GPIO04_Level << 4) + (GPIO05_Level << 5) + (GPIO06_Level << 6) + (GPIO07_Level << 7)
405 #define GPSRx_i2 (GPIO08_Level << 8) + (GPIO09_Level << 9) + (GPIO10_Level << 10) + (GPIO11_Level << 11)
406 #define GPSRx_i3 (GPIO12_Level << 12) + (GPIO13_Level << 13) + (GPIO14_Level << 14) + (GPIO15_Level << 15)
407 #define GPSRx_i4 (GPIO16_Level << 16) + (GPIO17_Level << 17) + (GPIO18_Level << 18) + (GPIO19_Level << 19)
408 #define GPSRx_i5 (GPIO20_Level << 20) + (GPIO21_Level << 21) + (GPIO22_Level << 22) + (GPIO23_Level << 23)
409 #define GPSRx_i6 (GPIO24_Level << 24) + (GPIO25_Level << 25) + (GPIO26_Level << 26) + (GPIO27_Level << 27)
410 #define GPSRx_i7 (GPIO28_Level << 28) + (GPIO29_Level << 29) + (GPIO30_Level << 30) + (GPIO31_Level << 31)
411 #define GPSRx_InitValue (GPSRx_i0+GPSRx_i1+GPSRx_i2+GPSRx_i3+GPSRx_i4+GPSRx_i5+GPSRx_i6+GPSRx_i7)
413 #define GPSRy_i0 (GPIO32_Level << 0) + (GPIO33_Level << 1) + (GPIO34_Level << 2) + (GPIO35_Level << 3)
414 #define GPSRy_i1 (GPIO36_Level << 4) + (GPIO37_Level << 5) + (GPIO38_Level << 6) + (GPIO39_Level << 7)
415 #define GPSRy_i2 (GPIO40_Level << 8) + (GPIO41_Level << 9) + (GPIO42_Level << 10) + (GPIO43_Level << 11)
416 #define GPSRy_i3 (GPIO44_Level << 12) + (GPIO45_Level << 13) + (GPIO46_Level << 14) + (GPIO47_Level << 15)
417 #define GPSRy_i4 (GPIO48_Level << 16) + (GPIO49_Level << 17) + (GPIO50_Level << 18) + (GPIO51_Level << 19)
418 #define GPSRy_i5 (GPIO52_Level << 20) + (GPIO53_Level << 21) + (GPIO54_Level << 22) + (GPIO55_Level << 23)
419 #define GPSRy_i6 (GPIO56_Level << 24) + (GPIO57_Level << 25) + (GPIO58_Level << 26) + (GPIO59_Level << 27)
420 #define GPSRy_i7 (GPIO60_Level << 28) + (GPIO61_Level << 29) + (GPIO62_Level << 30) + (GPIO63_Level << 31)
421 #define GPSRy_InitValue (GPSRy_i0+GPSRy_i1+GPSRy_i2+GPSRy_i3+GPSRy_i4+GPSRy_i5+GPSRy_i6+GPSRy_i7)
423 #define GPSRz_i0 (GPIO64_Level << 0) + (GPIO65_Level << 1) + (GPIO66_Level << 2) + (GPIO67_Level << 3)
424 #define GPSRz_i1 (GPIO68_Level << 4) + (GPIO69_Level << 5) + (GPIO70_Level << 6) + (GPIO71_Level << 7)
425 #define GPSRz_i2 (GPIO72_Level << 8) + (GPIO73_Level << 9) + (GPIO74_Level << 10) + (GPIO75_Level << 11)
426 #define GPSRz_i3 (GPIO76_Level << 12) + (GPIO77_Level << 13) + (GPIO78_Level << 14) + (GPIO79_Level << 15)
427 #define GPSRz_i4 (GPIO80_Level << 16)
428 #define GPSRz_InitValue (GPSRz_i0+GPSRz_i1+GPSRz_i2+GPSRz_i3+GPSRz_i4)
430 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
431 //// value for set when sleep
433 #define GPSRx_si0 (GPIO00_Sleep_Level << 0) + (GPIO01_Sleep_Level << 1) + (GPIO02_Sleep_Level << 2) + (GPIO03_Sleep_Level << 3)
434 #define GPSRx_si1 (GPIO04_Sleep_Level << 4) + (GPIO05_Sleep_Level << 5) + (GPIO06_Sleep_Level << 6) + (GPIO07_Sleep_Level << 7)
435 #define GPSRx_si2 (GPIO08_Sleep_Level << 8) + (GPIO09_Sleep_Level << 9) + (GPIO10_Sleep_Level << 10) + (GPIO11_Sleep_Level << 11)
436 #define GPSRx_si3 (GPIO12_Sleep_Level << 12) + (GPIO13_Sleep_Level << 13) + (GPIO14_Sleep_Level << 14) + (GPIO15_Sleep_Level << 15)
437 #define GPSRx_si4 (GPIO16_Sleep_Level << 16) + (GPIO17_Sleep_Level << 17) + (GPIO18_Sleep_Level << 18) + (GPIO19_Sleep_Level << 19)
438 #define GPSRx_si5 (GPIO20_Sleep_Level << 20) + (GPIO21_Sleep_Level << 21) + (GPIO22_Sleep_Level << 22) + (GPIO23_Sleep_Level << 23)
439 #define GPSRx_si6 (GPIO24_Sleep_Level << 24) + (GPIO25_Sleep_Level << 25) + (GPIO26_Sleep_Level << 26) + (GPIO27_Sleep_Level << 27)
440 #define GPSRx_si7 (GPIO28_Sleep_Level << 28) + (GPIO29_Sleep_Level << 29) + (GPIO30_Sleep_Level << 30) + (GPIO31_Sleep_Level << 31)
441 #define GPSRx_SleepValue (GPSRx_si0+GPSRx_si1+GPSRx_si2+GPSRx_si3+GPSRx_si4+GPSRx_si5+GPSRx_si6+GPSRx_si7)
443 #define GPSRy_si0 (GPIO32_Sleep_Level << 0) + (GPIO33_Sleep_Level << 1) + (GPIO34_Sleep_Level << 2) + (GPIO35_Sleep_Level << 3)
444 #define GPSRy_si1 (GPIO36_Sleep_Level << 4) + (GPIO37_Sleep_Level << 5) + (GPIO38_Sleep_Level << 6) + (GPIO39_Sleep_Level << 7)
445 #define GPSRy_si2 (GPIO40_Sleep_Level << 8) + (GPIO41_Sleep_Level << 9) + (GPIO42_Sleep_Level << 10) + (GPIO43_Sleep_Level << 11)
446 #define GPSRy_si3 (GPIO44_Sleep_Level << 12) + (GPIO45_Sleep_Level << 13) + (GPIO46_Sleep_Level << 14) + (GPIO47_Sleep_Level << 15)
447 #define GPSRy_si4 (GPIO48_Sleep_Level << 16) + (GPIO49_Sleep_Level << 17) + (GPIO50_Sleep_Level << 18) + (GPIO51_Sleep_Level << 19)
448 #define GPSRy_si5 (GPIO52_Sleep_Level << 20) + (GPIO53_Sleep_Level << 21) + (GPIO54_Sleep_Level << 22) + (GPIO55_Sleep_Level << 23)
449 #define GPSRy_si6 (GPIO56_Sleep_Level << 24) + (GPIO57_Sleep_Level << 25) + (GPIO58_Sleep_Level << 26) + (GPIO59_Sleep_Level << 27)
450 #define GPSRy_si7 (GPIO60_Sleep_Level << 28) + (GPIO61_Sleep_Level << 29) + (GPIO62_Sleep_Level << 30) + (GPIO63_Sleep_Level << 31)
451 #define GPSRy_SleepValue (GPSRy_si0+GPSRy_si1+GPSRy_si2+GPSRy_si3+GPSRy_si4+GPSRy_si5+GPSRy_si6+GPSRy_si7)
453 #define GPSRz_si0 (GPIO64_Sleep_Level << 0) + (GPIO65_Sleep_Level << 1) + (GPIO66_Sleep_Level << 2) + (GPIO67_Sleep_Level << 3)
454 #define GPSRz_si1 (GPIO68_Sleep_Level << 4) + (GPIO69_Sleep_Level << 5) + (GPIO70_Sleep_Level << 6) + (GPIO71_Sleep_Level << 7)
455 #define GPSRz_si2 (GPIO72_Sleep_Level << 8) + (GPIO73_Sleep_Level << 9) + (GPIO74_Sleep_Level << 10) + (GPIO75_Sleep_Level << 11)
456 #define GPSRz_si3 (GPIO76_Sleep_Level << 12) + (GPIO77_Sleep_Level << 13) + (GPIO78_Sleep_Level << 14) + (GPIO79_Sleep_Level << 15)
457 #define GPSRz_si4 (GPIO80_Sleep_Level << 16)
458 #define GPSRz_SleepValue (GPSRz_si0+GPSRz_si1+GPSRz_si2+GPSRz_si3+GPSRz_si4)
460 #endif /* _ROVERP1_INIT_H_ */