EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
efm32g_ebi.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t ADDRTIMING;
45  __IOM uint32_t RDTIMING;
46  __IOM uint32_t WRTIMING;
47  __IOM uint32_t POLARITY;
48  __IOM uint32_t ROUTE;
49 } EBI_TypeDef;
51 /**************************************************************************/
56 /* Bit fields for EBI CTRL */
57 #define _EBI_CTRL_RESETVALUE 0x00000000UL
58 #define _EBI_CTRL_MASK 0x00030F03UL
59 #define _EBI_CTRL_MODE_SHIFT 0
60 #define _EBI_CTRL_MODE_MASK 0x3UL
61 #define _EBI_CTRL_MODE_DEFAULT 0x00000000UL
62 #define _EBI_CTRL_MODE_D8A8 0x00000000UL
63 #define _EBI_CTRL_MODE_D16A16ALE 0x00000001UL
64 #define _EBI_CTRL_MODE_D8A24ALE 0x00000002UL
65 #define EBI_CTRL_MODE_DEFAULT (_EBI_CTRL_MODE_DEFAULT << 0)
66 #define EBI_CTRL_MODE_D8A8 (_EBI_CTRL_MODE_D8A8 << 0)
67 #define EBI_CTRL_MODE_D16A16ALE (_EBI_CTRL_MODE_D16A16ALE << 0)
68 #define EBI_CTRL_MODE_D8A24ALE (_EBI_CTRL_MODE_D8A24ALE << 0)
69 #define EBI_CTRL_BANK0EN (0x1UL << 8)
70 #define _EBI_CTRL_BANK0EN_SHIFT 8
71 #define _EBI_CTRL_BANK0EN_MASK 0x100UL
72 #define _EBI_CTRL_BANK0EN_DEFAULT 0x00000000UL
73 #define EBI_CTRL_BANK0EN_DEFAULT (_EBI_CTRL_BANK0EN_DEFAULT << 8)
74 #define EBI_CTRL_BANK1EN (0x1UL << 9)
75 #define _EBI_CTRL_BANK1EN_SHIFT 9
76 #define _EBI_CTRL_BANK1EN_MASK 0x200UL
77 #define _EBI_CTRL_BANK1EN_DEFAULT 0x00000000UL
78 #define EBI_CTRL_BANK1EN_DEFAULT (_EBI_CTRL_BANK1EN_DEFAULT << 9)
79 #define EBI_CTRL_BANK2EN (0x1UL << 10)
80 #define _EBI_CTRL_BANK2EN_SHIFT 10
81 #define _EBI_CTRL_BANK2EN_MASK 0x400UL
82 #define _EBI_CTRL_BANK2EN_DEFAULT 0x00000000UL
83 #define EBI_CTRL_BANK2EN_DEFAULT (_EBI_CTRL_BANK2EN_DEFAULT << 10)
84 #define EBI_CTRL_BANK3EN (0x1UL << 11)
85 #define _EBI_CTRL_BANK3EN_SHIFT 11
86 #define _EBI_CTRL_BANK3EN_MASK 0x800UL
87 #define _EBI_CTRL_BANK3EN_DEFAULT 0x00000000UL
88 #define EBI_CTRL_BANK3EN_DEFAULT (_EBI_CTRL_BANK3EN_DEFAULT << 11)
89 #define EBI_CTRL_ARDYEN (0x1UL << 16)
90 #define _EBI_CTRL_ARDYEN_SHIFT 16
91 #define _EBI_CTRL_ARDYEN_MASK 0x10000UL
92 #define _EBI_CTRL_ARDYEN_DEFAULT 0x00000000UL
93 #define EBI_CTRL_ARDYEN_DEFAULT (_EBI_CTRL_ARDYEN_DEFAULT << 16)
94 #define EBI_CTRL_ARDYTODIS (0x1UL << 17)
95 #define _EBI_CTRL_ARDYTODIS_SHIFT 17
96 #define _EBI_CTRL_ARDYTODIS_MASK 0x20000UL
97 #define _EBI_CTRL_ARDYTODIS_DEFAULT 0x00000000UL
98 #define EBI_CTRL_ARDYTODIS_DEFAULT (_EBI_CTRL_ARDYTODIS_DEFAULT << 17)
100 /* Bit fields for EBI ADDRTIMING */
101 #define _EBI_ADDRTIMING_RESETVALUE 0x00000100UL
102 #define _EBI_ADDRTIMING_MASK 0x00000303UL
103 #define _EBI_ADDRTIMING_ADDRSETUP_SHIFT 0
104 #define _EBI_ADDRTIMING_ADDRSETUP_MASK 0x3UL
105 #define _EBI_ADDRTIMING_ADDRSETUP_DEFAULT 0x00000000UL
106 #define EBI_ADDRTIMING_ADDRSETUP_DEFAULT (_EBI_ADDRTIMING_ADDRSETUP_DEFAULT << 0)
107 #define _EBI_ADDRTIMING_ADDRHOLD_SHIFT 8
108 #define _EBI_ADDRTIMING_ADDRHOLD_MASK 0x300UL
109 #define _EBI_ADDRTIMING_ADDRHOLD_DEFAULT 0x00000001UL
110 #define EBI_ADDRTIMING_ADDRHOLD_DEFAULT (_EBI_ADDRTIMING_ADDRHOLD_DEFAULT << 8)
112 /* Bit fields for EBI RDTIMING */
113 #define _EBI_RDTIMING_RESETVALUE 0x00000000UL
114 #define _EBI_RDTIMING_MASK 0x00030F03UL
115 #define _EBI_RDTIMING_RDSETUP_SHIFT 0
116 #define _EBI_RDTIMING_RDSETUP_MASK 0x3UL
117 #define _EBI_RDTIMING_RDSETUP_DEFAULT 0x00000000UL
118 #define EBI_RDTIMING_RDSETUP_DEFAULT (_EBI_RDTIMING_RDSETUP_DEFAULT << 0)
119 #define _EBI_RDTIMING_RDSTRB_SHIFT 8
120 #define _EBI_RDTIMING_RDSTRB_MASK 0xF00UL
121 #define _EBI_RDTIMING_RDSTRB_DEFAULT 0x00000000UL
122 #define EBI_RDTIMING_RDSTRB_DEFAULT (_EBI_RDTIMING_RDSTRB_DEFAULT << 8)
123 #define _EBI_RDTIMING_RDHOLD_SHIFT 16
124 #define _EBI_RDTIMING_RDHOLD_MASK 0x30000UL
125 #define _EBI_RDTIMING_RDHOLD_DEFAULT 0x00000000UL
126 #define EBI_RDTIMING_RDHOLD_DEFAULT (_EBI_RDTIMING_RDHOLD_DEFAULT << 16)
128 /* Bit fields for EBI WRTIMING */
129 #define _EBI_WRTIMING_RESETVALUE 0x00010000UL
130 #define _EBI_WRTIMING_MASK 0x00030F03UL
131 #define _EBI_WRTIMING_WRSETUP_SHIFT 0
132 #define _EBI_WRTIMING_WRSETUP_MASK 0x3UL
133 #define _EBI_WRTIMING_WRSETUP_DEFAULT 0x00000000UL
134 #define EBI_WRTIMING_WRSETUP_DEFAULT (_EBI_WRTIMING_WRSETUP_DEFAULT << 0)
135 #define _EBI_WRTIMING_WRSTRB_SHIFT 8
136 #define _EBI_WRTIMING_WRSTRB_MASK 0xF00UL
137 #define _EBI_WRTIMING_WRSTRB_DEFAULT 0x00000000UL
138 #define EBI_WRTIMING_WRSTRB_DEFAULT (_EBI_WRTIMING_WRSTRB_DEFAULT << 8)
139 #define _EBI_WRTIMING_WRHOLD_SHIFT 16
140 #define _EBI_WRTIMING_WRHOLD_MASK 0x30000UL
141 #define _EBI_WRTIMING_WRHOLD_DEFAULT 0x00000001UL
142 #define EBI_WRTIMING_WRHOLD_DEFAULT (_EBI_WRTIMING_WRHOLD_DEFAULT << 16)
144 /* Bit fields for EBI POLARITY */
145 #define _EBI_POLARITY_RESETVALUE 0x00000000UL
146 #define _EBI_POLARITY_MASK 0x0000001FUL
147 #define EBI_POLARITY_CSPOL (0x1UL << 0)
148 #define _EBI_POLARITY_CSPOL_SHIFT 0
149 #define _EBI_POLARITY_CSPOL_MASK 0x1UL
150 #define _EBI_POLARITY_CSPOL_DEFAULT 0x00000000UL
151 #define _EBI_POLARITY_CSPOL_ACTIVELOW 0x00000000UL
152 #define _EBI_POLARITY_CSPOL_ACTIVEHIGH 0x00000001UL
153 #define EBI_POLARITY_CSPOL_DEFAULT (_EBI_POLARITY_CSPOL_DEFAULT << 0)
154 #define EBI_POLARITY_CSPOL_ACTIVELOW (_EBI_POLARITY_CSPOL_ACTIVELOW << 0)
155 #define EBI_POLARITY_CSPOL_ACTIVEHIGH (_EBI_POLARITY_CSPOL_ACTIVEHIGH << 0)
156 #define EBI_POLARITY_REPOL (0x1UL << 1)
157 #define _EBI_POLARITY_REPOL_SHIFT 1
158 #define _EBI_POLARITY_REPOL_MASK 0x2UL
159 #define _EBI_POLARITY_REPOL_DEFAULT 0x00000000UL
160 #define _EBI_POLARITY_REPOL_ACTIVELOW 0x00000000UL
161 #define _EBI_POLARITY_REPOL_ACTIVEHIGH 0x00000001UL
162 #define EBI_POLARITY_REPOL_DEFAULT (_EBI_POLARITY_REPOL_DEFAULT << 1)
163 #define EBI_POLARITY_REPOL_ACTIVELOW (_EBI_POLARITY_REPOL_ACTIVELOW << 1)
164 #define EBI_POLARITY_REPOL_ACTIVEHIGH (_EBI_POLARITY_REPOL_ACTIVEHIGH << 1)
165 #define EBI_POLARITY_WEPOL (0x1UL << 2)
166 #define _EBI_POLARITY_WEPOL_SHIFT 2
167 #define _EBI_POLARITY_WEPOL_MASK 0x4UL
168 #define _EBI_POLARITY_WEPOL_DEFAULT 0x00000000UL
169 #define _EBI_POLARITY_WEPOL_ACTIVELOW 0x00000000UL
170 #define _EBI_POLARITY_WEPOL_ACTIVEHIGH 0x00000001UL
171 #define EBI_POLARITY_WEPOL_DEFAULT (_EBI_POLARITY_WEPOL_DEFAULT << 2)
172 #define EBI_POLARITY_WEPOL_ACTIVELOW (_EBI_POLARITY_WEPOL_ACTIVELOW << 2)
173 #define EBI_POLARITY_WEPOL_ACTIVEHIGH (_EBI_POLARITY_WEPOL_ACTIVEHIGH << 2)
174 #define EBI_POLARITY_ALEPOL (0x1UL << 3)
175 #define _EBI_POLARITY_ALEPOL_SHIFT 3
176 #define _EBI_POLARITY_ALEPOL_MASK 0x8UL
177 #define _EBI_POLARITY_ALEPOL_DEFAULT 0x00000000UL
178 #define _EBI_POLARITY_ALEPOL_ACTIVELOW 0x00000000UL
179 #define _EBI_POLARITY_ALEPOL_ACTIVEHIGH 0x00000001UL
180 #define EBI_POLARITY_ALEPOL_DEFAULT (_EBI_POLARITY_ALEPOL_DEFAULT << 3)
181 #define EBI_POLARITY_ALEPOL_ACTIVELOW (_EBI_POLARITY_ALEPOL_ACTIVELOW << 3)
182 #define EBI_POLARITY_ALEPOL_ACTIVEHIGH (_EBI_POLARITY_ALEPOL_ACTIVEHIGH << 3)
183 #define EBI_POLARITY_ARDYPOL (0x1UL << 4)
184 #define _EBI_POLARITY_ARDYPOL_SHIFT 4
185 #define _EBI_POLARITY_ARDYPOL_MASK 0x10UL
186 #define _EBI_POLARITY_ARDYPOL_DEFAULT 0x00000000UL
187 #define _EBI_POLARITY_ARDYPOL_ACTIVELOW 0x00000000UL
188 #define _EBI_POLARITY_ARDYPOL_ACTIVEHIGH 0x00000001UL
189 #define EBI_POLARITY_ARDYPOL_DEFAULT (_EBI_POLARITY_ARDYPOL_DEFAULT << 4)
190 #define EBI_POLARITY_ARDYPOL_ACTIVELOW (_EBI_POLARITY_ARDYPOL_ACTIVELOW << 4)
191 #define EBI_POLARITY_ARDYPOL_ACTIVEHIGH (_EBI_POLARITY_ARDYPOL_ACTIVEHIGH << 4)
193 /* Bit fields for EBI ROUTE */
194 #define _EBI_ROUTE_RESETVALUE 0x00000000UL
195 #define _EBI_ROUTE_MASK 0x0000007FUL
196 #define EBI_ROUTE_EBIPEN (0x1UL << 0)
197 #define _EBI_ROUTE_EBIPEN_SHIFT 0
198 #define _EBI_ROUTE_EBIPEN_MASK 0x1UL
199 #define _EBI_ROUTE_EBIPEN_DEFAULT 0x00000000UL
200 #define EBI_ROUTE_EBIPEN_DEFAULT (_EBI_ROUTE_EBIPEN_DEFAULT << 0)
201 #define EBI_ROUTE_CS0PEN (0x1UL << 1)
202 #define _EBI_ROUTE_CS0PEN_SHIFT 1
203 #define _EBI_ROUTE_CS0PEN_MASK 0x2UL
204 #define _EBI_ROUTE_CS0PEN_DEFAULT 0x00000000UL
205 #define EBI_ROUTE_CS0PEN_DEFAULT (_EBI_ROUTE_CS0PEN_DEFAULT << 1)
206 #define EBI_ROUTE_CS1PEN (0x1UL << 2)
207 #define _EBI_ROUTE_CS1PEN_SHIFT 2
208 #define _EBI_ROUTE_CS1PEN_MASK 0x4UL
209 #define _EBI_ROUTE_CS1PEN_DEFAULT 0x00000000UL
210 #define EBI_ROUTE_CS1PEN_DEFAULT (_EBI_ROUTE_CS1PEN_DEFAULT << 2)
211 #define EBI_ROUTE_CS2PEN (0x1UL << 3)
212 #define _EBI_ROUTE_CS2PEN_SHIFT 3
213 #define _EBI_ROUTE_CS2PEN_MASK 0x8UL
214 #define _EBI_ROUTE_CS2PEN_DEFAULT 0x00000000UL
215 #define EBI_ROUTE_CS2PEN_DEFAULT (_EBI_ROUTE_CS2PEN_DEFAULT << 3)
216 #define EBI_ROUTE_CS3PEN (0x1UL << 4)
217 #define _EBI_ROUTE_CS3PEN_SHIFT 4
218 #define _EBI_ROUTE_CS3PEN_MASK 0x10UL
219 #define _EBI_ROUTE_CS3PEN_DEFAULT 0x00000000UL
220 #define EBI_ROUTE_CS3PEN_DEFAULT (_EBI_ROUTE_CS3PEN_DEFAULT << 4)
221 #define EBI_ROUTE_ALEPEN (0x1UL << 5)
222 #define _EBI_ROUTE_ALEPEN_SHIFT 5
223 #define _EBI_ROUTE_ALEPEN_MASK 0x20UL
224 #define _EBI_ROUTE_ALEPEN_DEFAULT 0x00000000UL
225 #define EBI_ROUTE_ALEPEN_DEFAULT (_EBI_ROUTE_ALEPEN_DEFAULT << 5)
226 #define EBI_ROUTE_ARDYPEN (0x1UL << 6)
227 #define _EBI_ROUTE_ARDYPEN_SHIFT 6
228 #define _EBI_ROUTE_ARDYPEN_MASK 0x40UL
229 #define _EBI_ROUTE_ARDYPEN_DEFAULT 0x00000000UL
230 #define EBI_ROUTE_ARDYPEN_DEFAULT (_EBI_ROUTE_ARDYPEN_DEFAULT << 6)
__IOM uint32_t POLARITY
Definition: efm32g_ebi.h:47
__IOM uint32_t WRTIMING
Definition: efm32g_ebi.h:46
__IOM uint32_t CTRL
Definition: efm32g_ebi.h:43
__IOM uint32_t RDTIMING
Definition: efm32g_ebi.h:45
__IOM uint32_t ROUTE
Definition: efm32g_ebi.h:48
__IOM uint32_t ADDRTIMING
Definition: efm32g_ebi.h:44