forked from AdaCore/embedded-runtimes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i-lpc4337.ads
192 lines (183 loc) · 6.15 KB
/
i-lpc4337.ads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from LPC43xx_43Sxx.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Register cmsis file for LPC43xx parts
package Interfaces.LPC4337 is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Base type --
---------------
type UInt32 is new Interfaces.Unsigned_32;
type UInt16 is new Interfaces.Unsigned_16;
type Byte is new Interfaces.Unsigned_8;
type Bit is mod 2**1
with Size => 1;
type UInt2 is mod 2**2
with Size => 2;
type UInt3 is mod 2**3
with Size => 3;
type UInt4 is mod 2**4
with Size => 4;
type UInt5 is mod 2**5
with Size => 5;
type UInt6 is mod 2**6
with Size => 6;
type UInt7 is mod 2**7
with Size => 7;
type UInt9 is mod 2**9
with Size => 9;
type UInt10 is mod 2**10
with Size => 10;
type UInt11 is mod 2**11
with Size => 11;
type UInt12 is mod 2**12
with Size => 12;
type UInt13 is mod 2**13
with Size => 13;
type UInt14 is mod 2**14
with Size => 14;
type UInt15 is mod 2**15
with Size => 15;
type UInt17 is mod 2**17
with Size => 17;
type UInt18 is mod 2**18
with Size => 18;
type UInt19 is mod 2**19
with Size => 19;
type UInt20 is mod 2**20
with Size => 20;
type UInt21 is mod 2**21
with Size => 21;
type UInt22 is mod 2**22
with Size => 22;
type UInt23 is mod 2**23
with Size => 23;
type UInt24 is mod 2**24
with Size => 24;
type UInt25 is mod 2**25
with Size => 25;
type UInt26 is mod 2**26
with Size => 26;
type UInt27 is mod 2**27
with Size => 27;
type UInt28 is mod 2**28
with Size => 28;
type UInt29 is mod 2**29
with Size => 29;
type UInt30 is mod 2**30
with Size => 30;
type UInt31 is mod 2**31
with Size => 31;
--------------------
-- Base addresses --
--------------------
SCT_Base : constant System.Address :=
System'To_Address (16#40000000#);
GPDMA_Base : constant System.Address :=
System'To_Address (16#40002000#);
SPIFI_Base : constant System.Address :=
System'To_Address (16#40003000#);
SDMMC_Base : constant System.Address :=
System'To_Address (16#40004000#);
EMC_Base : constant System.Address :=
System'To_Address (16#40005000#);
USB0_Base : constant System.Address :=
System'To_Address (16#40006000#);
USB1_Base : constant System.Address :=
System'To_Address (16#40007000#);
LCD_Base : constant System.Address :=
System'To_Address (16#40008000#);
EEPROM_Base : constant System.Address :=
System'To_Address (16#4000E000#);
ETHERNET_Base : constant System.Address :=
System'To_Address (16#40010000#);
ATIMER_Base : constant System.Address :=
System'To_Address (16#40040000#);
REGFILE_Base : constant System.Address :=
System'To_Address (16#40041000#);
PMC_Base : constant System.Address :=
System'To_Address (16#40042000#);
CREG_Base : constant System.Address :=
System'To_Address (16#40043000#);
EVENTROUTER_Base : constant System.Address :=
System'To_Address (16#40044000#);
RTC_Base : constant System.Address :=
System'To_Address (16#40046000#);
CGU_Base : constant System.Address :=
System'To_Address (16#40050000#);
CCU1_Base : constant System.Address :=
System'To_Address (16#40051000#);
CCU2_Base : constant System.Address :=
System'To_Address (16#40052000#);
RGU_Base : constant System.Address :=
System'To_Address (16#40053000#);
WWDT_Base : constant System.Address :=
System'To_Address (16#40080000#);
USART0_Base : constant System.Address :=
System'To_Address (16#40081000#);
USART2_Base : constant System.Address :=
System'To_Address (16#400C1000#);
USART3_Base : constant System.Address :=
System'To_Address (16#400C2000#);
UART1_Base : constant System.Address :=
System'To_Address (16#40082000#);
SSP0_Base : constant System.Address :=
System'To_Address (16#40083000#);
SSP1_Base : constant System.Address :=
System'To_Address (16#400C5000#);
TIMER0_Base : constant System.Address :=
System'To_Address (16#40084000#);
TIMER1_Base : constant System.Address :=
System'To_Address (16#40085000#);
TIMER2_Base : constant System.Address :=
System'To_Address (16#400C3000#);
TIMER3_Base : constant System.Address :=
System'To_Address (16#400C4000#);
SCU_Base : constant System.Address :=
System'To_Address (16#40086000#);
GPIO_PIN_INT_Base : constant System.Address :=
System'To_Address (16#40087000#);
GPIO_GROUP_INT0_Base : constant System.Address :=
System'To_Address (16#40088000#);
GPIO_GROUP_INT1_Base : constant System.Address :=
System'To_Address (16#40089000#);
MCPWM_Base : constant System.Address :=
System'To_Address (16#400A0000#);
I2C0_Base : constant System.Address :=
System'To_Address (16#400A1000#);
I2C1_Base : constant System.Address :=
System'To_Address (16#400E0000#);
I2S0_Base : constant System.Address :=
System'To_Address (16#400A2000#);
I2S1_Base : constant System.Address :=
System'To_Address (16#400A3000#);
C_CAN1_Base : constant System.Address :=
System'To_Address (16#400A4000#);
RITIMER_Base : constant System.Address :=
System'To_Address (16#400C0000#);
QEI_Base : constant System.Address :=
System'To_Address (16#400C6000#);
GIMA_Base : constant System.Address :=
System'To_Address (16#400C7000#);
DAC_Base : constant System.Address :=
System'To_Address (16#400E1000#);
C_CAN0_Base : constant System.Address :=
System'To_Address (16#400E2000#);
ADC0_Base : constant System.Address :=
System'To_Address (16#400E3000#);
ADC1_Base : constant System.Address :=
System'To_Address (16#400E4000#);
ADCHS_Base : constant System.Address :=
System'To_Address (16#400F0000#);
GPIO_PORT_Base : constant System.Address :=
System'To_Address (16#400F4000#);
SPI_Base : constant System.Address :=
System'To_Address (16#40100000#);
SGPIO_Base : constant System.Address :=
System'To_Address (16#40101000#);
end Interfaces.LPC4337;