EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
efr32mg1p_leuart.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t CMD;
45  __IM uint32_t STATUS;
46  __IOM uint32_t CLKDIV;
47  __IOM uint32_t STARTFRAME;
48  __IOM uint32_t SIGFRAME;
49  __IM uint32_t RXDATAX;
50  __IM uint32_t RXDATA;
51  __IM uint32_t RXDATAXP;
52  __IOM uint32_t TXDATAX;
53  __IOM uint32_t TXDATA;
54  __IM uint32_t IF;
55  __IOM uint32_t IFS;
56  __IOM uint32_t IFC;
57  __IOM uint32_t IEN;
58  __IOM uint32_t PULSECTRL;
60  __IOM uint32_t FREEZE;
61  __IM uint32_t SYNCBUSY;
63  uint32_t RESERVED0[3];
64  __IOM uint32_t ROUTEPEN;
65  __IOM uint32_t ROUTELOC0;
66  uint32_t RESERVED1[2];
67  __IOM uint32_t INPUT;
70 /**************************************************************************/
75 /* Bit fields for LEUART CTRL */
76 #define _LEUART_CTRL_RESETVALUE 0x00000000UL
77 #define _LEUART_CTRL_MASK 0x0000FFFFUL
78 #define LEUART_CTRL_AUTOTRI (0x1UL << 0)
79 #define _LEUART_CTRL_AUTOTRI_SHIFT 0
80 #define _LEUART_CTRL_AUTOTRI_MASK 0x1UL
81 #define _LEUART_CTRL_AUTOTRI_DEFAULT 0x00000000UL
82 #define LEUART_CTRL_AUTOTRI_DEFAULT (_LEUART_CTRL_AUTOTRI_DEFAULT << 0)
83 #define LEUART_CTRL_DATABITS (0x1UL << 1)
84 #define _LEUART_CTRL_DATABITS_SHIFT 1
85 #define _LEUART_CTRL_DATABITS_MASK 0x2UL
86 #define _LEUART_CTRL_DATABITS_DEFAULT 0x00000000UL
87 #define _LEUART_CTRL_DATABITS_EIGHT 0x00000000UL
88 #define _LEUART_CTRL_DATABITS_NINE 0x00000001UL
89 #define LEUART_CTRL_DATABITS_DEFAULT (_LEUART_CTRL_DATABITS_DEFAULT << 1)
90 #define LEUART_CTRL_DATABITS_EIGHT (_LEUART_CTRL_DATABITS_EIGHT << 1)
91 #define LEUART_CTRL_DATABITS_NINE (_LEUART_CTRL_DATABITS_NINE << 1)
92 #define _LEUART_CTRL_PARITY_SHIFT 2
93 #define _LEUART_CTRL_PARITY_MASK 0xCUL
94 #define _LEUART_CTRL_PARITY_DEFAULT 0x00000000UL
95 #define _LEUART_CTRL_PARITY_NONE 0x00000000UL
96 #define _LEUART_CTRL_PARITY_EVEN 0x00000002UL
97 #define _LEUART_CTRL_PARITY_ODD 0x00000003UL
98 #define LEUART_CTRL_PARITY_DEFAULT (_LEUART_CTRL_PARITY_DEFAULT << 2)
99 #define LEUART_CTRL_PARITY_NONE (_LEUART_CTRL_PARITY_NONE << 2)
100 #define LEUART_CTRL_PARITY_EVEN (_LEUART_CTRL_PARITY_EVEN << 2)
101 #define LEUART_CTRL_PARITY_ODD (_LEUART_CTRL_PARITY_ODD << 2)
102 #define LEUART_CTRL_STOPBITS (0x1UL << 4)
103 #define _LEUART_CTRL_STOPBITS_SHIFT 4
104 #define _LEUART_CTRL_STOPBITS_MASK 0x10UL
105 #define _LEUART_CTRL_STOPBITS_DEFAULT 0x00000000UL
106 #define _LEUART_CTRL_STOPBITS_ONE 0x00000000UL
107 #define _LEUART_CTRL_STOPBITS_TWO 0x00000001UL
108 #define LEUART_CTRL_STOPBITS_DEFAULT (_LEUART_CTRL_STOPBITS_DEFAULT << 4)
109 #define LEUART_CTRL_STOPBITS_ONE (_LEUART_CTRL_STOPBITS_ONE << 4)
110 #define LEUART_CTRL_STOPBITS_TWO (_LEUART_CTRL_STOPBITS_TWO << 4)
111 #define LEUART_CTRL_INV (0x1UL << 5)
112 #define _LEUART_CTRL_INV_SHIFT 5
113 #define _LEUART_CTRL_INV_MASK 0x20UL
114 #define _LEUART_CTRL_INV_DEFAULT 0x00000000UL
115 #define LEUART_CTRL_INV_DEFAULT (_LEUART_CTRL_INV_DEFAULT << 5)
116 #define LEUART_CTRL_ERRSDMA (0x1UL << 6)
117 #define _LEUART_CTRL_ERRSDMA_SHIFT 6
118 #define _LEUART_CTRL_ERRSDMA_MASK 0x40UL
119 #define _LEUART_CTRL_ERRSDMA_DEFAULT 0x00000000UL
120 #define LEUART_CTRL_ERRSDMA_DEFAULT (_LEUART_CTRL_ERRSDMA_DEFAULT << 6)
121 #define LEUART_CTRL_LOOPBK (0x1UL << 7)
122 #define _LEUART_CTRL_LOOPBK_SHIFT 7
123 #define _LEUART_CTRL_LOOPBK_MASK 0x80UL
124 #define _LEUART_CTRL_LOOPBK_DEFAULT 0x00000000UL
125 #define LEUART_CTRL_LOOPBK_DEFAULT (_LEUART_CTRL_LOOPBK_DEFAULT << 7)
126 #define LEUART_CTRL_SFUBRX (0x1UL << 8)
127 #define _LEUART_CTRL_SFUBRX_SHIFT 8
128 #define _LEUART_CTRL_SFUBRX_MASK 0x100UL
129 #define _LEUART_CTRL_SFUBRX_DEFAULT 0x00000000UL
130 #define LEUART_CTRL_SFUBRX_DEFAULT (_LEUART_CTRL_SFUBRX_DEFAULT << 8)
131 #define LEUART_CTRL_MPM (0x1UL << 9)
132 #define _LEUART_CTRL_MPM_SHIFT 9
133 #define _LEUART_CTRL_MPM_MASK 0x200UL
134 #define _LEUART_CTRL_MPM_DEFAULT 0x00000000UL
135 #define LEUART_CTRL_MPM_DEFAULT (_LEUART_CTRL_MPM_DEFAULT << 9)
136 #define LEUART_CTRL_MPAB (0x1UL << 10)
137 #define _LEUART_CTRL_MPAB_SHIFT 10
138 #define _LEUART_CTRL_MPAB_MASK 0x400UL
139 #define _LEUART_CTRL_MPAB_DEFAULT 0x00000000UL
140 #define LEUART_CTRL_MPAB_DEFAULT (_LEUART_CTRL_MPAB_DEFAULT << 10)
141 #define LEUART_CTRL_BIT8DV (0x1UL << 11)
142 #define _LEUART_CTRL_BIT8DV_SHIFT 11
143 #define _LEUART_CTRL_BIT8DV_MASK 0x800UL
144 #define _LEUART_CTRL_BIT8DV_DEFAULT 0x00000000UL
145 #define LEUART_CTRL_BIT8DV_DEFAULT (_LEUART_CTRL_BIT8DV_DEFAULT << 11)
146 #define LEUART_CTRL_RXDMAWU (0x1UL << 12)
147 #define _LEUART_CTRL_RXDMAWU_SHIFT 12
148 #define _LEUART_CTRL_RXDMAWU_MASK 0x1000UL
149 #define _LEUART_CTRL_RXDMAWU_DEFAULT 0x00000000UL
150 #define LEUART_CTRL_RXDMAWU_DEFAULT (_LEUART_CTRL_RXDMAWU_DEFAULT << 12)
151 #define LEUART_CTRL_TXDMAWU (0x1UL << 13)
152 #define _LEUART_CTRL_TXDMAWU_SHIFT 13
153 #define _LEUART_CTRL_TXDMAWU_MASK 0x2000UL
154 #define _LEUART_CTRL_TXDMAWU_DEFAULT 0x00000000UL
155 #define LEUART_CTRL_TXDMAWU_DEFAULT (_LEUART_CTRL_TXDMAWU_DEFAULT << 13)
156 #define _LEUART_CTRL_TXDELAY_SHIFT 14
157 #define _LEUART_CTRL_TXDELAY_MASK 0xC000UL
158 #define _LEUART_CTRL_TXDELAY_DEFAULT 0x00000000UL
159 #define _LEUART_CTRL_TXDELAY_NONE 0x00000000UL
160 #define _LEUART_CTRL_TXDELAY_SINGLE 0x00000001UL
161 #define _LEUART_CTRL_TXDELAY_DOUBLE 0x00000002UL
162 #define _LEUART_CTRL_TXDELAY_TRIPLE 0x00000003UL
163 #define LEUART_CTRL_TXDELAY_DEFAULT (_LEUART_CTRL_TXDELAY_DEFAULT << 14)
164 #define LEUART_CTRL_TXDELAY_NONE (_LEUART_CTRL_TXDELAY_NONE << 14)
165 #define LEUART_CTRL_TXDELAY_SINGLE (_LEUART_CTRL_TXDELAY_SINGLE << 14)
166 #define LEUART_CTRL_TXDELAY_DOUBLE (_LEUART_CTRL_TXDELAY_DOUBLE << 14)
167 #define LEUART_CTRL_TXDELAY_TRIPLE (_LEUART_CTRL_TXDELAY_TRIPLE << 14)
169 /* Bit fields for LEUART CMD */
170 #define _LEUART_CMD_RESETVALUE 0x00000000UL
171 #define _LEUART_CMD_MASK 0x000000FFUL
172 #define LEUART_CMD_RXEN (0x1UL << 0)
173 #define _LEUART_CMD_RXEN_SHIFT 0
174 #define _LEUART_CMD_RXEN_MASK 0x1UL
175 #define _LEUART_CMD_RXEN_DEFAULT 0x00000000UL
176 #define LEUART_CMD_RXEN_DEFAULT (_LEUART_CMD_RXEN_DEFAULT << 0)
177 #define LEUART_CMD_RXDIS (0x1UL << 1)
178 #define _LEUART_CMD_RXDIS_SHIFT 1
179 #define _LEUART_CMD_RXDIS_MASK 0x2UL
180 #define _LEUART_CMD_RXDIS_DEFAULT 0x00000000UL
181 #define LEUART_CMD_RXDIS_DEFAULT (_LEUART_CMD_RXDIS_DEFAULT << 1)
182 #define LEUART_CMD_TXEN (0x1UL << 2)
183 #define _LEUART_CMD_TXEN_SHIFT 2
184 #define _LEUART_CMD_TXEN_MASK 0x4UL
185 #define _LEUART_CMD_TXEN_DEFAULT 0x00000000UL
186 #define LEUART_CMD_TXEN_DEFAULT (_LEUART_CMD_TXEN_DEFAULT << 2)
187 #define LEUART_CMD_TXDIS (0x1UL << 3)
188 #define _LEUART_CMD_TXDIS_SHIFT 3
189 #define _LEUART_CMD_TXDIS_MASK 0x8UL
190 #define _LEUART_CMD_TXDIS_DEFAULT 0x00000000UL
191 #define LEUART_CMD_TXDIS_DEFAULT (_LEUART_CMD_TXDIS_DEFAULT << 3)
192 #define LEUART_CMD_RXBLOCKEN (0x1UL << 4)
193 #define _LEUART_CMD_RXBLOCKEN_SHIFT 4
194 #define _LEUART_CMD_RXBLOCKEN_MASK 0x10UL
195 #define _LEUART_CMD_RXBLOCKEN_DEFAULT 0x00000000UL
196 #define LEUART_CMD_RXBLOCKEN_DEFAULT (_LEUART_CMD_RXBLOCKEN_DEFAULT << 4)
197 #define LEUART_CMD_RXBLOCKDIS (0x1UL << 5)
198 #define _LEUART_CMD_RXBLOCKDIS_SHIFT 5
199 #define _LEUART_CMD_RXBLOCKDIS_MASK 0x20UL
200 #define _LEUART_CMD_RXBLOCKDIS_DEFAULT 0x00000000UL
201 #define LEUART_CMD_RXBLOCKDIS_DEFAULT (_LEUART_CMD_RXBLOCKDIS_DEFAULT << 5)
202 #define LEUART_CMD_CLEARTX (0x1UL << 6)
203 #define _LEUART_CMD_CLEARTX_SHIFT 6
204 #define _LEUART_CMD_CLEARTX_MASK 0x40UL
205 #define _LEUART_CMD_CLEARTX_DEFAULT 0x00000000UL
206 #define LEUART_CMD_CLEARTX_DEFAULT (_LEUART_CMD_CLEARTX_DEFAULT << 6)
207 #define LEUART_CMD_CLEARRX (0x1UL << 7)
208 #define _LEUART_CMD_CLEARRX_SHIFT 7
209 #define _LEUART_CMD_CLEARRX_MASK 0x80UL
210 #define _LEUART_CMD_CLEARRX_DEFAULT 0x00000000UL
211 #define LEUART_CMD_CLEARRX_DEFAULT (_LEUART_CMD_CLEARRX_DEFAULT << 7)
213 /* Bit fields for LEUART STATUS */
214 #define _LEUART_STATUS_RESETVALUE 0x00000050UL
215 #define _LEUART_STATUS_MASK 0x0000007FUL
216 #define LEUART_STATUS_RXENS (0x1UL << 0)
217 #define _LEUART_STATUS_RXENS_SHIFT 0
218 #define _LEUART_STATUS_RXENS_MASK 0x1UL
219 #define _LEUART_STATUS_RXENS_DEFAULT 0x00000000UL
220 #define LEUART_STATUS_RXENS_DEFAULT (_LEUART_STATUS_RXENS_DEFAULT << 0)
221 #define LEUART_STATUS_TXENS (0x1UL << 1)
222 #define _LEUART_STATUS_TXENS_SHIFT 1
223 #define _LEUART_STATUS_TXENS_MASK 0x2UL
224 #define _LEUART_STATUS_TXENS_DEFAULT 0x00000000UL
225 #define LEUART_STATUS_TXENS_DEFAULT (_LEUART_STATUS_TXENS_DEFAULT << 1)
226 #define LEUART_STATUS_RXBLOCK (0x1UL << 2)
227 #define _LEUART_STATUS_RXBLOCK_SHIFT 2
228 #define _LEUART_STATUS_RXBLOCK_MASK 0x4UL
229 #define _LEUART_STATUS_RXBLOCK_DEFAULT 0x00000000UL
230 #define LEUART_STATUS_RXBLOCK_DEFAULT (_LEUART_STATUS_RXBLOCK_DEFAULT << 2)
231 #define LEUART_STATUS_TXC (0x1UL << 3)
232 #define _LEUART_STATUS_TXC_SHIFT 3
233 #define _LEUART_STATUS_TXC_MASK 0x8UL
234 #define _LEUART_STATUS_TXC_DEFAULT 0x00000000UL
235 #define LEUART_STATUS_TXC_DEFAULT (_LEUART_STATUS_TXC_DEFAULT << 3)
236 #define LEUART_STATUS_TXBL (0x1UL << 4)
237 #define _LEUART_STATUS_TXBL_SHIFT 4
238 #define _LEUART_STATUS_TXBL_MASK 0x10UL
239 #define _LEUART_STATUS_TXBL_DEFAULT 0x00000001UL
240 #define LEUART_STATUS_TXBL_DEFAULT (_LEUART_STATUS_TXBL_DEFAULT << 4)
241 #define LEUART_STATUS_RXDATAV (0x1UL << 5)
242 #define _LEUART_STATUS_RXDATAV_SHIFT 5
243 #define _LEUART_STATUS_RXDATAV_MASK 0x20UL
244 #define _LEUART_STATUS_RXDATAV_DEFAULT 0x00000000UL
245 #define LEUART_STATUS_RXDATAV_DEFAULT (_LEUART_STATUS_RXDATAV_DEFAULT << 5)
246 #define LEUART_STATUS_TXIDLE (0x1UL << 6)
247 #define _LEUART_STATUS_TXIDLE_SHIFT 6
248 #define _LEUART_STATUS_TXIDLE_MASK 0x40UL
249 #define _LEUART_STATUS_TXIDLE_DEFAULT 0x00000001UL
250 #define LEUART_STATUS_TXIDLE_DEFAULT (_LEUART_STATUS_TXIDLE_DEFAULT << 6)
252 /* Bit fields for LEUART CLKDIV */
253 #define _LEUART_CLKDIV_RESETVALUE 0x00000000UL
254 #define _LEUART_CLKDIV_MASK 0x0001FFF8UL
255 #define _LEUART_CLKDIV_DIV_SHIFT 3
256 #define _LEUART_CLKDIV_DIV_MASK 0x1FFF8UL
257 #define _LEUART_CLKDIV_DIV_DEFAULT 0x00000000UL
258 #define LEUART_CLKDIV_DIV_DEFAULT (_LEUART_CLKDIV_DIV_DEFAULT << 3)
260 /* Bit fields for LEUART STARTFRAME */
261 #define _LEUART_STARTFRAME_RESETVALUE 0x00000000UL
262 #define _LEUART_STARTFRAME_MASK 0x000001FFUL
263 #define _LEUART_STARTFRAME_STARTFRAME_SHIFT 0
264 #define _LEUART_STARTFRAME_STARTFRAME_MASK 0x1FFUL
265 #define _LEUART_STARTFRAME_STARTFRAME_DEFAULT 0x00000000UL
266 #define LEUART_STARTFRAME_STARTFRAME_DEFAULT (_LEUART_STARTFRAME_STARTFRAME_DEFAULT << 0)
268 /* Bit fields for LEUART SIGFRAME */
269 #define _LEUART_SIGFRAME_RESETVALUE 0x00000000UL
270 #define _LEUART_SIGFRAME_MASK 0x000001FFUL
271 #define _LEUART_SIGFRAME_SIGFRAME_SHIFT 0
272 #define _LEUART_SIGFRAME_SIGFRAME_MASK 0x1FFUL
273 #define _LEUART_SIGFRAME_SIGFRAME_DEFAULT 0x00000000UL
274 #define LEUART_SIGFRAME_SIGFRAME_DEFAULT (_LEUART_SIGFRAME_SIGFRAME_DEFAULT << 0)
276 /* Bit fields for LEUART RXDATAX */
277 #define _LEUART_RXDATAX_RESETVALUE 0x00000000UL
278 #define _LEUART_RXDATAX_MASK 0x0000C1FFUL
279 #define _LEUART_RXDATAX_RXDATA_SHIFT 0
280 #define _LEUART_RXDATAX_RXDATA_MASK 0x1FFUL
281 #define _LEUART_RXDATAX_RXDATA_DEFAULT 0x00000000UL
282 #define LEUART_RXDATAX_RXDATA_DEFAULT (_LEUART_RXDATAX_RXDATA_DEFAULT << 0)
283 #define LEUART_RXDATAX_PERR (0x1UL << 14)
284 #define _LEUART_RXDATAX_PERR_SHIFT 14
285 #define _LEUART_RXDATAX_PERR_MASK 0x4000UL
286 #define _LEUART_RXDATAX_PERR_DEFAULT 0x00000000UL
287 #define LEUART_RXDATAX_PERR_DEFAULT (_LEUART_RXDATAX_PERR_DEFAULT << 14)
288 #define LEUART_RXDATAX_FERR (0x1UL << 15)
289 #define _LEUART_RXDATAX_FERR_SHIFT 15
290 #define _LEUART_RXDATAX_FERR_MASK 0x8000UL
291 #define _LEUART_RXDATAX_FERR_DEFAULT 0x00000000UL
292 #define LEUART_RXDATAX_FERR_DEFAULT (_LEUART_RXDATAX_FERR_DEFAULT << 15)
294 /* Bit fields for LEUART RXDATA */
295 #define _LEUART_RXDATA_RESETVALUE 0x00000000UL
296 #define _LEUART_RXDATA_MASK 0x000000FFUL
297 #define _LEUART_RXDATA_RXDATA_SHIFT 0
298 #define _LEUART_RXDATA_RXDATA_MASK 0xFFUL
299 #define _LEUART_RXDATA_RXDATA_DEFAULT 0x00000000UL
300 #define LEUART_RXDATA_RXDATA_DEFAULT (_LEUART_RXDATA_RXDATA_DEFAULT << 0)
302 /* Bit fields for LEUART RXDATAXP */
303 #define _LEUART_RXDATAXP_RESETVALUE 0x00000000UL
304 #define _LEUART_RXDATAXP_MASK 0x0000C1FFUL
305 #define _LEUART_RXDATAXP_RXDATAP_SHIFT 0
306 #define _LEUART_RXDATAXP_RXDATAP_MASK 0x1FFUL
307 #define _LEUART_RXDATAXP_RXDATAP_DEFAULT 0x00000000UL
308 #define LEUART_RXDATAXP_RXDATAP_DEFAULT (_LEUART_RXDATAXP_RXDATAP_DEFAULT << 0)
309 #define LEUART_RXDATAXP_PERRP (0x1UL << 14)
310 #define _LEUART_RXDATAXP_PERRP_SHIFT 14
311 #define _LEUART_RXDATAXP_PERRP_MASK 0x4000UL
312 #define _LEUART_RXDATAXP_PERRP_DEFAULT 0x00000000UL
313 #define LEUART_RXDATAXP_PERRP_DEFAULT (_LEUART_RXDATAXP_PERRP_DEFAULT << 14)
314 #define LEUART_RXDATAXP_FERRP (0x1UL << 15)
315 #define _LEUART_RXDATAXP_FERRP_SHIFT 15
316 #define _LEUART_RXDATAXP_FERRP_MASK 0x8000UL
317 #define _LEUART_RXDATAXP_FERRP_DEFAULT 0x00000000UL
318 #define LEUART_RXDATAXP_FERRP_DEFAULT (_LEUART_RXDATAXP_FERRP_DEFAULT << 15)
320 /* Bit fields for LEUART TXDATAX */
321 #define _LEUART_TXDATAX_RESETVALUE 0x00000000UL
322 #define _LEUART_TXDATAX_MASK 0x0000E1FFUL
323 #define _LEUART_TXDATAX_TXDATA_SHIFT 0
324 #define _LEUART_TXDATAX_TXDATA_MASK 0x1FFUL
325 #define _LEUART_TXDATAX_TXDATA_DEFAULT 0x00000000UL
326 #define LEUART_TXDATAX_TXDATA_DEFAULT (_LEUART_TXDATAX_TXDATA_DEFAULT << 0)
327 #define LEUART_TXDATAX_TXBREAK (0x1UL << 13)
328 #define _LEUART_TXDATAX_TXBREAK_SHIFT 13
329 #define _LEUART_TXDATAX_TXBREAK_MASK 0x2000UL
330 #define _LEUART_TXDATAX_TXBREAK_DEFAULT 0x00000000UL
331 #define LEUART_TXDATAX_TXBREAK_DEFAULT (_LEUART_TXDATAX_TXBREAK_DEFAULT << 13)
332 #define LEUART_TXDATAX_TXDISAT (0x1UL << 14)
333 #define _LEUART_TXDATAX_TXDISAT_SHIFT 14
334 #define _LEUART_TXDATAX_TXDISAT_MASK 0x4000UL
335 #define _LEUART_TXDATAX_TXDISAT_DEFAULT 0x00000000UL
336 #define LEUART_TXDATAX_TXDISAT_DEFAULT (_LEUART_TXDATAX_TXDISAT_DEFAULT << 14)
337 #define LEUART_TXDATAX_RXENAT (0x1UL << 15)
338 #define _LEUART_TXDATAX_RXENAT_SHIFT 15
339 #define _LEUART_TXDATAX_RXENAT_MASK 0x8000UL
340 #define _LEUART_TXDATAX_RXENAT_DEFAULT 0x00000000UL
341 #define LEUART_TXDATAX_RXENAT_DEFAULT (_LEUART_TXDATAX_RXENAT_DEFAULT << 15)
343 /* Bit fields for LEUART TXDATA */
344 #define _LEUART_TXDATA_RESETVALUE 0x00000000UL
345 #define _LEUART_TXDATA_MASK 0x000000FFUL
346 #define _LEUART_TXDATA_TXDATA_SHIFT 0
347 #define _LEUART_TXDATA_TXDATA_MASK 0xFFUL
348 #define _LEUART_TXDATA_TXDATA_DEFAULT 0x00000000UL
349 #define LEUART_TXDATA_TXDATA_DEFAULT (_LEUART_TXDATA_TXDATA_DEFAULT << 0)
351 /* Bit fields for LEUART IF */
352 #define _LEUART_IF_RESETVALUE 0x00000002UL
353 #define _LEUART_IF_MASK 0x000007FFUL
354 #define LEUART_IF_TXC (0x1UL << 0)
355 #define _LEUART_IF_TXC_SHIFT 0
356 #define _LEUART_IF_TXC_MASK 0x1UL
357 #define _LEUART_IF_TXC_DEFAULT 0x00000000UL
358 #define LEUART_IF_TXC_DEFAULT (_LEUART_IF_TXC_DEFAULT << 0)
359 #define LEUART_IF_TXBL (0x1UL << 1)
360 #define _LEUART_IF_TXBL_SHIFT 1
361 #define _LEUART_IF_TXBL_MASK 0x2UL
362 #define _LEUART_IF_TXBL_DEFAULT 0x00000001UL
363 #define LEUART_IF_TXBL_DEFAULT (_LEUART_IF_TXBL_DEFAULT << 1)
364 #define LEUART_IF_RXDATAV (0x1UL << 2)
365 #define _LEUART_IF_RXDATAV_SHIFT 2
366 #define _LEUART_IF_RXDATAV_MASK 0x4UL
367 #define _LEUART_IF_RXDATAV_DEFAULT 0x00000000UL
368 #define LEUART_IF_RXDATAV_DEFAULT (_LEUART_IF_RXDATAV_DEFAULT << 2)
369 #define LEUART_IF_RXOF (0x1UL << 3)
370 #define _LEUART_IF_RXOF_SHIFT 3
371 #define _LEUART_IF_RXOF_MASK 0x8UL
372 #define _LEUART_IF_RXOF_DEFAULT 0x00000000UL
373 #define LEUART_IF_RXOF_DEFAULT (_LEUART_IF_RXOF_DEFAULT << 3)
374 #define LEUART_IF_RXUF (0x1UL << 4)
375 #define _LEUART_IF_RXUF_SHIFT 4
376 #define _LEUART_IF_RXUF_MASK 0x10UL
377 #define _LEUART_IF_RXUF_DEFAULT 0x00000000UL
378 #define LEUART_IF_RXUF_DEFAULT (_LEUART_IF_RXUF_DEFAULT << 4)
379 #define LEUART_IF_TXOF (0x1UL << 5)
380 #define _LEUART_IF_TXOF_SHIFT 5
381 #define _LEUART_IF_TXOF_MASK 0x20UL
382 #define _LEUART_IF_TXOF_DEFAULT 0x00000000UL
383 #define LEUART_IF_TXOF_DEFAULT (_LEUART_IF_TXOF_DEFAULT << 5)
384 #define LEUART_IF_PERR (0x1UL << 6)
385 #define _LEUART_IF_PERR_SHIFT 6
386 #define _LEUART_IF_PERR_MASK 0x40UL
387 #define _LEUART_IF_PERR_DEFAULT 0x00000000UL
388 #define LEUART_IF_PERR_DEFAULT (_LEUART_IF_PERR_DEFAULT << 6)
389 #define LEUART_IF_FERR (0x1UL << 7)
390 #define _LEUART_IF_FERR_SHIFT 7
391 #define _LEUART_IF_FERR_MASK 0x80UL
392 #define _LEUART_IF_FERR_DEFAULT 0x00000000UL
393 #define LEUART_IF_FERR_DEFAULT (_LEUART_IF_FERR_DEFAULT << 7)
394 #define LEUART_IF_MPAF (0x1UL << 8)
395 #define _LEUART_IF_MPAF_SHIFT 8
396 #define _LEUART_IF_MPAF_MASK 0x100UL
397 #define _LEUART_IF_MPAF_DEFAULT 0x00000000UL
398 #define LEUART_IF_MPAF_DEFAULT (_LEUART_IF_MPAF_DEFAULT << 8)
399 #define LEUART_IF_STARTF (0x1UL << 9)
400 #define _LEUART_IF_STARTF_SHIFT 9
401 #define _LEUART_IF_STARTF_MASK 0x200UL
402 #define _LEUART_IF_STARTF_DEFAULT 0x00000000UL
403 #define LEUART_IF_STARTF_DEFAULT (_LEUART_IF_STARTF_DEFAULT << 9)
404 #define LEUART_IF_SIGF (0x1UL << 10)
405 #define _LEUART_IF_SIGF_SHIFT 10
406 #define _LEUART_IF_SIGF_MASK 0x400UL
407 #define _LEUART_IF_SIGF_DEFAULT 0x00000000UL
408 #define LEUART_IF_SIGF_DEFAULT (_LEUART_IF_SIGF_DEFAULT << 10)
410 /* Bit fields for LEUART IFS */
411 #define _LEUART_IFS_RESETVALUE 0x00000000UL
412 #define _LEUART_IFS_MASK 0x000007F9UL
413 #define LEUART_IFS_TXC (0x1UL << 0)
414 #define _LEUART_IFS_TXC_SHIFT 0
415 #define _LEUART_IFS_TXC_MASK 0x1UL
416 #define _LEUART_IFS_TXC_DEFAULT 0x00000000UL
417 #define LEUART_IFS_TXC_DEFAULT (_LEUART_IFS_TXC_DEFAULT << 0)
418 #define LEUART_IFS_RXOF (0x1UL << 3)
419 #define _LEUART_IFS_RXOF_SHIFT 3
420 #define _LEUART_IFS_RXOF_MASK 0x8UL
421 #define _LEUART_IFS_RXOF_DEFAULT 0x00000000UL
422 #define LEUART_IFS_RXOF_DEFAULT (_LEUART_IFS_RXOF_DEFAULT << 3)
423 #define LEUART_IFS_RXUF (0x1UL << 4)
424 #define _LEUART_IFS_RXUF_SHIFT 4
425 #define _LEUART_IFS_RXUF_MASK 0x10UL
426 #define _LEUART_IFS_RXUF_DEFAULT 0x00000000UL
427 #define LEUART_IFS_RXUF_DEFAULT (_LEUART_IFS_RXUF_DEFAULT << 4)
428 #define LEUART_IFS_TXOF (0x1UL << 5)
429 #define _LEUART_IFS_TXOF_SHIFT 5
430 #define _LEUART_IFS_TXOF_MASK 0x20UL
431 #define _LEUART_IFS_TXOF_DEFAULT 0x00000000UL
432 #define LEUART_IFS_TXOF_DEFAULT (_LEUART_IFS_TXOF_DEFAULT << 5)
433 #define LEUART_IFS_PERR (0x1UL << 6)
434 #define _LEUART_IFS_PERR_SHIFT 6
435 #define _LEUART_IFS_PERR_MASK 0x40UL
436 #define _LEUART_IFS_PERR_DEFAULT 0x00000000UL
437 #define LEUART_IFS_PERR_DEFAULT (_LEUART_IFS_PERR_DEFAULT << 6)
438 #define LEUART_IFS_FERR (0x1UL << 7)
439 #define _LEUART_IFS_FERR_SHIFT 7
440 #define _LEUART_IFS_FERR_MASK 0x80UL
441 #define _LEUART_IFS_FERR_DEFAULT 0x00000000UL
442 #define LEUART_IFS_FERR_DEFAULT (_LEUART_IFS_FERR_DEFAULT << 7)
443 #define LEUART_IFS_MPAF (0x1UL << 8)
444 #define _LEUART_IFS_MPAF_SHIFT 8
445 #define _LEUART_IFS_MPAF_MASK 0x100UL
446 #define _LEUART_IFS_MPAF_DEFAULT 0x00000000UL
447 #define LEUART_IFS_MPAF_DEFAULT (_LEUART_IFS_MPAF_DEFAULT << 8)
448 #define LEUART_IFS_STARTF (0x1UL << 9)
449 #define _LEUART_IFS_STARTF_SHIFT 9
450 #define _LEUART_IFS_STARTF_MASK 0x200UL
451 #define _LEUART_IFS_STARTF_DEFAULT 0x00000000UL
452 #define LEUART_IFS_STARTF_DEFAULT (_LEUART_IFS_STARTF_DEFAULT << 9)
453 #define LEUART_IFS_SIGF (0x1UL << 10)
454 #define _LEUART_IFS_SIGF_SHIFT 10
455 #define _LEUART_IFS_SIGF_MASK 0x400UL
456 #define _LEUART_IFS_SIGF_DEFAULT 0x00000000UL
457 #define LEUART_IFS_SIGF_DEFAULT (_LEUART_IFS_SIGF_DEFAULT << 10)
459 /* Bit fields for LEUART IFC */
460 #define _LEUART_IFC_RESETVALUE 0x00000000UL
461 #define _LEUART_IFC_MASK 0x000007F9UL
462 #define LEUART_IFC_TXC (0x1UL << 0)
463 #define _LEUART_IFC_TXC_SHIFT 0
464 #define _LEUART_IFC_TXC_MASK 0x1UL
465 #define _LEUART_IFC_TXC_DEFAULT 0x00000000UL
466 #define LEUART_IFC_TXC_DEFAULT (_LEUART_IFC_TXC_DEFAULT << 0)
467 #define LEUART_IFC_RXOF (0x1UL << 3)
468 #define _LEUART_IFC_RXOF_SHIFT 3
469 #define _LEUART_IFC_RXOF_MASK 0x8UL
470 #define _LEUART_IFC_RXOF_DEFAULT 0x00000000UL
471 #define LEUART_IFC_RXOF_DEFAULT (_LEUART_IFC_RXOF_DEFAULT << 3)
472 #define LEUART_IFC_RXUF (0x1UL << 4)
473 #define _LEUART_IFC_RXUF_SHIFT 4
474 #define _LEUART_IFC_RXUF_MASK 0x10UL
475 #define _LEUART_IFC_RXUF_DEFAULT 0x00000000UL
476 #define LEUART_IFC_RXUF_DEFAULT (_LEUART_IFC_RXUF_DEFAULT << 4)
477 #define LEUART_IFC_TXOF (0x1UL << 5)
478 #define _LEUART_IFC_TXOF_SHIFT 5
479 #define _LEUART_IFC_TXOF_MASK 0x20UL
480 #define _LEUART_IFC_TXOF_DEFAULT 0x00000000UL
481 #define LEUART_IFC_TXOF_DEFAULT (_LEUART_IFC_TXOF_DEFAULT << 5)
482 #define LEUART_IFC_PERR (0x1UL << 6)
483 #define _LEUART_IFC_PERR_SHIFT 6
484 #define _LEUART_IFC_PERR_MASK 0x40UL
485 #define _LEUART_IFC_PERR_DEFAULT 0x00000000UL
486 #define LEUART_IFC_PERR_DEFAULT (_LEUART_IFC_PERR_DEFAULT << 6)
487 #define LEUART_IFC_FERR (0x1UL << 7)
488 #define _LEUART_IFC_FERR_SHIFT 7
489 #define _LEUART_IFC_FERR_MASK 0x80UL
490 #define _LEUART_IFC_FERR_DEFAULT 0x00000000UL
491 #define LEUART_IFC_FERR_DEFAULT (_LEUART_IFC_FERR_DEFAULT << 7)
492 #define LEUART_IFC_MPAF (0x1UL << 8)
493 #define _LEUART_IFC_MPAF_SHIFT 8
494 #define _LEUART_IFC_MPAF_MASK 0x100UL
495 #define _LEUART_IFC_MPAF_DEFAULT 0x00000000UL
496 #define LEUART_IFC_MPAF_DEFAULT (_LEUART_IFC_MPAF_DEFAULT << 8)
497 #define LEUART_IFC_STARTF (0x1UL << 9)
498 #define _LEUART_IFC_STARTF_SHIFT 9
499 #define _LEUART_IFC_STARTF_MASK 0x200UL
500 #define _LEUART_IFC_STARTF_DEFAULT 0x00000000UL
501 #define LEUART_IFC_STARTF_DEFAULT (_LEUART_IFC_STARTF_DEFAULT << 9)
502 #define LEUART_IFC_SIGF (0x1UL << 10)
503 #define _LEUART_IFC_SIGF_SHIFT 10
504 #define _LEUART_IFC_SIGF_MASK 0x400UL
505 #define _LEUART_IFC_SIGF_DEFAULT 0x00000000UL
506 #define LEUART_IFC_SIGF_DEFAULT (_LEUART_IFC_SIGF_DEFAULT << 10)
508 /* Bit fields for LEUART IEN */
509 #define _LEUART_IEN_RESETVALUE 0x00000000UL
510 #define _LEUART_IEN_MASK 0x000007FFUL
511 #define LEUART_IEN_TXC (0x1UL << 0)
512 #define _LEUART_IEN_TXC_SHIFT 0
513 #define _LEUART_IEN_TXC_MASK 0x1UL
514 #define _LEUART_IEN_TXC_DEFAULT 0x00000000UL
515 #define LEUART_IEN_TXC_DEFAULT (_LEUART_IEN_TXC_DEFAULT << 0)
516 #define LEUART_IEN_TXBL (0x1UL << 1)
517 #define _LEUART_IEN_TXBL_SHIFT 1
518 #define _LEUART_IEN_TXBL_MASK 0x2UL
519 #define _LEUART_IEN_TXBL_DEFAULT 0x00000000UL
520 #define LEUART_IEN_TXBL_DEFAULT (_LEUART_IEN_TXBL_DEFAULT << 1)
521 #define LEUART_IEN_RXDATAV (0x1UL << 2)
522 #define _LEUART_IEN_RXDATAV_SHIFT 2
523 #define _LEUART_IEN_RXDATAV_MASK 0x4UL
524 #define _LEUART_IEN_RXDATAV_DEFAULT 0x00000000UL
525 #define LEUART_IEN_RXDATAV_DEFAULT (_LEUART_IEN_RXDATAV_DEFAULT << 2)
526 #define LEUART_IEN_RXOF (0x1UL << 3)
527 #define _LEUART_IEN_RXOF_SHIFT 3
528 #define _LEUART_IEN_RXOF_MASK 0x8UL
529 #define _LEUART_IEN_RXOF_DEFAULT 0x00000000UL
530 #define LEUART_IEN_RXOF_DEFAULT (_LEUART_IEN_RXOF_DEFAULT << 3)
531 #define LEUART_IEN_RXUF (0x1UL << 4)
532 #define _LEUART_IEN_RXUF_SHIFT 4
533 #define _LEUART_IEN_RXUF_MASK 0x10UL
534 #define _LEUART_IEN_RXUF_DEFAULT 0x00000000UL
535 #define LEUART_IEN_RXUF_DEFAULT (_LEUART_IEN_RXUF_DEFAULT << 4)
536 #define LEUART_IEN_TXOF (0x1UL << 5)
537 #define _LEUART_IEN_TXOF_SHIFT 5
538 #define _LEUART_IEN_TXOF_MASK 0x20UL
539 #define _LEUART_IEN_TXOF_DEFAULT 0x00000000UL
540 #define LEUART_IEN_TXOF_DEFAULT (_LEUART_IEN_TXOF_DEFAULT << 5)
541 #define LEUART_IEN_PERR (0x1UL << 6)
542 #define _LEUART_IEN_PERR_SHIFT 6
543 #define _LEUART_IEN_PERR_MASK 0x40UL
544 #define _LEUART_IEN_PERR_DEFAULT 0x00000000UL
545 #define LEUART_IEN_PERR_DEFAULT (_LEUART_IEN_PERR_DEFAULT << 6)
546 #define LEUART_IEN_FERR (0x1UL << 7)
547 #define _LEUART_IEN_FERR_SHIFT 7
548 #define _LEUART_IEN_FERR_MASK 0x80UL
549 #define _LEUART_IEN_FERR_DEFAULT 0x00000000UL
550 #define LEUART_IEN_FERR_DEFAULT (_LEUART_IEN_FERR_DEFAULT << 7)
551 #define LEUART_IEN_MPAF (0x1UL << 8)
552 #define _LEUART_IEN_MPAF_SHIFT 8
553 #define _LEUART_IEN_MPAF_MASK 0x100UL
554 #define _LEUART_IEN_MPAF_DEFAULT 0x00000000UL
555 #define LEUART_IEN_MPAF_DEFAULT (_LEUART_IEN_MPAF_DEFAULT << 8)
556 #define LEUART_IEN_STARTF (0x1UL << 9)
557 #define _LEUART_IEN_STARTF_SHIFT 9
558 #define _LEUART_IEN_STARTF_MASK 0x200UL
559 #define _LEUART_IEN_STARTF_DEFAULT 0x00000000UL
560 #define LEUART_IEN_STARTF_DEFAULT (_LEUART_IEN_STARTF_DEFAULT << 9)
561 #define LEUART_IEN_SIGF (0x1UL << 10)
562 #define _LEUART_IEN_SIGF_SHIFT 10
563 #define _LEUART_IEN_SIGF_MASK 0x400UL
564 #define _LEUART_IEN_SIGF_DEFAULT 0x00000000UL
565 #define LEUART_IEN_SIGF_DEFAULT (_LEUART_IEN_SIGF_DEFAULT << 10)
567 /* Bit fields for LEUART PULSECTRL */
568 #define _LEUART_PULSECTRL_RESETVALUE 0x00000000UL
569 #define _LEUART_PULSECTRL_MASK 0x0000003FUL
570 #define _LEUART_PULSECTRL_PULSEW_SHIFT 0
571 #define _LEUART_PULSECTRL_PULSEW_MASK 0xFUL
572 #define _LEUART_PULSECTRL_PULSEW_DEFAULT 0x00000000UL
573 #define LEUART_PULSECTRL_PULSEW_DEFAULT (_LEUART_PULSECTRL_PULSEW_DEFAULT << 0)
574 #define LEUART_PULSECTRL_PULSEEN (0x1UL << 4)
575 #define _LEUART_PULSECTRL_PULSEEN_SHIFT 4
576 #define _LEUART_PULSECTRL_PULSEEN_MASK 0x10UL
577 #define _LEUART_PULSECTRL_PULSEEN_DEFAULT 0x00000000UL
578 #define LEUART_PULSECTRL_PULSEEN_DEFAULT (_LEUART_PULSECTRL_PULSEEN_DEFAULT << 4)
579 #define LEUART_PULSECTRL_PULSEFILT (0x1UL << 5)
580 #define _LEUART_PULSECTRL_PULSEFILT_SHIFT 5
581 #define _LEUART_PULSECTRL_PULSEFILT_MASK 0x20UL
582 #define _LEUART_PULSECTRL_PULSEFILT_DEFAULT 0x00000000UL
583 #define LEUART_PULSECTRL_PULSEFILT_DEFAULT (_LEUART_PULSECTRL_PULSEFILT_DEFAULT << 5)
585 /* Bit fields for LEUART FREEZE */
586 #define _LEUART_FREEZE_RESETVALUE 0x00000000UL
587 #define _LEUART_FREEZE_MASK 0x00000001UL
588 #define LEUART_FREEZE_REGFREEZE (0x1UL << 0)
589 #define _LEUART_FREEZE_REGFREEZE_SHIFT 0
590 #define _LEUART_FREEZE_REGFREEZE_MASK 0x1UL
591 #define _LEUART_FREEZE_REGFREEZE_DEFAULT 0x00000000UL
592 #define _LEUART_FREEZE_REGFREEZE_UPDATE 0x00000000UL
593 #define _LEUART_FREEZE_REGFREEZE_FREEZE 0x00000001UL
594 #define LEUART_FREEZE_REGFREEZE_DEFAULT (_LEUART_FREEZE_REGFREEZE_DEFAULT << 0)
595 #define LEUART_FREEZE_REGFREEZE_UPDATE (_LEUART_FREEZE_REGFREEZE_UPDATE << 0)
596 #define LEUART_FREEZE_REGFREEZE_FREEZE (_LEUART_FREEZE_REGFREEZE_FREEZE << 0)
598 /* Bit fields for LEUART SYNCBUSY */
599 #define _LEUART_SYNCBUSY_RESETVALUE 0x00000000UL
600 #define _LEUART_SYNCBUSY_MASK 0x000000FFUL
601 #define LEUART_SYNCBUSY_CTRL (0x1UL << 0)
602 #define _LEUART_SYNCBUSY_CTRL_SHIFT 0
603 #define _LEUART_SYNCBUSY_CTRL_MASK 0x1UL
604 #define _LEUART_SYNCBUSY_CTRL_DEFAULT 0x00000000UL
605 #define LEUART_SYNCBUSY_CTRL_DEFAULT (_LEUART_SYNCBUSY_CTRL_DEFAULT << 0)
606 #define LEUART_SYNCBUSY_CMD (0x1UL << 1)
607 #define _LEUART_SYNCBUSY_CMD_SHIFT 1
608 #define _LEUART_SYNCBUSY_CMD_MASK 0x2UL
609 #define _LEUART_SYNCBUSY_CMD_DEFAULT 0x00000000UL
610 #define LEUART_SYNCBUSY_CMD_DEFAULT (_LEUART_SYNCBUSY_CMD_DEFAULT << 1)
611 #define LEUART_SYNCBUSY_CLKDIV (0x1UL << 2)
612 #define _LEUART_SYNCBUSY_CLKDIV_SHIFT 2
613 #define _LEUART_SYNCBUSY_CLKDIV_MASK 0x4UL
614 #define _LEUART_SYNCBUSY_CLKDIV_DEFAULT 0x00000000UL
615 #define LEUART_SYNCBUSY_CLKDIV_DEFAULT (_LEUART_SYNCBUSY_CLKDIV_DEFAULT << 2)
616 #define LEUART_SYNCBUSY_STARTFRAME (0x1UL << 3)
617 #define _LEUART_SYNCBUSY_STARTFRAME_SHIFT 3
618 #define _LEUART_SYNCBUSY_STARTFRAME_MASK 0x8UL
619 #define _LEUART_SYNCBUSY_STARTFRAME_DEFAULT 0x00000000UL
620 #define LEUART_SYNCBUSY_STARTFRAME_DEFAULT (_LEUART_SYNCBUSY_STARTFRAME_DEFAULT << 3)
621 #define LEUART_SYNCBUSY_SIGFRAME (0x1UL << 4)
622 #define _LEUART_SYNCBUSY_SIGFRAME_SHIFT 4
623 #define _LEUART_SYNCBUSY_SIGFRAME_MASK 0x10UL
624 #define _LEUART_SYNCBUSY_SIGFRAME_DEFAULT 0x00000000UL
625 #define LEUART_SYNCBUSY_SIGFRAME_DEFAULT (_LEUART_SYNCBUSY_SIGFRAME_DEFAULT << 4)
626 #define LEUART_SYNCBUSY_TXDATAX (0x1UL << 5)
627 #define _LEUART_SYNCBUSY_TXDATAX_SHIFT 5
628 #define _LEUART_SYNCBUSY_TXDATAX_MASK 0x20UL
629 #define _LEUART_SYNCBUSY_TXDATAX_DEFAULT 0x00000000UL
630 #define LEUART_SYNCBUSY_TXDATAX_DEFAULT (_LEUART_SYNCBUSY_TXDATAX_DEFAULT << 5)
631 #define LEUART_SYNCBUSY_TXDATA (0x1UL << 6)
632 #define _LEUART_SYNCBUSY_TXDATA_SHIFT 6
633 #define _LEUART_SYNCBUSY_TXDATA_MASK 0x40UL
634 #define _LEUART_SYNCBUSY_TXDATA_DEFAULT 0x00000000UL
635 #define LEUART_SYNCBUSY_TXDATA_DEFAULT (_LEUART_SYNCBUSY_TXDATA_DEFAULT << 6)
636 #define LEUART_SYNCBUSY_PULSECTRL (0x1UL << 7)
637 #define _LEUART_SYNCBUSY_PULSECTRL_SHIFT 7
638 #define _LEUART_SYNCBUSY_PULSECTRL_MASK 0x80UL
639 #define _LEUART_SYNCBUSY_PULSECTRL_DEFAULT 0x00000000UL
640 #define LEUART_SYNCBUSY_PULSECTRL_DEFAULT (_LEUART_SYNCBUSY_PULSECTRL_DEFAULT << 7)
642 /* Bit fields for LEUART ROUTEPEN */
643 #define _LEUART_ROUTEPEN_RESETVALUE 0x00000000UL
644 #define _LEUART_ROUTEPEN_MASK 0x00000003UL
645 #define LEUART_ROUTEPEN_RXPEN (0x1UL << 0)
646 #define _LEUART_ROUTEPEN_RXPEN_SHIFT 0
647 #define _LEUART_ROUTEPEN_RXPEN_MASK 0x1UL
648 #define _LEUART_ROUTEPEN_RXPEN_DEFAULT 0x00000000UL
649 #define LEUART_ROUTEPEN_RXPEN_DEFAULT (_LEUART_ROUTEPEN_RXPEN_DEFAULT << 0)
650 #define LEUART_ROUTEPEN_TXPEN (0x1UL << 1)
651 #define _LEUART_ROUTEPEN_TXPEN_SHIFT 1
652 #define _LEUART_ROUTEPEN_TXPEN_MASK 0x2UL
653 #define _LEUART_ROUTEPEN_TXPEN_DEFAULT 0x00000000UL
654 #define LEUART_ROUTEPEN_TXPEN_DEFAULT (_LEUART_ROUTEPEN_TXPEN_DEFAULT << 1)
656 /* Bit fields for LEUART ROUTELOC0 */
657 #define _LEUART_ROUTELOC0_RESETVALUE 0x00000000UL
658 #define _LEUART_ROUTELOC0_MASK 0x00001F1FUL
659 #define _LEUART_ROUTELOC0_RXLOC_SHIFT 0
660 #define _LEUART_ROUTELOC0_RXLOC_MASK 0x1FUL
661 #define _LEUART_ROUTELOC0_RXLOC_LOC0 0x00000000UL
662 #define _LEUART_ROUTELOC0_RXLOC_DEFAULT 0x00000000UL
663 #define _LEUART_ROUTELOC0_RXLOC_LOC1 0x00000001UL
664 #define _LEUART_ROUTELOC0_RXLOC_LOC2 0x00000002UL
665 #define _LEUART_ROUTELOC0_RXLOC_LOC3 0x00000003UL
666 #define _LEUART_ROUTELOC0_RXLOC_LOC4 0x00000004UL
667 #define _LEUART_ROUTELOC0_RXLOC_LOC5 0x00000005UL
668 #define _LEUART_ROUTELOC0_RXLOC_LOC6 0x00000006UL
669 #define _LEUART_ROUTELOC0_RXLOC_LOC7 0x00000007UL
670 #define _LEUART_ROUTELOC0_RXLOC_LOC8 0x00000008UL
671 #define _LEUART_ROUTELOC0_RXLOC_LOC9 0x00000009UL
672 #define _LEUART_ROUTELOC0_RXLOC_LOC10 0x0000000AUL
673 #define _LEUART_ROUTELOC0_RXLOC_LOC11 0x0000000BUL
674 #define _LEUART_ROUTELOC0_RXLOC_LOC12 0x0000000CUL
675 #define _LEUART_ROUTELOC0_RXLOC_LOC13 0x0000000DUL
676 #define _LEUART_ROUTELOC0_RXLOC_LOC14 0x0000000EUL
677 #define _LEUART_ROUTELOC0_RXLOC_LOC15 0x0000000FUL
678 #define _LEUART_ROUTELOC0_RXLOC_LOC16 0x00000010UL
679 #define _LEUART_ROUTELOC0_RXLOC_LOC17 0x00000011UL
680 #define _LEUART_ROUTELOC0_RXLOC_LOC18 0x00000012UL
681 #define _LEUART_ROUTELOC0_RXLOC_LOC19 0x00000013UL
682 #define _LEUART_ROUTELOC0_RXLOC_LOC20 0x00000014UL
683 #define _LEUART_ROUTELOC0_RXLOC_LOC21 0x00000015UL
684 #define _LEUART_ROUTELOC0_RXLOC_LOC22 0x00000016UL
685 #define _LEUART_ROUTELOC0_RXLOC_LOC23 0x00000017UL
686 #define _LEUART_ROUTELOC0_RXLOC_LOC24 0x00000018UL
687 #define _LEUART_ROUTELOC0_RXLOC_LOC25 0x00000019UL
688 #define _LEUART_ROUTELOC0_RXLOC_LOC26 0x0000001AUL
689 #define _LEUART_ROUTELOC0_RXLOC_LOC27 0x0000001BUL
690 #define _LEUART_ROUTELOC0_RXLOC_LOC28 0x0000001CUL
691 #define _LEUART_ROUTELOC0_RXLOC_LOC29 0x0000001DUL
692 #define _LEUART_ROUTELOC0_RXLOC_LOC30 0x0000001EUL
693 #define _LEUART_ROUTELOC0_RXLOC_LOC31 0x0000001FUL
694 #define LEUART_ROUTELOC0_RXLOC_LOC0 (_LEUART_ROUTELOC0_RXLOC_LOC0 << 0)
695 #define LEUART_ROUTELOC0_RXLOC_DEFAULT (_LEUART_ROUTELOC0_RXLOC_DEFAULT << 0)
696 #define LEUART_ROUTELOC0_RXLOC_LOC1 (_LEUART_ROUTELOC0_RXLOC_LOC1 << 0)
697 #define LEUART_ROUTELOC0_RXLOC_LOC2 (_LEUART_ROUTELOC0_RXLOC_LOC2 << 0)
698 #define LEUART_ROUTELOC0_RXLOC_LOC3 (_LEUART_ROUTELOC0_RXLOC_LOC3 << 0)
699 #define LEUART_ROUTELOC0_RXLOC_LOC4 (_LEUART_ROUTELOC0_RXLOC_LOC4 << 0)
700 #define LEUART_ROUTELOC0_RXLOC_LOC5 (_LEUART_ROUTELOC0_RXLOC_LOC5 << 0)
701 #define LEUART_ROUTELOC0_RXLOC_LOC6 (_LEUART_ROUTELOC0_RXLOC_LOC6 << 0)
702 #define LEUART_ROUTELOC0_RXLOC_LOC7 (_LEUART_ROUTELOC0_RXLOC_LOC7 << 0)
703 #define LEUART_ROUTELOC0_RXLOC_LOC8 (_LEUART_ROUTELOC0_RXLOC_LOC8 << 0)
704 #define LEUART_ROUTELOC0_RXLOC_LOC9 (_LEUART_ROUTELOC0_RXLOC_LOC9 << 0)
705 #define LEUART_ROUTELOC0_RXLOC_LOC10 (_LEUART_ROUTELOC0_RXLOC_LOC10 << 0)
706 #define LEUART_ROUTELOC0_RXLOC_LOC11 (_LEUART_ROUTELOC0_RXLOC_LOC11 << 0)
707 #define LEUART_ROUTELOC0_RXLOC_LOC12 (_LEUART_ROUTELOC0_RXLOC_LOC12 << 0)
708 #define LEUART_ROUTELOC0_RXLOC_LOC13 (_LEUART_ROUTELOC0_RXLOC_LOC13 << 0)
709 #define LEUART_ROUTELOC0_RXLOC_LOC14 (_LEUART_ROUTELOC0_RXLOC_LOC14 << 0)
710 #define LEUART_ROUTELOC0_RXLOC_LOC15 (_LEUART_ROUTELOC0_RXLOC_LOC15 << 0)
711 #define LEUART_ROUTELOC0_RXLOC_LOC16 (_LEUART_ROUTELOC0_RXLOC_LOC16 << 0)
712 #define LEUART_ROUTELOC0_RXLOC_LOC17 (_LEUART_ROUTELOC0_RXLOC_LOC17 << 0)
713 #define LEUART_ROUTELOC0_RXLOC_LOC18 (_LEUART_ROUTELOC0_RXLOC_LOC18 << 0)
714 #define LEUART_ROUTELOC0_RXLOC_LOC19 (_LEUART_ROUTELOC0_RXLOC_LOC19 << 0)
715 #define LEUART_ROUTELOC0_RXLOC_LOC20 (_LEUART_ROUTELOC0_RXLOC_LOC20 << 0)
716 #define LEUART_ROUTELOC0_RXLOC_LOC21 (_LEUART_ROUTELOC0_RXLOC_LOC21 << 0)
717 #define LEUART_ROUTELOC0_RXLOC_LOC22 (_LEUART_ROUTELOC0_RXLOC_LOC22 << 0)
718 #define LEUART_ROUTELOC0_RXLOC_LOC23 (_LEUART_ROUTELOC0_RXLOC_LOC23 << 0)
719 #define LEUART_ROUTELOC0_RXLOC_LOC24 (_LEUART_ROUTELOC0_RXLOC_LOC24 << 0)
720 #define LEUART_ROUTELOC0_RXLOC_LOC25 (_LEUART_ROUTELOC0_RXLOC_LOC25 << 0)
721 #define LEUART_ROUTELOC0_RXLOC_LOC26 (_LEUART_ROUTELOC0_RXLOC_LOC26 << 0)
722 #define LEUART_ROUTELOC0_RXLOC_LOC27 (_LEUART_ROUTELOC0_RXLOC_LOC27 << 0)
723 #define LEUART_ROUTELOC0_RXLOC_LOC28 (_LEUART_ROUTELOC0_RXLOC_LOC28 << 0)
724 #define LEUART_ROUTELOC0_RXLOC_LOC29 (_LEUART_ROUTELOC0_RXLOC_LOC29 << 0)
725 #define LEUART_ROUTELOC0_RXLOC_LOC30 (_LEUART_ROUTELOC0_RXLOC_LOC30 << 0)
726 #define LEUART_ROUTELOC0_RXLOC_LOC31 (_LEUART_ROUTELOC0_RXLOC_LOC31 << 0)
727 #define _LEUART_ROUTELOC0_TXLOC_SHIFT 8
728 #define _LEUART_ROUTELOC0_TXLOC_MASK 0x1F00UL
729 #define _LEUART_ROUTELOC0_TXLOC_LOC0 0x00000000UL
730 #define _LEUART_ROUTELOC0_TXLOC_DEFAULT 0x00000000UL
731 #define _LEUART_ROUTELOC0_TXLOC_LOC1 0x00000001UL
732 #define _LEUART_ROUTELOC0_TXLOC_LOC2 0x00000002UL
733 #define _LEUART_ROUTELOC0_TXLOC_LOC3 0x00000003UL
734 #define _LEUART_ROUTELOC0_TXLOC_LOC4 0x00000004UL
735 #define _LEUART_ROUTELOC0_TXLOC_LOC5 0x00000005UL
736 #define _LEUART_ROUTELOC0_TXLOC_LOC6 0x00000006UL
737 #define _LEUART_ROUTELOC0_TXLOC_LOC7 0x00000007UL
738 #define _LEUART_ROUTELOC0_TXLOC_LOC8 0x00000008UL
739 #define _LEUART_ROUTELOC0_TXLOC_LOC9 0x00000009UL
740 #define _LEUART_ROUTELOC0_TXLOC_LOC10 0x0000000AUL
741 #define _LEUART_ROUTELOC0_TXLOC_LOC11 0x0000000BUL
742 #define _LEUART_ROUTELOC0_TXLOC_LOC12 0x0000000CUL
743 #define _LEUART_ROUTELOC0_TXLOC_LOC13 0x0000000DUL
744 #define _LEUART_ROUTELOC0_TXLOC_LOC14 0x0000000EUL
745 #define _LEUART_ROUTELOC0_TXLOC_LOC15 0x0000000FUL
746 #define _LEUART_ROUTELOC0_TXLOC_LOC16 0x00000010UL
747 #define _LEUART_ROUTELOC0_TXLOC_LOC17 0x00000011UL
748 #define _LEUART_ROUTELOC0_TXLOC_LOC18 0x00000012UL
749 #define _LEUART_ROUTELOC0_TXLOC_LOC19 0x00000013UL
750 #define _LEUART_ROUTELOC0_TXLOC_LOC20 0x00000014UL
751 #define _LEUART_ROUTELOC0_TXLOC_LOC21 0x00000015UL
752 #define _LEUART_ROUTELOC0_TXLOC_LOC22 0x00000016UL
753 #define _LEUART_ROUTELOC0_TXLOC_LOC23 0x00000017UL
754 #define _LEUART_ROUTELOC0_TXLOC_LOC24 0x00000018UL
755 #define _LEUART_ROUTELOC0_TXLOC_LOC25 0x00000019UL
756 #define _LEUART_ROUTELOC0_TXLOC_LOC26 0x0000001AUL
757 #define _LEUART_ROUTELOC0_TXLOC_LOC27 0x0000001BUL
758 #define _LEUART_ROUTELOC0_TXLOC_LOC28 0x0000001CUL
759 #define _LEUART_ROUTELOC0_TXLOC_LOC29 0x0000001DUL
760 #define _LEUART_ROUTELOC0_TXLOC_LOC30 0x0000001EUL
761 #define _LEUART_ROUTELOC0_TXLOC_LOC31 0x0000001FUL
762 #define LEUART_ROUTELOC0_TXLOC_LOC0 (_LEUART_ROUTELOC0_TXLOC_LOC0 << 8)
763 #define LEUART_ROUTELOC0_TXLOC_DEFAULT (_LEUART_ROUTELOC0_TXLOC_DEFAULT << 8)
764 #define LEUART_ROUTELOC0_TXLOC_LOC1 (_LEUART_ROUTELOC0_TXLOC_LOC1 << 8)
765 #define LEUART_ROUTELOC0_TXLOC_LOC2 (_LEUART_ROUTELOC0_TXLOC_LOC2 << 8)
766 #define LEUART_ROUTELOC0_TXLOC_LOC3 (_LEUART_ROUTELOC0_TXLOC_LOC3 << 8)
767 #define LEUART_ROUTELOC0_TXLOC_LOC4 (_LEUART_ROUTELOC0_TXLOC_LOC4 << 8)
768 #define LEUART_ROUTELOC0_TXLOC_LOC5 (_LEUART_ROUTELOC0_TXLOC_LOC5 << 8)
769 #define LEUART_ROUTELOC0_TXLOC_LOC6 (_LEUART_ROUTELOC0_TXLOC_LOC6 << 8)
770 #define LEUART_ROUTELOC0_TXLOC_LOC7 (_LEUART_ROUTELOC0_TXLOC_LOC7 << 8)
771 #define LEUART_ROUTELOC0_TXLOC_LOC8 (_LEUART_ROUTELOC0_TXLOC_LOC8 << 8)
772 #define LEUART_ROUTELOC0_TXLOC_LOC9 (_LEUART_ROUTELOC0_TXLOC_LOC9 << 8)
773 #define LEUART_ROUTELOC0_TXLOC_LOC10 (_LEUART_ROUTELOC0_TXLOC_LOC10 << 8)
774 #define LEUART_ROUTELOC0_TXLOC_LOC11 (_LEUART_ROUTELOC0_TXLOC_LOC11 << 8)
775 #define LEUART_ROUTELOC0_TXLOC_LOC12 (_LEUART_ROUTELOC0_TXLOC_LOC12 << 8)
776 #define LEUART_ROUTELOC0_TXLOC_LOC13 (_LEUART_ROUTELOC0_TXLOC_LOC13 << 8)
777 #define LEUART_ROUTELOC0_TXLOC_LOC14 (_LEUART_ROUTELOC0_TXLOC_LOC14 << 8)
778 #define LEUART_ROUTELOC0_TXLOC_LOC15 (_LEUART_ROUTELOC0_TXLOC_LOC15 << 8)
779 #define LEUART_ROUTELOC0_TXLOC_LOC16 (_LEUART_ROUTELOC0_TXLOC_LOC16 << 8)
780 #define LEUART_ROUTELOC0_TXLOC_LOC17 (_LEUART_ROUTELOC0_TXLOC_LOC17 << 8)
781 #define LEUART_ROUTELOC0_TXLOC_LOC18 (_LEUART_ROUTELOC0_TXLOC_LOC18 << 8)
782 #define LEUART_ROUTELOC0_TXLOC_LOC19 (_LEUART_ROUTELOC0_TXLOC_LOC19 << 8)
783 #define LEUART_ROUTELOC0_TXLOC_LOC20 (_LEUART_ROUTELOC0_TXLOC_LOC20 << 8)
784 #define LEUART_ROUTELOC0_TXLOC_LOC21 (_LEUART_ROUTELOC0_TXLOC_LOC21 << 8)
785 #define LEUART_ROUTELOC0_TXLOC_LOC22 (_LEUART_ROUTELOC0_TXLOC_LOC22 << 8)
786 #define LEUART_ROUTELOC0_TXLOC_LOC23 (_LEUART_ROUTELOC0_TXLOC_LOC23 << 8)
787 #define LEUART_ROUTELOC0_TXLOC_LOC24 (_LEUART_ROUTELOC0_TXLOC_LOC24 << 8)
788 #define LEUART_ROUTELOC0_TXLOC_LOC25 (_LEUART_ROUTELOC0_TXLOC_LOC25 << 8)
789 #define LEUART_ROUTELOC0_TXLOC_LOC26 (_LEUART_ROUTELOC0_TXLOC_LOC26 << 8)
790 #define LEUART_ROUTELOC0_TXLOC_LOC27 (_LEUART_ROUTELOC0_TXLOC_LOC27 << 8)
791 #define LEUART_ROUTELOC0_TXLOC_LOC28 (_LEUART_ROUTELOC0_TXLOC_LOC28 << 8)
792 #define LEUART_ROUTELOC0_TXLOC_LOC29 (_LEUART_ROUTELOC0_TXLOC_LOC29 << 8)
793 #define LEUART_ROUTELOC0_TXLOC_LOC30 (_LEUART_ROUTELOC0_TXLOC_LOC30 << 8)
794 #define LEUART_ROUTELOC0_TXLOC_LOC31 (_LEUART_ROUTELOC0_TXLOC_LOC31 << 8)
796 /* Bit fields for LEUART INPUT */
797 #define _LEUART_INPUT_RESETVALUE 0x00000000UL
798 #define _LEUART_INPUT_MASK 0x0000002FUL
799 #define _LEUART_INPUT_RXPRSSEL_SHIFT 0
800 #define _LEUART_INPUT_RXPRSSEL_MASK 0xFUL
801 #define _LEUART_INPUT_RXPRSSEL_DEFAULT 0x00000000UL
802 #define _LEUART_INPUT_RXPRSSEL_PRSCH0 0x00000000UL
803 #define _LEUART_INPUT_RXPRSSEL_PRSCH1 0x00000001UL
804 #define _LEUART_INPUT_RXPRSSEL_PRSCH2 0x00000002UL
805 #define _LEUART_INPUT_RXPRSSEL_PRSCH3 0x00000003UL
806 #define _LEUART_INPUT_RXPRSSEL_PRSCH4 0x00000004UL
807 #define _LEUART_INPUT_RXPRSSEL_PRSCH5 0x00000005UL
808 #define _LEUART_INPUT_RXPRSSEL_PRSCH6 0x00000006UL
809 #define _LEUART_INPUT_RXPRSSEL_PRSCH7 0x00000007UL
810 #define _LEUART_INPUT_RXPRSSEL_PRSCH8 0x00000008UL
811 #define _LEUART_INPUT_RXPRSSEL_PRSCH9 0x00000009UL
812 #define _LEUART_INPUT_RXPRSSEL_PRSCH10 0x0000000AUL
813 #define _LEUART_INPUT_RXPRSSEL_PRSCH11 0x0000000BUL
814 #define LEUART_INPUT_RXPRSSEL_DEFAULT (_LEUART_INPUT_RXPRSSEL_DEFAULT << 0)
815 #define LEUART_INPUT_RXPRSSEL_PRSCH0 (_LEUART_INPUT_RXPRSSEL_PRSCH0 << 0)
816 #define LEUART_INPUT_RXPRSSEL_PRSCH1 (_LEUART_INPUT_RXPRSSEL_PRSCH1 << 0)
817 #define LEUART_INPUT_RXPRSSEL_PRSCH2 (_LEUART_INPUT_RXPRSSEL_PRSCH2 << 0)
818 #define LEUART_INPUT_RXPRSSEL_PRSCH3 (_LEUART_INPUT_RXPRSSEL_PRSCH3 << 0)
819 #define LEUART_INPUT_RXPRSSEL_PRSCH4 (_LEUART_INPUT_RXPRSSEL_PRSCH4 << 0)
820 #define LEUART_INPUT_RXPRSSEL_PRSCH5 (_LEUART_INPUT_RXPRSSEL_PRSCH5 << 0)
821 #define LEUART_INPUT_RXPRSSEL_PRSCH6 (_LEUART_INPUT_RXPRSSEL_PRSCH6 << 0)
822 #define LEUART_INPUT_RXPRSSEL_PRSCH7 (_LEUART_INPUT_RXPRSSEL_PRSCH7 << 0)
823 #define LEUART_INPUT_RXPRSSEL_PRSCH8 (_LEUART_INPUT_RXPRSSEL_PRSCH8 << 0)
824 #define LEUART_INPUT_RXPRSSEL_PRSCH9 (_LEUART_INPUT_RXPRSSEL_PRSCH9 << 0)
825 #define LEUART_INPUT_RXPRSSEL_PRSCH10 (_LEUART_INPUT_RXPRSSEL_PRSCH10 << 0)
826 #define LEUART_INPUT_RXPRSSEL_PRSCH11 (_LEUART_INPUT_RXPRSSEL_PRSCH11 << 0)
827 #define LEUART_INPUT_RXPRS (0x1UL << 5)
828 #define _LEUART_INPUT_RXPRS_SHIFT 5
829 #define _LEUART_INPUT_RXPRS_MASK 0x20UL
830 #define _LEUART_INPUT_RXPRS_DEFAULT 0x00000000UL
831 #define LEUART_INPUT_RXPRS_DEFAULT (_LEUART_INPUT_RXPRS_DEFAULT << 5)
__IOM uint32_t CTRL
__IOM uint32_t PULSECTRL
__IM uint32_t SYNCBUSY
__IOM uint32_t IFS
__IOM uint32_t TXDATAX
__IOM uint32_t IEN
__IOM uint32_t ROUTEPEN
__IOM uint32_t TXDATA
__IOM uint32_t CLKDIV
__IOM uint32_t FREEZE
__IOM uint32_t STARTFRAME
__IM uint32_t RXDATAX
__IM uint32_t RXDATA
__IOM uint32_t ROUTELOC0
__IM uint32_t IF
__IM uint32_t STATUS
__IM uint32_t RXDATAXP
__IOM uint32_t SIGFRAME
__IOM uint32_t CMD
__IOM uint32_t IFC
__IOM uint32_t INPUT