source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/armv4/_common_lpc2388/lpc2388.h@ 26

Last change on this file since 26 was 26, checked in by ykominami, 10 years ago

initial

File size: 13.8 KB
Line 
1/*
2 * lpc2388.h
3 *
4 * Created on: 2009/08/31
5 * Author: suikan
6 */
7
8#ifndef LPC2388_H_
9#define LPC2388_H_
10
11 /* Chapter 2 : Memory re-mapping */
12#define MEMMAP *(volatile unsigned int *) 0xE01FC040
13
14 /* Chapter 3 : System Control */
15#define EXTINT *(volatile unsigned int *) 0xE01FC140
16#define EXTMODE *(volatile unsigned int *) 0xE01FC148
17#define EXTPOLAR *(volatile unsigned int *) 0xE01FC14C
18#define RSID *(volatile unsigned int *) 0xE01FC180
19#define AHBCFG1 *(volatile unsigned int *) 0xE01FC188
20#define AHBCFG2 *(volatile unsigned int *) 0xE01FC18C
21#define SCS *(volatile unsigned int*) 0xE01FC1A0
22
23 /* Chapter 4 : Configuration */
24#define CLKSRCSEL *(volatile unsigned int *) 0xE01FC10C
25#define PLLCON *(volatile unsigned int *) 0xE01FC080
26#define PLLCFG *(volatile unsigned int *) 0xE01FC084
27#define PLLSTAT *(volatile unsigned int *) 0xE01FC088
28#define PLLFEED *(volatile unsigned int *) 0xE01FC08C
29#define CCLKCFG *(volatile unsigned int *) 0xE01FC104
30#define USBCLKCFG *(volatile unsigned int *) 0xE01FC108
31#define IRCTRIM *(volatile unsigned int *) 0xE01FC1A4
32#define PCLKSEL0 *(volatile unsigned int *) 0xE01FC1A8
33#define PCLKSEL1 *(volatile unsigned int *) 0xE01FC1AC
34#define PCON *(volatile unsigned int *) 0xE01FC0C0
35#define INTWAKE *(volatile unsigned int *) 0xE01FC144
36#define PCONP *(volatile unsigned int *) 0xE01FC0C4
37
38 /* Chapter 7 : Memory Acceleration Module */
39#define MAMCR *(volatile unsigned int *) 0xE01FC000
40#define MAMTIM *(volatile unsigned int *) 0xE01FC004
41
42 /* Chapter 9 : Pin Connect block*/
43
44#define PINSEL0 *(volatile unsigned int*) 0xE002c000
45#define PINSEL1 *(volatile unsigned int*) 0xE002c004
46#define PINSEL2 *(volatile unsigned int*) 0xE002c008
47#define PINSEL3 *(volatile unsigned int*) 0xE002c00C
48#define PINSEL4 *(volatile unsigned int*) 0xE002c010
49#define PINSEL5 *(volatile unsigned int*) 0xE002c014
50#define PINSEL6 *(volatile unsigned int*) 0xE002c018
51#define PINSEL7 *(volatile unsigned int*) 0xE002c01C
52#define PINSEL8 *(volatile unsigned int*) 0xE002c020
53#define PINSEL9 *(volatile unsigned int*) 0xE002c024
54#define PINSEL10 *(volatile unsigned int*) 0xE002c028
55
56
57#define PINMODE0 *(volatile unsigned int *) 0xE002c040
58#define PINMODE1 *(volatile unsigned int *) 0xE002c044
59#define PINMODE2 *(volatile unsigned int *) 0xE002c048
60#define PINMODE3 *(volatile unsigned int *) 0xE002c04C
61#define PINMODE4 *(volatile unsigned int *) 0xE002c050
62#define PINMODE5 *(volatile unsigned int *) 0xE002c054
63#define PINMODE6 *(volatile unsigned int *) 0xE002c058
64#define PINMODE7 *(volatile unsigned int *) 0xE002c05C
65#define PINMODE8 *(volatile unsigned int *) 0xE002c060
66#define PINMODE9 *(volatile unsigned int *) 0xE002c064
67
68 /* Chapter 10 : FAST IO */
69#define FIO0DIR *(volatile unsigned int*) 0x3FFFC000
70#define FIO1DIR *(volatile unsigned int*) 0x3FFFC020
71#define FIO2DIR *(volatile unsigned int*) 0x3FFFC040
72#define FIO3DIR *(volatile unsigned int*) 0x3FFFC060
73#define FIO4DIR *(volatile unsigned int*) 0x3FFFC080
74
75#define FIO0MASK *(volatile unsigned int*) 0x3FFFC010
76#define FIO1MASK *(volatile unsigned int*) 0x3FFFC030
77#define FIO2MASK *(volatile unsigned int*) 0x3FFFC050
78#define FIO3MASK *(volatile unsigned int*) 0x3FFFC070
79#define FIO4MASK *(volatile unsigned int*) 0x3FFFC090
80
81#define FIO0PIN *(volatile unsigned int*) 0x3FFFC014
82#define FIO1PIN *(volatile unsigned int*) 0x3FFFC034
83#define FIO2PIN *(volatile unsigned int*) 0x3FFFC054
84#define FIO3PIN *(volatile unsigned int*) 0x3FFFC074
85#define FIO4PIN *(volatile unsigned int*) 0x3FFFC094
86
87#define FIO0SET *(volatile unsigned int*) 0x3FFFC018
88#define FIO1SET *(volatile unsigned int*) 0x3FFFC038
89#define FIO2SET *(volatile unsigned int*) 0x3FFFC058
90#define FIO3SET *(volatile unsigned int*) 0x3FFFC078
91#define FIO4SET *(volatile unsigned int*) 0x3FFFC098
92
93#define FIO0CLR *(volatile unsigned int*) 0x3FFFC01C
94#define FIO1CLR *(volatile unsigned int*) 0x3FFFC03C
95#define FIO2CLR *(volatile unsigned int*) 0x3FFFC05C
96#define FIO3CLR *(volatile unsigned int*) 0x3FFFC07C
97#define FIO4CLR *(volatile unsigned int*) 0x3FFFC09C
98
99 /* Chapter 16 : UART */
100#define U0RBR *( volatile unsigned char *)0xE000C000
101#define U2RBR *( volatile unsigned char *)0xE0078000
102#define U3RBR *( volatile unsigned char *)0xE007C000
103
104#define U0THR U0RBR
105#define U2THR U2RBR
106#define U3THR U3RBR
107
108#define U0DLL U0RBR
109#define U2DLL U2RBR
110#define U3DLL U3RBR
111
112#define U0IER *( volatile unsigned char *)0xE000C004
113#define U2IER *( volatile unsigned char *)0xE0078004
114#define U3IER *( volatile unsigned char *)0xE007C004
115
116#define U0DLM U0IER
117#define U2DLM U2IER
118#define U3DLM U3IER
119
120#define U0IIR *( volatile unsigned char *)0xE000C008
121#define U2IIR *( volatile unsigned char *)0xE0078008
122#define U3IIR *( volatile unsigned char *)0xE007C008
123
124#define U0FCR *( volatile unsigned char *)0xE000C008
125#define U2FCR *( volatile unsigned char *)0xE0078008
126#define U3FCR *( volatile unsigned char *)0xE007C008
127
128#define U0LCR *( volatile unsigned char *)0xE000C00C
129#define U2LCR *( volatile unsigned char *)0xE007800C
130#define U3LCR *( volatile unsigned char *)0xE007C00C
131
132#define U0LSR *( volatile unsigned char *)0xE000C014
133#define U2LSR *( volatile unsigned char *)0xE0078014
134#define U3LSR *( volatile unsigned char *)0xE007C014
135
136#define U0SCR *( volatile unsigned char *)0xE000C01C
137#define U2SCR *( volatile unsigned char *)0xE007801C
138#define U3SCR *( volatile unsigned char *)0xE007C01C
139
140#define U0ACR *( volatile unsigned char *)0xE000C020
141#define U2ACR *( volatile unsigned char *)0xE0078020
142#define U3ACR *( volatile unsigned char *)0xE007C020
143
144#define U3ICR *( volatile unsigned char *)0xE000C024
145
146#define U0FDR *( volatile unsigned char *)0xE000C028
147#define U2FDR *( volatile unsigned char *)0xE0078028
148#define U3FDR *( volatile unsigned char *)0xE007C028
149
150#define U0TER *( volatile unsigned char *)0xE000C030
151#define U2TER *( volatile unsigned char *)0xE0078030
152#define U3TER *( volatile unsigned char *)0xE007C030
153
154/* Chapter 23 */
155#define T0IR *(volatile unsigned int *) 0xE0004000
156#define T1IR *(volatile unsigned int *) 0xE0008000
157#define T2IR *(volatile unsigned int *) 0xE0070000
158#define T3IR *(volatile unsigned int *) 0xE0074000
159#define T0TCR *(volatile unsigned int *) 0xE0004004
160#define T1TCR *(volatile unsigned int *) 0xE0008004
161#define T2TCR *(volatile unsigned int *) 0xE0070004
162#define T3TCR *(volatile unsigned int *) 0xE0074004
163#define T0TC *(volatile unsigned int *) 0xE0004008
164#define T1TC *(volatile unsigned int *) 0xE0008008
165#define T2TC *(volatile unsigned int *) 0xE0070008
166#define T3TC *(volatile unsigned int *) 0xE0074008
167#define T0PR *(volatile unsigned int *) 0xE000400C
168#define T1PR *(volatile unsigned int *) 0xE000800C
169#define T2PR *(volatile unsigned int *) 0xE007000C
170#define T3PR *(volatile unsigned int *) 0xE007400C
171#define T0PC *(volatile unsigned int *) 0xE0004010
172#define T1PC *(volatile unsigned int *) 0xE0008010
173#define T2PC *(volatile unsigned int *) 0xE0070010
174#define T3PC *(volatile unsigned int *) 0xE0074010
175#define T0MCR *(volatile unsigned int *) 0xE0004014
176#define T1MCR *(volatile unsigned int *) 0xE0008014
177#define T2MCR *(volatile unsigned int *) 0xE0070014
178#define T3MCR *(volatile unsigned int *) 0xE0074014
179#define T0MR0 *(volatile unsigned int *) 0xE0004018
180#define T1MR0 *(volatile unsigned int *) 0xE0008018
181#define T2MR0 *(volatile unsigned int *) 0xE0070018
182#define T3MR0 *(volatile unsigned int *) 0xE0074018
183#define T0MR1 *(volatile unsigned int *) 0xE000401C
184#define T1MR1 *(volatile unsigned int *) 0xE000801C
185#define T2MR1 *(volatile unsigned int *) 0xE007001C
186#define T3MR1 *(volatile unsigned int *) 0xE007401C
187#define T0MR2 *(volatile unsigned int *) 0xE0004020
188#define T1MR2 *(volatile unsigned int *) 0xE0008020
189#define T2MR2 *(volatile unsigned int *) 0xE0070020
190#define T3MR2 *(volatile unsigned int *) 0xE0074020
191#define T0MR3 *(volatile unsigned int *) 0xE0004024
192#define T1MR3 *(volatile unsigned int *) 0xE0008024
193#define T2MR3 *(volatile unsigned int *) 0xE0070024
194#define T3MR3 *(volatile unsigned int *) 0xE0074024
195#define T0CR0 *(volatile unsigned int *) 0xE000402C
196#define T1CR0 *(volatile unsigned int *) 0xE000802C
197#define T2CR0 *(volatile unsigned int *) 0xE007002C
198#define T3CR0 *(volatile unsigned int *) 0xE007402C
199#define T0CR1 *(volatile unsigned int *) 0xE0004030
200#define T1CR1 *(volatile unsigned int *) 0xE0008030
201#define T2CR1 *(volatile unsigned int *) 0xE0070030
202#define T3CR1 *(volatile unsigned int *) 0xE0074030
203#define T0EMR *(volatile unsigned int *) 0xE000403C
204#define T1EMR *(volatile unsigned int *) 0xE000803C
205#define T2EMR *(volatile unsigned int *) 0xE007003C
206#define T3EMR *(volatile unsigned int *) 0xE007403C
207#define T0CTCR *(volatile unsigned int *) 0xE0004070
208#define T1CTCR *(volatile unsigned int *) 0xE0008070
209#define T2CTCR *(volatile unsigned int *) 0xE0070070
210#define T3CTCR *(volatile unsigned int *) 0xE0074070
211#define T0CR0 *(volatile unsigned int *) 0xE000402C
212#define T1CR0 *(volatile unsigned int *) 0xE000802C
213#define T2CR0 *(volatile unsigned int *) 0xE007002C
214#define T3CR0 *(volatile unsigned int *) 0xE007402C
215#define T0CR1 *(volatile unsigned int *) 0xE0004030
216#define T1CR1 *(volatile unsigned int *) 0xE0008030
217#define T2CR1 *(volatile unsigned int *) 0xE0070030
218#define T3CR1 *(volatile unsigned int *) 0xE0074030
219#define T0EMR *(volatile unsigned int *) 0xE000403C
220#define T1EMR *(volatile unsigned int *) 0xE000803C
221#define T2EMR *(volatile unsigned int *) 0xE007003C
222#define T3EMR *(volatile unsigned int *) 0xE007403C
223#define T0CTCR *(volatile unsigned int *) 0xE0004070
224#define T1CTCR *(volatile unsigned int *) 0xE0008070
225#define T2CTCR *(volatile unsigned int *) 0xE0070070
226#define T3CTCR *(volatile unsigned int *) 0xE0074070
227
228#define VICIRQStatus *(volatile unsigned int *)0xFFFFF000
229#define VICFIQStatus *(volatile unsigned int *)0xFFFFF004
230#define VICRawIntr *(volatile unsigned int *)0xFFFFF008
231
232#define VICIntSelect *(volatile unsigned int *)0xFFFFF00C
233
234#define VICIntEnable *(volatile unsigned int *)0xFFFFF010
235#define VICIntEnClr *(volatile unsigned int *)0xFFFFF014
236
237#define VICSoftInt *(volatile unsigned int *)0xFFFFF018
238#define VICSoftIntClear *(volatile unsigned int *)0xFFFFF01C
239
240#define VICProtection *(volatile unsigned int *)0xFFFFF020
241
242#define VICSWPriorityMask *(volatile unsigned int *)0xFFFFF024
243
244
245#define VICVectAddr0 *(volatile void (**)())0xFFFFF100
246#define VICVectAddr1 *(volatile void (**)())0xFFFFF104
247#define VICVectAddr2 *(volatile void (**)())0xFFFFF108
248#define VICVectAddr3 *(volatile void (**)())0xFFFFF10C
249#define VICVectAddr4 *(volatile void (**)())0xFFFFF110
250#define VICVectAddr5 *(volatile void (**)())0xFFFFF114
251#define VICVectAddr6 *(volatile void (**)())0xFFFFF118
252#define VICVectAddr7 *(volatile void (**)())0xFFFFF11C
253#define VICVectAddr8 *(volatile void (**)())0xFFFFF120
254#define VICVectAddr9 *(volatile void (**)())0xFFFFF124
255#define VICVectAddr10 *(volatile void (**)())0xFFFFF128
256#define VICVectAddr11 *(volatile void (**)())0xFFFFF12C
257#define VICVectAddr12 *(volatile void (**)())0xFFFFF130
258#define VICVectAddr13 *(volatile void (**)())0xFFFFF134
259#define VICVectAddr14 *(volatile void (**)())0xFFFFF138
260#define VICVectAddr15 *(volatile void (**)())0xFFFFF13C
261#define VICVectAddr16 *(volatile void (**)())0xFFFFF140
262#define VICVectAddr17 *(volatile void (**)())0xFFFFF144
263#define VICVectAddr18 *(volatile void (**)())0xFFFFF148
264#define VICVectAddr19 *(volatile void (**)())0xFFFFF14C
265#define VICVectAddr20 *(volatile void (**)())0xFFFFF150
266#define VICVectAddr21 *(volatile void (**)())0xFFFFF154
267#define VICVectAddr22 *(volatile void (**)())0xFFFFF158
268#define VICVectAddr23 *(volatile void (**)())0xFFFFF15C
269#define VICVectAddr24 *(volatile void (**)())0xFFFFF160
270#define VICVectAddr25 *(volatile void (**)())0xFFFFF164
271#define VICVectAddr26 *(volatile void (**)())0xFFFFF168
272#define VICVectAddr27 *(volatile void (**)())0xFFFFF16C
273#define VICVectAddr28 *(volatile void (**)())0xFFFFF170
274#define VICVectAddr29 *(volatile void (**)())0xFFFFF174
275#define VICVectAddr30 *(volatile void (**)())0xFFFFF178
276#define VICVectAddr31 *(volatile void (**)())0xFFFFF17C
277
278#define VICVectPriority0 *(volatile unsigned int *)0xFFFFF200
279#define VICVectPriority1 *(volatile unsigned int *)0xFFFFF204
280#define VICVectPriority2 *(volatile unsigned int *)0xFFFFF208
281#define VICVectPriority3 *(volatile unsigned int *)0xFFFFF20C
282#define VICVectPriority4 *(volatile unsigned int *)0xFFFFF210
283#define VICVectPriority5 *(volatile unsigned int *)0xFFFFF214
284#define VICVectPriority6 *(volatile unsigned int *)0xFFFFF218
285#define VICVectPriority7 *(volatile unsigned int *)0xFFFFF21C
286#define VICVectPriority8 *(volatile unsigned int *)0xFFFFF220
287#define VICVectPriority9 *(volatile unsigned int *)0xFFFFF224
288#define VICVectPriority10 *(volatile unsigned int *)0xFFFFF228
289#define VICVectPriority11 *(volatile unsigned int *)0xFFFFF22C
290#define VICVectPriority12 *(volatile unsigned int *)0xFFFFF230
291#define VICVectPriority13 *(volatile unsigned int *)0xFFFFF234
292#define VICVectPriority14 *(volatile unsigned int *)0xFFFFF238
293#define VICVectPriority15 *(volatile unsigned int *)0xFFFFF23C
294#define VICVectPriority16 *(volatile unsigned int *)0xFFFFF240
295#define VICVectPriority17 *(volatile unsigned int *)0xFFFFF244
296#define VICVectPriority18 *(volatile unsigned int *)0xFFFFF248
297#define VICVectPriority19 *(volatile unsigned int *)0xFFFFF24C
298#define VICVectPriority20 *(volatile unsigned int *)0xFFFFF250
299#define VICVectPriority21 *(volatile unsigned int *)0xFFFFF254
300#define VICVectPriority22 *(volatile unsigned int *)0xFFFFF258
301#define VICVectPriority23 *(volatile unsigned int *)0xFFFFF25C
302#define VICVectPriority24 *(volatile unsigned int *)0xFFFFF260
303#define VICVectPriority25 *(volatile unsigned int *)0xFFFFF264
304#define VICVectPriority26 *(volatile unsigned int *)0xFFFFF268
305#define VICVectPriority27 *(volatile unsigned int *)0xFFFFF26C
306#define VICVectPriority28 *(volatile unsigned int *)0xFFFFF270
307#define VICVectPriority29 *(volatile unsigned int *)0xFFFFF274
308#define VICVectPriority30 *(volatile unsigned int *)0xFFFFF278
309#define VICVectPriority31 *(volatile unsigned int *)0xFFFFF27C
310
311#define VICAddress *(volatile void (**)())0xFFFFFF00
312
313
314
315#endif /* LPC2388_H_ */
Note: See TracBrowser for help on using the repository browser.