EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
efm32g_usart.h
Go to the documentation of this file.
1 /**************************************************************************/
32 /**************************************************************************/
36 /**************************************************************************/
41 typedef struct
42 {
43  __IOM uint32_t CTRL;
44  __IOM uint32_t FRAME;
45  __IOM uint32_t TRIGCTRL;
46  __IOM uint32_t CMD;
47  __IM uint32_t STATUS;
48  __IOM uint32_t CLKDIV;
49  __IM uint32_t RXDATAX;
50  __IM uint32_t RXDATA;
51  __IM uint32_t RXDOUBLEX;
52  __IM uint32_t RXDOUBLE;
53  __IM uint32_t RXDATAXP;
54  __IM uint32_t RXDOUBLEXP;
55  __IOM uint32_t TXDATAX;
56  __IOM uint32_t TXDATA;
57  __IOM uint32_t TXDOUBLEX;
58  __IOM uint32_t TXDOUBLE;
59  __IM uint32_t IF;
60  __IOM uint32_t IFS;
61  __IOM uint32_t IFC;
62  __IOM uint32_t IEN;
63  __IOM uint32_t IRCTRL;
64  __IOM uint32_t ROUTE;
65 } USART_TypeDef;
67 /**************************************************************************/
72 /* Bit fields for USART CTRL */
73 #define _USART_CTRL_RESETVALUE 0x00000000UL
74 #define _USART_CTRL_MASK 0x1DFFFF7FUL
75 #define USART_CTRL_SYNC (0x1UL << 0)
76 #define _USART_CTRL_SYNC_SHIFT 0
77 #define _USART_CTRL_SYNC_MASK 0x1UL
78 #define _USART_CTRL_SYNC_DEFAULT 0x00000000UL
79 #define USART_CTRL_SYNC_DEFAULT (_USART_CTRL_SYNC_DEFAULT << 0)
80 #define USART_CTRL_LOOPBK (0x1UL << 1)
81 #define _USART_CTRL_LOOPBK_SHIFT 1
82 #define _USART_CTRL_LOOPBK_MASK 0x2UL
83 #define _USART_CTRL_LOOPBK_DEFAULT 0x00000000UL
84 #define USART_CTRL_LOOPBK_DEFAULT (_USART_CTRL_LOOPBK_DEFAULT << 1)
85 #define USART_CTRL_CCEN (0x1UL << 2)
86 #define _USART_CTRL_CCEN_SHIFT 2
87 #define _USART_CTRL_CCEN_MASK 0x4UL
88 #define _USART_CTRL_CCEN_DEFAULT 0x00000000UL
89 #define USART_CTRL_CCEN_DEFAULT (_USART_CTRL_CCEN_DEFAULT << 2)
90 #define USART_CTRL_MPM (0x1UL << 3)
91 #define _USART_CTRL_MPM_SHIFT 3
92 #define _USART_CTRL_MPM_MASK 0x8UL
93 #define _USART_CTRL_MPM_DEFAULT 0x00000000UL
94 #define USART_CTRL_MPM_DEFAULT (_USART_CTRL_MPM_DEFAULT << 3)
95 #define USART_CTRL_MPAB (0x1UL << 4)
96 #define _USART_CTRL_MPAB_SHIFT 4
97 #define _USART_CTRL_MPAB_MASK 0x10UL
98 #define _USART_CTRL_MPAB_DEFAULT 0x00000000UL
99 #define USART_CTRL_MPAB_DEFAULT (_USART_CTRL_MPAB_DEFAULT << 4)
100 #define _USART_CTRL_OVS_SHIFT 5
101 #define _USART_CTRL_OVS_MASK 0x60UL
102 #define _USART_CTRL_OVS_DEFAULT 0x00000000UL
103 #define _USART_CTRL_OVS_X16 0x00000000UL
104 #define _USART_CTRL_OVS_X8 0x00000001UL
105 #define _USART_CTRL_OVS_X6 0x00000002UL
106 #define _USART_CTRL_OVS_X4 0x00000003UL
107 #define USART_CTRL_OVS_DEFAULT (_USART_CTRL_OVS_DEFAULT << 5)
108 #define USART_CTRL_OVS_X16 (_USART_CTRL_OVS_X16 << 5)
109 #define USART_CTRL_OVS_X8 (_USART_CTRL_OVS_X8 << 5)
110 #define USART_CTRL_OVS_X6 (_USART_CTRL_OVS_X6 << 5)
111 #define USART_CTRL_OVS_X4 (_USART_CTRL_OVS_X4 << 5)
112 #define USART_CTRL_CLKPOL (0x1UL << 8)
113 #define _USART_CTRL_CLKPOL_SHIFT 8
114 #define _USART_CTRL_CLKPOL_MASK 0x100UL
115 #define _USART_CTRL_CLKPOL_DEFAULT 0x00000000UL
116 #define _USART_CTRL_CLKPOL_IDLELOW 0x00000000UL
117 #define _USART_CTRL_CLKPOL_IDLEHIGH 0x00000001UL
118 #define USART_CTRL_CLKPOL_DEFAULT (_USART_CTRL_CLKPOL_DEFAULT << 8)
119 #define USART_CTRL_CLKPOL_IDLELOW (_USART_CTRL_CLKPOL_IDLELOW << 8)
120 #define USART_CTRL_CLKPOL_IDLEHIGH (_USART_CTRL_CLKPOL_IDLEHIGH << 8)
121 #define USART_CTRL_CLKPHA (0x1UL << 9)
122 #define _USART_CTRL_CLKPHA_SHIFT 9
123 #define _USART_CTRL_CLKPHA_MASK 0x200UL
124 #define _USART_CTRL_CLKPHA_DEFAULT 0x00000000UL
125 #define _USART_CTRL_CLKPHA_SAMPLELEADING 0x00000000UL
126 #define _USART_CTRL_CLKPHA_SAMPLETRAILING 0x00000001UL
127 #define USART_CTRL_CLKPHA_DEFAULT (_USART_CTRL_CLKPHA_DEFAULT << 9)
128 #define USART_CTRL_CLKPHA_SAMPLELEADING (_USART_CTRL_CLKPHA_SAMPLELEADING << 9)
129 #define USART_CTRL_CLKPHA_SAMPLETRAILING (_USART_CTRL_CLKPHA_SAMPLETRAILING << 9)
130 #define USART_CTRL_MSBF (0x1UL << 10)
131 #define _USART_CTRL_MSBF_SHIFT 10
132 #define _USART_CTRL_MSBF_MASK 0x400UL
133 #define _USART_CTRL_MSBF_DEFAULT 0x00000000UL
134 #define USART_CTRL_MSBF_DEFAULT (_USART_CTRL_MSBF_DEFAULT << 10)
135 #define USART_CTRL_CSMA (0x1UL << 11)
136 #define _USART_CTRL_CSMA_SHIFT 11
137 #define _USART_CTRL_CSMA_MASK 0x800UL
138 #define _USART_CTRL_CSMA_DEFAULT 0x00000000UL
139 #define _USART_CTRL_CSMA_NOACTION 0x00000000UL
140 #define _USART_CTRL_CSMA_GOTOSLAVEMODE 0x00000001UL
141 #define USART_CTRL_CSMA_DEFAULT (_USART_CTRL_CSMA_DEFAULT << 11)
142 #define USART_CTRL_CSMA_NOACTION (_USART_CTRL_CSMA_NOACTION << 11)
143 #define USART_CTRL_CSMA_GOTOSLAVEMODE (_USART_CTRL_CSMA_GOTOSLAVEMODE << 11)
144 #define USART_CTRL_TXBIL (0x1UL << 12)
145 #define _USART_CTRL_TXBIL_SHIFT 12
146 #define _USART_CTRL_TXBIL_MASK 0x1000UL
147 #define _USART_CTRL_TXBIL_DEFAULT 0x00000000UL
148 #define _USART_CTRL_TXBIL_EMPTY 0x00000000UL
149 #define _USART_CTRL_TXBIL_HALFFULL 0x00000001UL
150 #define USART_CTRL_TXBIL_DEFAULT (_USART_CTRL_TXBIL_DEFAULT << 12)
151 #define USART_CTRL_TXBIL_EMPTY (_USART_CTRL_TXBIL_EMPTY << 12)
152 #define USART_CTRL_TXBIL_HALFFULL (_USART_CTRL_TXBIL_HALFFULL << 12)
153 #define USART_CTRL_RXINV (0x1UL << 13)
154 #define _USART_CTRL_RXINV_SHIFT 13
155 #define _USART_CTRL_RXINV_MASK 0x2000UL
156 #define _USART_CTRL_RXINV_DEFAULT 0x00000000UL
157 #define USART_CTRL_RXINV_DEFAULT (_USART_CTRL_RXINV_DEFAULT << 13)
158 #define USART_CTRL_TXINV (0x1UL << 14)
159 #define _USART_CTRL_TXINV_SHIFT 14
160 #define _USART_CTRL_TXINV_MASK 0x4000UL
161 #define _USART_CTRL_TXINV_DEFAULT 0x00000000UL
162 #define USART_CTRL_TXINV_DEFAULT (_USART_CTRL_TXINV_DEFAULT << 14)
163 #define USART_CTRL_CSINV (0x1UL << 15)
164 #define _USART_CTRL_CSINV_SHIFT 15
165 #define _USART_CTRL_CSINV_MASK 0x8000UL
166 #define _USART_CTRL_CSINV_DEFAULT 0x00000000UL
167 #define USART_CTRL_CSINV_DEFAULT (_USART_CTRL_CSINV_DEFAULT << 15)
168 #define USART_CTRL_AUTOCS (0x1UL << 16)
169 #define _USART_CTRL_AUTOCS_SHIFT 16
170 #define _USART_CTRL_AUTOCS_MASK 0x10000UL
171 #define _USART_CTRL_AUTOCS_DEFAULT 0x00000000UL
172 #define USART_CTRL_AUTOCS_DEFAULT (_USART_CTRL_AUTOCS_DEFAULT << 16)
173 #define USART_CTRL_AUTOTRI (0x1UL << 17)
174 #define _USART_CTRL_AUTOTRI_SHIFT 17
175 #define _USART_CTRL_AUTOTRI_MASK 0x20000UL
176 #define _USART_CTRL_AUTOTRI_DEFAULT 0x00000000UL
177 #define USART_CTRL_AUTOTRI_DEFAULT (_USART_CTRL_AUTOTRI_DEFAULT << 17)
178 #define USART_CTRL_SCMODE (0x1UL << 18)
179 #define _USART_CTRL_SCMODE_SHIFT 18
180 #define _USART_CTRL_SCMODE_MASK 0x40000UL
181 #define _USART_CTRL_SCMODE_DEFAULT 0x00000000UL
182 #define USART_CTRL_SCMODE_DEFAULT (_USART_CTRL_SCMODE_DEFAULT << 18)
183 #define USART_CTRL_SCRETRANS (0x1UL << 19)
184 #define _USART_CTRL_SCRETRANS_SHIFT 19
185 #define _USART_CTRL_SCRETRANS_MASK 0x80000UL
186 #define _USART_CTRL_SCRETRANS_DEFAULT 0x00000000UL
187 #define USART_CTRL_SCRETRANS_DEFAULT (_USART_CTRL_SCRETRANS_DEFAULT << 19)
188 #define USART_CTRL_SKIPPERRF (0x1UL << 20)
189 #define _USART_CTRL_SKIPPERRF_SHIFT 20
190 #define _USART_CTRL_SKIPPERRF_MASK 0x100000UL
191 #define _USART_CTRL_SKIPPERRF_DEFAULT 0x00000000UL
192 #define USART_CTRL_SKIPPERRF_DEFAULT (_USART_CTRL_SKIPPERRF_DEFAULT << 20)
193 #define USART_CTRL_BIT8DV (0x1UL << 21)
194 #define _USART_CTRL_BIT8DV_SHIFT 21
195 #define _USART_CTRL_BIT8DV_MASK 0x200000UL
196 #define _USART_CTRL_BIT8DV_DEFAULT 0x00000000UL
197 #define USART_CTRL_BIT8DV_DEFAULT (_USART_CTRL_BIT8DV_DEFAULT << 21)
198 #define USART_CTRL_ERRSDMA (0x1UL << 22)
199 #define _USART_CTRL_ERRSDMA_SHIFT 22
200 #define _USART_CTRL_ERRSDMA_MASK 0x400000UL
201 #define _USART_CTRL_ERRSDMA_DEFAULT 0x00000000UL
202 #define USART_CTRL_ERRSDMA_DEFAULT (_USART_CTRL_ERRSDMA_DEFAULT << 22)
203 #define USART_CTRL_ERRSRX (0x1UL << 23)
204 #define _USART_CTRL_ERRSRX_SHIFT 23
205 #define _USART_CTRL_ERRSRX_MASK 0x800000UL
206 #define _USART_CTRL_ERRSRX_DEFAULT 0x00000000UL
207 #define USART_CTRL_ERRSRX_DEFAULT (_USART_CTRL_ERRSRX_DEFAULT << 23)
208 #define USART_CTRL_ERRSTX (0x1UL << 24)
209 #define _USART_CTRL_ERRSTX_SHIFT 24
210 #define _USART_CTRL_ERRSTX_MASK 0x1000000UL
211 #define _USART_CTRL_ERRSTX_DEFAULT 0x00000000UL
212 #define USART_CTRL_ERRSTX_DEFAULT (_USART_CTRL_ERRSTX_DEFAULT << 24)
213 #define _USART_CTRL_TXDELAY_SHIFT 26
214 #define _USART_CTRL_TXDELAY_MASK 0xC000000UL
215 #define _USART_CTRL_TXDELAY_DEFAULT 0x00000000UL
216 #define _USART_CTRL_TXDELAY_NONE 0x00000000UL
217 #define _USART_CTRL_TXDELAY_SINGLE 0x00000001UL
218 #define _USART_CTRL_TXDELAY_DOUBLE 0x00000002UL
219 #define _USART_CTRL_TXDELAY_TRIPLE 0x00000003UL
220 #define USART_CTRL_TXDELAY_DEFAULT (_USART_CTRL_TXDELAY_DEFAULT << 26)
221 #define USART_CTRL_TXDELAY_NONE (_USART_CTRL_TXDELAY_NONE << 26)
222 #define USART_CTRL_TXDELAY_SINGLE (_USART_CTRL_TXDELAY_SINGLE << 26)
223 #define USART_CTRL_TXDELAY_DOUBLE (_USART_CTRL_TXDELAY_DOUBLE << 26)
224 #define USART_CTRL_TXDELAY_TRIPLE (_USART_CTRL_TXDELAY_TRIPLE << 26)
225 #define USART_CTRL_BYTESWAP (0x1UL << 28)
226 #define _USART_CTRL_BYTESWAP_SHIFT 28
227 #define _USART_CTRL_BYTESWAP_MASK 0x10000000UL
228 #define _USART_CTRL_BYTESWAP_DEFAULT 0x00000000UL
229 #define USART_CTRL_BYTESWAP_DEFAULT (_USART_CTRL_BYTESWAP_DEFAULT << 28)
231 /* Bit fields for USART FRAME */
232 #define _USART_FRAME_RESETVALUE 0x00001005UL
233 #define _USART_FRAME_MASK 0x0000330FUL
234 #define _USART_FRAME_DATABITS_SHIFT 0
235 #define _USART_FRAME_DATABITS_MASK 0xFUL
236 #define _USART_FRAME_DATABITS_FOUR 0x00000001UL
237 #define _USART_FRAME_DATABITS_FIVE 0x00000002UL
238 #define _USART_FRAME_DATABITS_SIX 0x00000003UL
239 #define _USART_FRAME_DATABITS_SEVEN 0x00000004UL
240 #define _USART_FRAME_DATABITS_DEFAULT 0x00000005UL
241 #define _USART_FRAME_DATABITS_EIGHT 0x00000005UL
242 #define _USART_FRAME_DATABITS_NINE 0x00000006UL
243 #define _USART_FRAME_DATABITS_TEN 0x00000007UL
244 #define _USART_FRAME_DATABITS_ELEVEN 0x00000008UL
245 #define _USART_FRAME_DATABITS_TWELVE 0x00000009UL
246 #define _USART_FRAME_DATABITS_THIRTEEN 0x0000000AUL
247 #define _USART_FRAME_DATABITS_FOURTEEN 0x0000000BUL
248 #define _USART_FRAME_DATABITS_FIFTEEN 0x0000000CUL
249 #define _USART_FRAME_DATABITS_SIXTEEN 0x0000000DUL
250 #define USART_FRAME_DATABITS_FOUR (_USART_FRAME_DATABITS_FOUR << 0)
251 #define USART_FRAME_DATABITS_FIVE (_USART_FRAME_DATABITS_FIVE << 0)
252 #define USART_FRAME_DATABITS_SIX (_USART_FRAME_DATABITS_SIX << 0)
253 #define USART_FRAME_DATABITS_SEVEN (_USART_FRAME_DATABITS_SEVEN << 0)
254 #define USART_FRAME_DATABITS_DEFAULT (_USART_FRAME_DATABITS_DEFAULT << 0)
255 #define USART_FRAME_DATABITS_EIGHT (_USART_FRAME_DATABITS_EIGHT << 0)
256 #define USART_FRAME_DATABITS_NINE (_USART_FRAME_DATABITS_NINE << 0)
257 #define USART_FRAME_DATABITS_TEN (_USART_FRAME_DATABITS_TEN << 0)
258 #define USART_FRAME_DATABITS_ELEVEN (_USART_FRAME_DATABITS_ELEVEN << 0)
259 #define USART_FRAME_DATABITS_TWELVE (_USART_FRAME_DATABITS_TWELVE << 0)
260 #define USART_FRAME_DATABITS_THIRTEEN (_USART_FRAME_DATABITS_THIRTEEN << 0)
261 #define USART_FRAME_DATABITS_FOURTEEN (_USART_FRAME_DATABITS_FOURTEEN << 0)
262 #define USART_FRAME_DATABITS_FIFTEEN (_USART_FRAME_DATABITS_FIFTEEN << 0)
263 #define USART_FRAME_DATABITS_SIXTEEN (_USART_FRAME_DATABITS_SIXTEEN << 0)
264 #define _USART_FRAME_PARITY_SHIFT 8
265 #define _USART_FRAME_PARITY_MASK 0x300UL
266 #define _USART_FRAME_PARITY_DEFAULT 0x00000000UL
267 #define _USART_FRAME_PARITY_NONE 0x00000000UL
268 #define _USART_FRAME_PARITY_EVEN 0x00000002UL
269 #define _USART_FRAME_PARITY_ODD 0x00000003UL
270 #define USART_FRAME_PARITY_DEFAULT (_USART_FRAME_PARITY_DEFAULT << 8)
271 #define USART_FRAME_PARITY_NONE (_USART_FRAME_PARITY_NONE << 8)
272 #define USART_FRAME_PARITY_EVEN (_USART_FRAME_PARITY_EVEN << 8)
273 #define USART_FRAME_PARITY_ODD (_USART_FRAME_PARITY_ODD << 8)
274 #define _USART_FRAME_STOPBITS_SHIFT 12
275 #define _USART_FRAME_STOPBITS_MASK 0x3000UL
276 #define _USART_FRAME_STOPBITS_HALF 0x00000000UL
277 #define _USART_FRAME_STOPBITS_DEFAULT 0x00000001UL
278 #define _USART_FRAME_STOPBITS_ONE 0x00000001UL
279 #define _USART_FRAME_STOPBITS_ONEANDAHALF 0x00000002UL
280 #define _USART_FRAME_STOPBITS_TWO 0x00000003UL
281 #define USART_FRAME_STOPBITS_HALF (_USART_FRAME_STOPBITS_HALF << 12)
282 #define USART_FRAME_STOPBITS_DEFAULT (_USART_FRAME_STOPBITS_DEFAULT << 12)
283 #define USART_FRAME_STOPBITS_ONE (_USART_FRAME_STOPBITS_ONE << 12)
284 #define USART_FRAME_STOPBITS_ONEANDAHALF (_USART_FRAME_STOPBITS_ONEANDAHALF << 12)
285 #define USART_FRAME_STOPBITS_TWO (_USART_FRAME_STOPBITS_TWO << 12)
287 /* Bit fields for USART TRIGCTRL */
288 #define _USART_TRIGCTRL_RESETVALUE 0x00000000UL
289 #define _USART_TRIGCTRL_MASK 0x00000037UL
290 #define _USART_TRIGCTRL_TSEL_SHIFT 0
291 #define _USART_TRIGCTRL_TSEL_MASK 0x7UL
292 #define _USART_TRIGCTRL_TSEL_DEFAULT 0x00000000UL
293 #define _USART_TRIGCTRL_TSEL_PRSCH0 0x00000000UL
294 #define _USART_TRIGCTRL_TSEL_PRSCH1 0x00000001UL
295 #define _USART_TRIGCTRL_TSEL_PRSCH2 0x00000002UL
296 #define _USART_TRIGCTRL_TSEL_PRSCH3 0x00000003UL
297 #define _USART_TRIGCTRL_TSEL_PRSCH4 0x00000004UL
298 #define _USART_TRIGCTRL_TSEL_PRSCH5 0x00000005UL
299 #define _USART_TRIGCTRL_TSEL_PRSCH6 0x00000006UL
300 #define _USART_TRIGCTRL_TSEL_PRSCH7 0x00000007UL
301 #define USART_TRIGCTRL_TSEL_DEFAULT (_USART_TRIGCTRL_TSEL_DEFAULT << 0)
302 #define USART_TRIGCTRL_TSEL_PRSCH0 (_USART_TRIGCTRL_TSEL_PRSCH0 << 0)
303 #define USART_TRIGCTRL_TSEL_PRSCH1 (_USART_TRIGCTRL_TSEL_PRSCH1 << 0)
304 #define USART_TRIGCTRL_TSEL_PRSCH2 (_USART_TRIGCTRL_TSEL_PRSCH2 << 0)
305 #define USART_TRIGCTRL_TSEL_PRSCH3 (_USART_TRIGCTRL_TSEL_PRSCH3 << 0)
306 #define USART_TRIGCTRL_TSEL_PRSCH4 (_USART_TRIGCTRL_TSEL_PRSCH4 << 0)
307 #define USART_TRIGCTRL_TSEL_PRSCH5 (_USART_TRIGCTRL_TSEL_PRSCH5 << 0)
308 #define USART_TRIGCTRL_TSEL_PRSCH6 (_USART_TRIGCTRL_TSEL_PRSCH6 << 0)
309 #define USART_TRIGCTRL_TSEL_PRSCH7 (_USART_TRIGCTRL_TSEL_PRSCH7 << 0)
310 #define USART_TRIGCTRL_RXTEN (0x1UL << 4)
311 #define _USART_TRIGCTRL_RXTEN_SHIFT 4
312 #define _USART_TRIGCTRL_RXTEN_MASK 0x10UL
313 #define _USART_TRIGCTRL_RXTEN_DEFAULT 0x00000000UL
314 #define USART_TRIGCTRL_RXTEN_DEFAULT (_USART_TRIGCTRL_RXTEN_DEFAULT << 4)
315 #define USART_TRIGCTRL_TXTEN (0x1UL << 5)
316 #define _USART_TRIGCTRL_TXTEN_SHIFT 5
317 #define _USART_TRIGCTRL_TXTEN_MASK 0x20UL
318 #define _USART_TRIGCTRL_TXTEN_DEFAULT 0x00000000UL
319 #define USART_TRIGCTRL_TXTEN_DEFAULT (_USART_TRIGCTRL_TXTEN_DEFAULT << 5)
321 /* Bit fields for USART CMD */
322 #define _USART_CMD_RESETVALUE 0x00000000UL
323 #define _USART_CMD_MASK 0x00000FFFUL
324 #define USART_CMD_RXEN (0x1UL << 0)
325 #define _USART_CMD_RXEN_SHIFT 0
326 #define _USART_CMD_RXEN_MASK 0x1UL
327 #define _USART_CMD_RXEN_DEFAULT 0x00000000UL
328 #define USART_CMD_RXEN_DEFAULT (_USART_CMD_RXEN_DEFAULT << 0)
329 #define USART_CMD_RXDIS (0x1UL << 1)
330 #define _USART_CMD_RXDIS_SHIFT 1
331 #define _USART_CMD_RXDIS_MASK 0x2UL
332 #define _USART_CMD_RXDIS_DEFAULT 0x00000000UL
333 #define USART_CMD_RXDIS_DEFAULT (_USART_CMD_RXDIS_DEFAULT << 1)
334 #define USART_CMD_TXEN (0x1UL << 2)
335 #define _USART_CMD_TXEN_SHIFT 2
336 #define _USART_CMD_TXEN_MASK 0x4UL
337 #define _USART_CMD_TXEN_DEFAULT 0x00000000UL
338 #define USART_CMD_TXEN_DEFAULT (_USART_CMD_TXEN_DEFAULT << 2)
339 #define USART_CMD_TXDIS (0x1UL << 3)
340 #define _USART_CMD_TXDIS_SHIFT 3
341 #define _USART_CMD_TXDIS_MASK 0x8UL
342 #define _USART_CMD_TXDIS_DEFAULT 0x00000000UL
343 #define USART_CMD_TXDIS_DEFAULT (_USART_CMD_TXDIS_DEFAULT << 3)
344 #define USART_CMD_MASTEREN (0x1UL << 4)
345 #define _USART_CMD_MASTEREN_SHIFT 4
346 #define _USART_CMD_MASTEREN_MASK 0x10UL
347 #define _USART_CMD_MASTEREN_DEFAULT 0x00000000UL
348 #define USART_CMD_MASTEREN_DEFAULT (_USART_CMD_MASTEREN_DEFAULT << 4)
349 #define USART_CMD_MASTERDIS (0x1UL << 5)
350 #define _USART_CMD_MASTERDIS_SHIFT 5
351 #define _USART_CMD_MASTERDIS_MASK 0x20UL
352 #define _USART_CMD_MASTERDIS_DEFAULT 0x00000000UL
353 #define USART_CMD_MASTERDIS_DEFAULT (_USART_CMD_MASTERDIS_DEFAULT << 5)
354 #define USART_CMD_RXBLOCKEN (0x1UL << 6)
355 #define _USART_CMD_RXBLOCKEN_SHIFT 6
356 #define _USART_CMD_RXBLOCKEN_MASK 0x40UL
357 #define _USART_CMD_RXBLOCKEN_DEFAULT 0x00000000UL
358 #define USART_CMD_RXBLOCKEN_DEFAULT (_USART_CMD_RXBLOCKEN_DEFAULT << 6)
359 #define USART_CMD_RXBLOCKDIS (0x1UL << 7)
360 #define _USART_CMD_RXBLOCKDIS_SHIFT 7
361 #define _USART_CMD_RXBLOCKDIS_MASK 0x80UL
362 #define _USART_CMD_RXBLOCKDIS_DEFAULT 0x00000000UL
363 #define USART_CMD_RXBLOCKDIS_DEFAULT (_USART_CMD_RXBLOCKDIS_DEFAULT << 7)
364 #define USART_CMD_TXTRIEN (0x1UL << 8)
365 #define _USART_CMD_TXTRIEN_SHIFT 8
366 #define _USART_CMD_TXTRIEN_MASK 0x100UL
367 #define _USART_CMD_TXTRIEN_DEFAULT 0x00000000UL
368 #define USART_CMD_TXTRIEN_DEFAULT (_USART_CMD_TXTRIEN_DEFAULT << 8)
369 #define USART_CMD_TXTRIDIS (0x1UL << 9)
370 #define _USART_CMD_TXTRIDIS_SHIFT 9
371 #define _USART_CMD_TXTRIDIS_MASK 0x200UL
372 #define _USART_CMD_TXTRIDIS_DEFAULT 0x00000000UL
373 #define USART_CMD_TXTRIDIS_DEFAULT (_USART_CMD_TXTRIDIS_DEFAULT << 9)
374 #define USART_CMD_CLEARTX (0x1UL << 10)
375 #define _USART_CMD_CLEARTX_SHIFT 10
376 #define _USART_CMD_CLEARTX_MASK 0x400UL
377 #define _USART_CMD_CLEARTX_DEFAULT 0x00000000UL
378 #define USART_CMD_CLEARTX_DEFAULT (_USART_CMD_CLEARTX_DEFAULT << 10)
379 #define USART_CMD_CLEARRX (0x1UL << 11)
380 #define _USART_CMD_CLEARRX_SHIFT 11
381 #define _USART_CMD_CLEARRX_MASK 0x800UL
382 #define _USART_CMD_CLEARRX_DEFAULT 0x00000000UL
383 #define USART_CMD_CLEARRX_DEFAULT (_USART_CMD_CLEARRX_DEFAULT << 11)
385 /* Bit fields for USART STATUS */
386 #define _USART_STATUS_RESETVALUE 0x00000040UL
387 #define _USART_STATUS_MASK 0x000001FFUL
388 #define USART_STATUS_RXENS (0x1UL << 0)
389 #define _USART_STATUS_RXENS_SHIFT 0
390 #define _USART_STATUS_RXENS_MASK 0x1UL
391 #define _USART_STATUS_RXENS_DEFAULT 0x00000000UL
392 #define USART_STATUS_RXENS_DEFAULT (_USART_STATUS_RXENS_DEFAULT << 0)
393 #define USART_STATUS_TXENS (0x1UL << 1)
394 #define _USART_STATUS_TXENS_SHIFT 1
395 #define _USART_STATUS_TXENS_MASK 0x2UL
396 #define _USART_STATUS_TXENS_DEFAULT 0x00000000UL
397 #define USART_STATUS_TXENS_DEFAULT (_USART_STATUS_TXENS_DEFAULT << 1)
398 #define USART_STATUS_MASTER (0x1UL << 2)
399 #define _USART_STATUS_MASTER_SHIFT 2
400 #define _USART_STATUS_MASTER_MASK 0x4UL
401 #define _USART_STATUS_MASTER_DEFAULT 0x00000000UL
402 #define USART_STATUS_MASTER_DEFAULT (_USART_STATUS_MASTER_DEFAULT << 2)
403 #define USART_STATUS_RXBLOCK (0x1UL << 3)
404 #define _USART_STATUS_RXBLOCK_SHIFT 3
405 #define _USART_STATUS_RXBLOCK_MASK 0x8UL
406 #define _USART_STATUS_RXBLOCK_DEFAULT 0x00000000UL
407 #define USART_STATUS_RXBLOCK_DEFAULT (_USART_STATUS_RXBLOCK_DEFAULT << 3)
408 #define USART_STATUS_TXTRI (0x1UL << 4)
409 #define _USART_STATUS_TXTRI_SHIFT 4
410 #define _USART_STATUS_TXTRI_MASK 0x10UL
411 #define _USART_STATUS_TXTRI_DEFAULT 0x00000000UL
412 #define USART_STATUS_TXTRI_DEFAULT (_USART_STATUS_TXTRI_DEFAULT << 4)
413 #define USART_STATUS_TXC (0x1UL << 5)
414 #define _USART_STATUS_TXC_SHIFT 5
415 #define _USART_STATUS_TXC_MASK 0x20UL
416 #define _USART_STATUS_TXC_DEFAULT 0x00000000UL
417 #define USART_STATUS_TXC_DEFAULT (_USART_STATUS_TXC_DEFAULT << 5)
418 #define USART_STATUS_TXBL (0x1UL << 6)
419 #define _USART_STATUS_TXBL_SHIFT 6
420 #define _USART_STATUS_TXBL_MASK 0x40UL
421 #define _USART_STATUS_TXBL_DEFAULT 0x00000001UL
422 #define USART_STATUS_TXBL_DEFAULT (_USART_STATUS_TXBL_DEFAULT << 6)
423 #define USART_STATUS_RXDATAV (0x1UL << 7)
424 #define _USART_STATUS_RXDATAV_SHIFT 7
425 #define _USART_STATUS_RXDATAV_MASK 0x80UL
426 #define _USART_STATUS_RXDATAV_DEFAULT 0x00000000UL
427 #define USART_STATUS_RXDATAV_DEFAULT (_USART_STATUS_RXDATAV_DEFAULT << 7)
428 #define USART_STATUS_RXFULL (0x1UL << 8)
429 #define _USART_STATUS_RXFULL_SHIFT 8
430 #define _USART_STATUS_RXFULL_MASK 0x100UL
431 #define _USART_STATUS_RXFULL_DEFAULT 0x00000000UL
432 #define USART_STATUS_RXFULL_DEFAULT (_USART_STATUS_RXFULL_DEFAULT << 8)
434 /* Bit fields for USART CLKDIV */
435 #define _USART_CLKDIV_RESETVALUE 0x00000000UL
436 #define _USART_CLKDIV_MASK 0x001FFFC0UL
437 #define _USART_CLKDIV_DIV_SHIFT 6
438 #define _USART_CLKDIV_DIV_MASK 0x1FFFC0UL
439 #define _USART_CLKDIV_DIV_DEFAULT 0x00000000UL
440 #define USART_CLKDIV_DIV_DEFAULT (_USART_CLKDIV_DIV_DEFAULT << 6)
442 /* Bit fields for USART RXDATAX */
443 #define _USART_RXDATAX_RESETVALUE 0x00000000UL
444 #define _USART_RXDATAX_MASK 0x0000C1FFUL
445 #define _USART_RXDATAX_RXDATA_SHIFT 0
446 #define _USART_RXDATAX_RXDATA_MASK 0x1FFUL
447 #define _USART_RXDATAX_RXDATA_DEFAULT 0x00000000UL
448 #define USART_RXDATAX_RXDATA_DEFAULT (_USART_RXDATAX_RXDATA_DEFAULT << 0)
449 #define USART_RXDATAX_PERR (0x1UL << 14)
450 #define _USART_RXDATAX_PERR_SHIFT 14
451 #define _USART_RXDATAX_PERR_MASK 0x4000UL
452 #define _USART_RXDATAX_PERR_DEFAULT 0x00000000UL
453 #define USART_RXDATAX_PERR_DEFAULT (_USART_RXDATAX_PERR_DEFAULT << 14)
454 #define USART_RXDATAX_FERR (0x1UL << 15)
455 #define _USART_RXDATAX_FERR_SHIFT 15
456 #define _USART_RXDATAX_FERR_MASK 0x8000UL
457 #define _USART_RXDATAX_FERR_DEFAULT 0x00000000UL
458 #define USART_RXDATAX_FERR_DEFAULT (_USART_RXDATAX_FERR_DEFAULT << 15)
460 /* Bit fields for USART RXDATA */
461 #define _USART_RXDATA_RESETVALUE 0x00000000UL
462 #define _USART_RXDATA_MASK 0x000000FFUL
463 #define _USART_RXDATA_RXDATA_SHIFT 0
464 #define _USART_RXDATA_RXDATA_MASK 0xFFUL
465 #define _USART_RXDATA_RXDATA_DEFAULT 0x00000000UL
466 #define USART_RXDATA_RXDATA_DEFAULT (_USART_RXDATA_RXDATA_DEFAULT << 0)
468 /* Bit fields for USART RXDOUBLEX */
469 #define _USART_RXDOUBLEX_RESETVALUE 0x00000000UL
470 #define _USART_RXDOUBLEX_MASK 0xC1FFC1FFUL
471 #define _USART_RXDOUBLEX_RXDATA0_SHIFT 0
472 #define _USART_RXDOUBLEX_RXDATA0_MASK 0x1FFUL
473 #define _USART_RXDOUBLEX_RXDATA0_DEFAULT 0x00000000UL
474 #define USART_RXDOUBLEX_RXDATA0_DEFAULT (_USART_RXDOUBLEX_RXDATA0_DEFAULT << 0)
475 #define USART_RXDOUBLEX_PERR0 (0x1UL << 14)
476 #define _USART_RXDOUBLEX_PERR0_SHIFT 14
477 #define _USART_RXDOUBLEX_PERR0_MASK 0x4000UL
478 #define _USART_RXDOUBLEX_PERR0_DEFAULT 0x00000000UL
479 #define USART_RXDOUBLEX_PERR0_DEFAULT (_USART_RXDOUBLEX_PERR0_DEFAULT << 14)
480 #define USART_RXDOUBLEX_FERR0 (0x1UL << 15)
481 #define _USART_RXDOUBLEX_FERR0_SHIFT 15
482 #define _USART_RXDOUBLEX_FERR0_MASK 0x8000UL
483 #define _USART_RXDOUBLEX_FERR0_DEFAULT 0x00000000UL
484 #define USART_RXDOUBLEX_FERR0_DEFAULT (_USART_RXDOUBLEX_FERR0_DEFAULT << 15)
485 #define _USART_RXDOUBLEX_RXDATA1_SHIFT 16
486 #define _USART_RXDOUBLEX_RXDATA1_MASK 0x1FF0000UL
487 #define _USART_RXDOUBLEX_RXDATA1_DEFAULT 0x00000000UL
488 #define USART_RXDOUBLEX_RXDATA1_DEFAULT (_USART_RXDOUBLEX_RXDATA1_DEFAULT << 16)
489 #define USART_RXDOUBLEX_PERR1 (0x1UL << 30)
490 #define _USART_RXDOUBLEX_PERR1_SHIFT 30
491 #define _USART_RXDOUBLEX_PERR1_MASK 0x40000000UL
492 #define _USART_RXDOUBLEX_PERR1_DEFAULT 0x00000000UL
493 #define USART_RXDOUBLEX_PERR1_DEFAULT (_USART_RXDOUBLEX_PERR1_DEFAULT << 30)
494 #define USART_RXDOUBLEX_FERR1 (0x1UL << 31)
495 #define _USART_RXDOUBLEX_FERR1_SHIFT 31
496 #define _USART_RXDOUBLEX_FERR1_MASK 0x80000000UL
497 #define _USART_RXDOUBLEX_FERR1_DEFAULT 0x00000000UL
498 #define USART_RXDOUBLEX_FERR1_DEFAULT (_USART_RXDOUBLEX_FERR1_DEFAULT << 31)
500 /* Bit fields for USART RXDOUBLE */
501 #define _USART_RXDOUBLE_RESETVALUE 0x00000000UL
502 #define _USART_RXDOUBLE_MASK 0x0000FFFFUL
503 #define _USART_RXDOUBLE_RXDATA0_SHIFT 0
504 #define _USART_RXDOUBLE_RXDATA0_MASK 0xFFUL
505 #define _USART_RXDOUBLE_RXDATA0_DEFAULT 0x00000000UL
506 #define USART_RXDOUBLE_RXDATA0_DEFAULT (_USART_RXDOUBLE_RXDATA0_DEFAULT << 0)
507 #define _USART_RXDOUBLE_RXDATA1_SHIFT 8
508 #define _USART_RXDOUBLE_RXDATA1_MASK 0xFF00UL
509 #define _USART_RXDOUBLE_RXDATA1_DEFAULT 0x00000000UL
510 #define USART_RXDOUBLE_RXDATA1_DEFAULT (_USART_RXDOUBLE_RXDATA1_DEFAULT << 8)
512 /* Bit fields for USART RXDATAXP */
513 #define _USART_RXDATAXP_RESETVALUE 0x00000000UL
514 #define _USART_RXDATAXP_MASK 0x0000C1FFUL
515 #define _USART_RXDATAXP_RXDATAP_SHIFT 0
516 #define _USART_RXDATAXP_RXDATAP_MASK 0x1FFUL
517 #define _USART_RXDATAXP_RXDATAP_DEFAULT 0x00000000UL
518 #define USART_RXDATAXP_RXDATAP_DEFAULT (_USART_RXDATAXP_RXDATAP_DEFAULT << 0)
519 #define USART_RXDATAXP_PERRP (0x1UL << 14)
520 #define _USART_RXDATAXP_PERRP_SHIFT 14
521 #define _USART_RXDATAXP_PERRP_MASK 0x4000UL
522 #define _USART_RXDATAXP_PERRP_DEFAULT 0x00000000UL
523 #define USART_RXDATAXP_PERRP_DEFAULT (_USART_RXDATAXP_PERRP_DEFAULT << 14)
524 #define USART_RXDATAXP_FERRP (0x1UL << 15)
525 #define _USART_RXDATAXP_FERRP_SHIFT 15
526 #define _USART_RXDATAXP_FERRP_MASK 0x8000UL
527 #define _USART_RXDATAXP_FERRP_DEFAULT 0x00000000UL
528 #define USART_RXDATAXP_FERRP_DEFAULT (_USART_RXDATAXP_FERRP_DEFAULT << 15)
530 /* Bit fields for USART RXDOUBLEXP */
531 #define _USART_RXDOUBLEXP_RESETVALUE 0x00000000UL
532 #define _USART_RXDOUBLEXP_MASK 0xC1FFC1FFUL
533 #define _USART_RXDOUBLEXP_RXDATAP0_SHIFT 0
534 #define _USART_RXDOUBLEXP_RXDATAP0_MASK 0x1FFUL
535 #define _USART_RXDOUBLEXP_RXDATAP0_DEFAULT 0x00000000UL
536 #define USART_RXDOUBLEXP_RXDATAP0_DEFAULT (_USART_RXDOUBLEXP_RXDATAP0_DEFAULT << 0)
537 #define USART_RXDOUBLEXP_PERRP0 (0x1UL << 14)
538 #define _USART_RXDOUBLEXP_PERRP0_SHIFT 14
539 #define _USART_RXDOUBLEXP_PERRP0_MASK 0x4000UL
540 #define _USART_RXDOUBLEXP_PERRP0_DEFAULT 0x00000000UL
541 #define USART_RXDOUBLEXP_PERRP0_DEFAULT (_USART_RXDOUBLEXP_PERRP0_DEFAULT << 14)
542 #define USART_RXDOUBLEXP_FERRP0 (0x1UL << 15)
543 #define _USART_RXDOUBLEXP_FERRP0_SHIFT 15
544 #define _USART_RXDOUBLEXP_FERRP0_MASK 0x8000UL
545 #define _USART_RXDOUBLEXP_FERRP0_DEFAULT 0x00000000UL
546 #define USART_RXDOUBLEXP_FERRP0_DEFAULT (_USART_RXDOUBLEXP_FERRP0_DEFAULT << 15)
547 #define _USART_RXDOUBLEXP_RXDATAP1_SHIFT 16
548 #define _USART_RXDOUBLEXP_RXDATAP1_MASK 0x1FF0000UL
549 #define _USART_RXDOUBLEXP_RXDATAP1_DEFAULT 0x00000000UL
550 #define USART_RXDOUBLEXP_RXDATAP1_DEFAULT (_USART_RXDOUBLEXP_RXDATAP1_DEFAULT << 16)
551 #define USART_RXDOUBLEXP_PERRP1 (0x1UL << 30)
552 #define _USART_RXDOUBLEXP_PERRP1_SHIFT 30
553 #define _USART_RXDOUBLEXP_PERRP1_MASK 0x40000000UL
554 #define _USART_RXDOUBLEXP_PERRP1_DEFAULT 0x00000000UL
555 #define USART_RXDOUBLEXP_PERRP1_DEFAULT (_USART_RXDOUBLEXP_PERRP1_DEFAULT << 30)
556 #define USART_RXDOUBLEXP_FERRP1 (0x1UL << 31)
557 #define _USART_RXDOUBLEXP_FERRP1_SHIFT 31
558 #define _USART_RXDOUBLEXP_FERRP1_MASK 0x80000000UL
559 #define _USART_RXDOUBLEXP_FERRP1_DEFAULT 0x00000000UL
560 #define USART_RXDOUBLEXP_FERRP1_DEFAULT (_USART_RXDOUBLEXP_FERRP1_DEFAULT << 31)
562 /* Bit fields for USART TXDATAX */
563 #define _USART_TXDATAX_RESETVALUE 0x00000000UL
564 #define _USART_TXDATAX_MASK 0x0000F9FFUL
565 #define _USART_TXDATAX_TXDATAX_SHIFT 0
566 #define _USART_TXDATAX_TXDATAX_MASK 0x1FFUL
567 #define _USART_TXDATAX_TXDATAX_DEFAULT 0x00000000UL
568 #define USART_TXDATAX_TXDATAX_DEFAULT (_USART_TXDATAX_TXDATAX_DEFAULT << 0)
569 #define USART_TXDATAX_UBRXAT (0x1UL << 11)
570 #define _USART_TXDATAX_UBRXAT_SHIFT 11
571 #define _USART_TXDATAX_UBRXAT_MASK 0x800UL
572 #define _USART_TXDATAX_UBRXAT_DEFAULT 0x00000000UL
573 #define USART_TXDATAX_UBRXAT_DEFAULT (_USART_TXDATAX_UBRXAT_DEFAULT << 11)
574 #define USART_TXDATAX_TXTRIAT (0x1UL << 12)
575 #define _USART_TXDATAX_TXTRIAT_SHIFT 12
576 #define _USART_TXDATAX_TXTRIAT_MASK 0x1000UL
577 #define _USART_TXDATAX_TXTRIAT_DEFAULT 0x00000000UL
578 #define USART_TXDATAX_TXTRIAT_DEFAULT (_USART_TXDATAX_TXTRIAT_DEFAULT << 12)
579 #define USART_TXDATAX_TXBREAK (0x1UL << 13)
580 #define _USART_TXDATAX_TXBREAK_SHIFT 13
581 #define _USART_TXDATAX_TXBREAK_MASK 0x2000UL
582 #define _USART_TXDATAX_TXBREAK_DEFAULT 0x00000000UL
583 #define USART_TXDATAX_TXBREAK_DEFAULT (_USART_TXDATAX_TXBREAK_DEFAULT << 13)
584 #define USART_TXDATAX_TXDISAT (0x1UL << 14)
585 #define _USART_TXDATAX_TXDISAT_SHIFT 14
586 #define _USART_TXDATAX_TXDISAT_MASK 0x4000UL
587 #define _USART_TXDATAX_TXDISAT_DEFAULT 0x00000000UL
588 #define USART_TXDATAX_TXDISAT_DEFAULT (_USART_TXDATAX_TXDISAT_DEFAULT << 14)
589 #define USART_TXDATAX_RXENAT (0x1UL << 15)
590 #define _USART_TXDATAX_RXENAT_SHIFT 15
591 #define _USART_TXDATAX_RXENAT_MASK 0x8000UL
592 #define _USART_TXDATAX_RXENAT_DEFAULT 0x00000000UL
593 #define USART_TXDATAX_RXENAT_DEFAULT (_USART_TXDATAX_RXENAT_DEFAULT << 15)
595 /* Bit fields for USART TXDATA */
596 #define _USART_TXDATA_RESETVALUE 0x00000000UL
597 #define _USART_TXDATA_MASK 0x000000FFUL
598 #define _USART_TXDATA_TXDATA_SHIFT 0
599 #define _USART_TXDATA_TXDATA_MASK 0xFFUL
600 #define _USART_TXDATA_TXDATA_DEFAULT 0x00000000UL
601 #define USART_TXDATA_TXDATA_DEFAULT (_USART_TXDATA_TXDATA_DEFAULT << 0)
603 /* Bit fields for USART TXDOUBLEX */
604 #define _USART_TXDOUBLEX_RESETVALUE 0x00000000UL
605 #define _USART_TXDOUBLEX_MASK 0xF9FFF9FFUL
606 #define _USART_TXDOUBLEX_TXDATA0_SHIFT 0
607 #define _USART_TXDOUBLEX_TXDATA0_MASK 0x1FFUL
608 #define _USART_TXDOUBLEX_TXDATA0_DEFAULT 0x00000000UL
609 #define USART_TXDOUBLEX_TXDATA0_DEFAULT (_USART_TXDOUBLEX_TXDATA0_DEFAULT << 0)
610 #define USART_TXDOUBLEX_UBRXAT0 (0x1UL << 11)
611 #define _USART_TXDOUBLEX_UBRXAT0_SHIFT 11
612 #define _USART_TXDOUBLEX_UBRXAT0_MASK 0x800UL
613 #define _USART_TXDOUBLEX_UBRXAT0_DEFAULT 0x00000000UL
614 #define USART_TXDOUBLEX_UBRXAT0_DEFAULT (_USART_TXDOUBLEX_UBRXAT0_DEFAULT << 11)
615 #define USART_TXDOUBLEX_TXTRIAT0 (0x1UL << 12)
616 #define _USART_TXDOUBLEX_TXTRIAT0_SHIFT 12
617 #define _USART_TXDOUBLEX_TXTRIAT0_MASK 0x1000UL
618 #define _USART_TXDOUBLEX_TXTRIAT0_DEFAULT 0x00000000UL
619 #define USART_TXDOUBLEX_TXTRIAT0_DEFAULT (_USART_TXDOUBLEX_TXTRIAT0_DEFAULT << 12)
620 #define USART_TXDOUBLEX_TXBREAK0 (0x1UL << 13)
621 #define _USART_TXDOUBLEX_TXBREAK0_SHIFT 13
622 #define _USART_TXDOUBLEX_TXBREAK0_MASK 0x2000UL
623 #define _USART_TXDOUBLEX_TXBREAK0_DEFAULT 0x00000000UL
624 #define USART_TXDOUBLEX_TXBREAK0_DEFAULT (_USART_TXDOUBLEX_TXBREAK0_DEFAULT << 13)
625 #define USART_TXDOUBLEX_TXDISAT0 (0x1UL << 14)
626 #define _USART_TXDOUBLEX_TXDISAT0_SHIFT 14
627 #define _USART_TXDOUBLEX_TXDISAT0_MASK 0x4000UL
628 #define _USART_TXDOUBLEX_TXDISAT0_DEFAULT 0x00000000UL
629 #define USART_TXDOUBLEX_TXDISAT0_DEFAULT (_USART_TXDOUBLEX_TXDISAT0_DEFAULT << 14)
630 #define USART_TXDOUBLEX_RXENAT0 (0x1UL << 15)
631 #define _USART_TXDOUBLEX_RXENAT0_SHIFT 15
632 #define _USART_TXDOUBLEX_RXENAT0_MASK 0x8000UL
633 #define _USART_TXDOUBLEX_RXENAT0_DEFAULT 0x00000000UL
634 #define USART_TXDOUBLEX_RXENAT0_DEFAULT (_USART_TXDOUBLEX_RXENAT0_DEFAULT << 15)
635 #define _USART_TXDOUBLEX_TXDATA1_SHIFT 16
636 #define _USART_TXDOUBLEX_TXDATA1_MASK 0x1FF0000UL
637 #define _USART_TXDOUBLEX_TXDATA1_DEFAULT 0x00000000UL
638 #define USART_TXDOUBLEX_TXDATA1_DEFAULT (_USART_TXDOUBLEX_TXDATA1_DEFAULT << 16)
639 #define USART_TXDOUBLEX_UBRXAT1 (0x1UL << 27)
640 #define _USART_TXDOUBLEX_UBRXAT1_SHIFT 27
641 #define _USART_TXDOUBLEX_UBRXAT1_MASK 0x8000000UL
642 #define _USART_TXDOUBLEX_UBRXAT1_DEFAULT 0x00000000UL
643 #define USART_TXDOUBLEX_UBRXAT1_DEFAULT (_USART_TXDOUBLEX_UBRXAT1_DEFAULT << 27)
644 #define USART_TXDOUBLEX_TXTRIAT1 (0x1UL << 28)
645 #define _USART_TXDOUBLEX_TXTRIAT1_SHIFT 28
646 #define _USART_TXDOUBLEX_TXTRIAT1_MASK 0x10000000UL
647 #define _USART_TXDOUBLEX_TXTRIAT1_DEFAULT 0x00000000UL
648 #define USART_TXDOUBLEX_TXTRIAT1_DEFAULT (_USART_TXDOUBLEX_TXTRIAT1_DEFAULT << 28)
649 #define USART_TXDOUBLEX_TXBREAK1 (0x1UL << 29)
650 #define _USART_TXDOUBLEX_TXBREAK1_SHIFT 29
651 #define _USART_TXDOUBLEX_TXBREAK1_MASK 0x20000000UL
652 #define _USART_TXDOUBLEX_TXBREAK1_DEFAULT 0x00000000UL
653 #define USART_TXDOUBLEX_TXBREAK1_DEFAULT (_USART_TXDOUBLEX_TXBREAK1_DEFAULT << 29)
654 #define USART_TXDOUBLEX_TXDISAT1 (0x1UL << 30)
655 #define _USART_TXDOUBLEX_TXDISAT1_SHIFT 30
656 #define _USART_TXDOUBLEX_TXDISAT1_MASK 0x40000000UL
657 #define _USART_TXDOUBLEX_TXDISAT1_DEFAULT 0x00000000UL
658 #define USART_TXDOUBLEX_TXDISAT1_DEFAULT (_USART_TXDOUBLEX_TXDISAT1_DEFAULT << 30)
659 #define USART_TXDOUBLEX_RXENAT1 (0x1UL << 31)
660 #define _USART_TXDOUBLEX_RXENAT1_SHIFT 31
661 #define _USART_TXDOUBLEX_RXENAT1_MASK 0x80000000UL
662 #define _USART_TXDOUBLEX_RXENAT1_DEFAULT 0x00000000UL
663 #define USART_TXDOUBLEX_RXENAT1_DEFAULT (_USART_TXDOUBLEX_RXENAT1_DEFAULT << 31)
665 /* Bit fields for USART TXDOUBLE */
666 #define _USART_TXDOUBLE_RESETVALUE 0x00000000UL
667 #define _USART_TXDOUBLE_MASK 0x0000FFFFUL
668 #define _USART_TXDOUBLE_TXDATA0_SHIFT 0
669 #define _USART_TXDOUBLE_TXDATA0_MASK 0xFFUL
670 #define _USART_TXDOUBLE_TXDATA0_DEFAULT 0x00000000UL
671 #define USART_TXDOUBLE_TXDATA0_DEFAULT (_USART_TXDOUBLE_TXDATA0_DEFAULT << 0)
672 #define _USART_TXDOUBLE_TXDATA1_SHIFT 8
673 #define _USART_TXDOUBLE_TXDATA1_MASK 0xFF00UL
674 #define _USART_TXDOUBLE_TXDATA1_DEFAULT 0x00000000UL
675 #define USART_TXDOUBLE_TXDATA1_DEFAULT (_USART_TXDOUBLE_TXDATA1_DEFAULT << 8)
677 /* Bit fields for USART IF */
678 #define _USART_IF_RESETVALUE 0x00000002UL
679 #define _USART_IF_MASK 0x00001FFFUL
680 #define USART_IF_TXC (0x1UL << 0)
681 #define _USART_IF_TXC_SHIFT 0
682 #define _USART_IF_TXC_MASK 0x1UL
683 #define _USART_IF_TXC_DEFAULT 0x00000000UL
684 #define USART_IF_TXC_DEFAULT (_USART_IF_TXC_DEFAULT << 0)
685 #define USART_IF_TXBL (0x1UL << 1)
686 #define _USART_IF_TXBL_SHIFT 1
687 #define _USART_IF_TXBL_MASK 0x2UL
688 #define _USART_IF_TXBL_DEFAULT 0x00000001UL
689 #define USART_IF_TXBL_DEFAULT (_USART_IF_TXBL_DEFAULT << 1)
690 #define USART_IF_RXDATAV (0x1UL << 2)
691 #define _USART_IF_RXDATAV_SHIFT 2
692 #define _USART_IF_RXDATAV_MASK 0x4UL
693 #define _USART_IF_RXDATAV_DEFAULT 0x00000000UL
694 #define USART_IF_RXDATAV_DEFAULT (_USART_IF_RXDATAV_DEFAULT << 2)
695 #define USART_IF_RXFULL (0x1UL << 3)
696 #define _USART_IF_RXFULL_SHIFT 3
697 #define _USART_IF_RXFULL_MASK 0x8UL
698 #define _USART_IF_RXFULL_DEFAULT 0x00000000UL
699 #define USART_IF_RXFULL_DEFAULT (_USART_IF_RXFULL_DEFAULT << 3)
700 #define USART_IF_RXOF (0x1UL << 4)
701 #define _USART_IF_RXOF_SHIFT 4
702 #define _USART_IF_RXOF_MASK 0x10UL
703 #define _USART_IF_RXOF_DEFAULT 0x00000000UL
704 #define USART_IF_RXOF_DEFAULT (_USART_IF_RXOF_DEFAULT << 4)
705 #define USART_IF_RXUF (0x1UL << 5)
706 #define _USART_IF_RXUF_SHIFT 5
707 #define _USART_IF_RXUF_MASK 0x20UL
708 #define _USART_IF_RXUF_DEFAULT 0x00000000UL
709 #define USART_IF_RXUF_DEFAULT (_USART_IF_RXUF_DEFAULT << 5)
710 #define USART_IF_TXOF (0x1UL << 6)
711 #define _USART_IF_TXOF_SHIFT 6
712 #define _USART_IF_TXOF_MASK 0x40UL
713 #define _USART_IF_TXOF_DEFAULT 0x00000000UL
714 #define USART_IF_TXOF_DEFAULT (_USART_IF_TXOF_DEFAULT << 6)
715 #define USART_IF_TXUF (0x1UL << 7)
716 #define _USART_IF_TXUF_SHIFT 7
717 #define _USART_IF_TXUF_MASK 0x80UL
718 #define _USART_IF_TXUF_DEFAULT 0x00000000UL
719 #define USART_IF_TXUF_DEFAULT (_USART_IF_TXUF_DEFAULT << 7)
720 #define USART_IF_PERR (0x1UL << 8)
721 #define _USART_IF_PERR_SHIFT 8
722 #define _USART_IF_PERR_MASK 0x100UL
723 #define _USART_IF_PERR_DEFAULT 0x00000000UL
724 #define USART_IF_PERR_DEFAULT (_USART_IF_PERR_DEFAULT << 8)
725 #define USART_IF_FERR (0x1UL << 9)
726 #define _USART_IF_FERR_SHIFT 9
727 #define _USART_IF_FERR_MASK 0x200UL
728 #define _USART_IF_FERR_DEFAULT 0x00000000UL
729 #define USART_IF_FERR_DEFAULT (_USART_IF_FERR_DEFAULT << 9)
730 #define USART_IF_MPAF (0x1UL << 10)
731 #define _USART_IF_MPAF_SHIFT 10
732 #define _USART_IF_MPAF_MASK 0x400UL
733 #define _USART_IF_MPAF_DEFAULT 0x00000000UL
734 #define USART_IF_MPAF_DEFAULT (_USART_IF_MPAF_DEFAULT << 10)
735 #define USART_IF_SSM (0x1UL << 11)
736 #define _USART_IF_SSM_SHIFT 11
737 #define _USART_IF_SSM_MASK 0x800UL
738 #define _USART_IF_SSM_DEFAULT 0x00000000UL
739 #define USART_IF_SSM_DEFAULT (_USART_IF_SSM_DEFAULT << 11)
740 #define USART_IF_CCF (0x1UL << 12)
741 #define _USART_IF_CCF_SHIFT 12
742 #define _USART_IF_CCF_MASK 0x1000UL
743 #define _USART_IF_CCF_DEFAULT 0x00000000UL
744 #define USART_IF_CCF_DEFAULT (_USART_IF_CCF_DEFAULT << 12)
746 /* Bit fields for USART IFS */
747 #define _USART_IFS_RESETVALUE 0x00000000UL
748 #define _USART_IFS_MASK 0x00001FF9UL
749 #define USART_IFS_TXC (0x1UL << 0)
750 #define _USART_IFS_TXC_SHIFT 0
751 #define _USART_IFS_TXC_MASK 0x1UL
752 #define _USART_IFS_TXC_DEFAULT 0x00000000UL
753 #define USART_IFS_TXC_DEFAULT (_USART_IFS_TXC_DEFAULT << 0)
754 #define USART_IFS_RXFULL (0x1UL << 3)
755 #define _USART_IFS_RXFULL_SHIFT 3
756 #define _USART_IFS_RXFULL_MASK 0x8UL
757 #define _USART_IFS_RXFULL_DEFAULT 0x00000000UL
758 #define USART_IFS_RXFULL_DEFAULT (_USART_IFS_RXFULL_DEFAULT << 3)
759 #define USART_IFS_RXOF (0x1UL << 4)
760 #define _USART_IFS_RXOF_SHIFT 4
761 #define _USART_IFS_RXOF_MASK 0x10UL
762 #define _USART_IFS_RXOF_DEFAULT 0x00000000UL
763 #define USART_IFS_RXOF_DEFAULT (_USART_IFS_RXOF_DEFAULT << 4)
764 #define USART_IFS_RXUF (0x1UL << 5)
765 #define _USART_IFS_RXUF_SHIFT 5
766 #define _USART_IFS_RXUF_MASK 0x20UL
767 #define _USART_IFS_RXUF_DEFAULT 0x00000000UL
768 #define USART_IFS_RXUF_DEFAULT (_USART_IFS_RXUF_DEFAULT << 5)
769 #define USART_IFS_TXOF (0x1UL << 6)
770 #define _USART_IFS_TXOF_SHIFT 6
771 #define _USART_IFS_TXOF_MASK 0x40UL
772 #define _USART_IFS_TXOF_DEFAULT 0x00000000UL
773 #define USART_IFS_TXOF_DEFAULT (_USART_IFS_TXOF_DEFAULT << 6)
774 #define USART_IFS_TXUF (0x1UL << 7)
775 #define _USART_IFS_TXUF_SHIFT 7
776 #define _USART_IFS_TXUF_MASK 0x80UL
777 #define _USART_IFS_TXUF_DEFAULT 0x00000000UL
778 #define USART_IFS_TXUF_DEFAULT (_USART_IFS_TXUF_DEFAULT << 7)
779 #define USART_IFS_PERR (0x1UL << 8)
780 #define _USART_IFS_PERR_SHIFT 8
781 #define _USART_IFS_PERR_MASK 0x100UL
782 #define _USART_IFS_PERR_DEFAULT 0x00000000UL
783 #define USART_IFS_PERR_DEFAULT (_USART_IFS_PERR_DEFAULT << 8)
784 #define USART_IFS_FERR (0x1UL << 9)
785 #define _USART_IFS_FERR_SHIFT 9
786 #define _USART_IFS_FERR_MASK 0x200UL
787 #define _USART_IFS_FERR_DEFAULT 0x00000000UL
788 #define USART_IFS_FERR_DEFAULT (_USART_IFS_FERR_DEFAULT << 9)
789 #define USART_IFS_MPAF (0x1UL << 10)
790 #define _USART_IFS_MPAF_SHIFT 10
791 #define _USART_IFS_MPAF_MASK 0x400UL
792 #define _USART_IFS_MPAF_DEFAULT 0x00000000UL
793 #define USART_IFS_MPAF_DEFAULT (_USART_IFS_MPAF_DEFAULT << 10)
794 #define USART_IFS_SSM (0x1UL << 11)
795 #define _USART_IFS_SSM_SHIFT 11
796 #define _USART_IFS_SSM_MASK 0x800UL
797 #define _USART_IFS_SSM_DEFAULT 0x00000000UL
798 #define USART_IFS_SSM_DEFAULT (_USART_IFS_SSM_DEFAULT << 11)
799 #define USART_IFS_CCF (0x1UL << 12)
800 #define _USART_IFS_CCF_SHIFT 12
801 #define _USART_IFS_CCF_MASK 0x1000UL
802 #define _USART_IFS_CCF_DEFAULT 0x00000000UL
803 #define USART_IFS_CCF_DEFAULT (_USART_IFS_CCF_DEFAULT << 12)
805 /* Bit fields for USART IFC */
806 #define _USART_IFC_RESETVALUE 0x00000000UL
807 #define _USART_IFC_MASK 0x00001FF9UL
808 #define USART_IFC_TXC (0x1UL << 0)
809 #define _USART_IFC_TXC_SHIFT 0
810 #define _USART_IFC_TXC_MASK 0x1UL
811 #define _USART_IFC_TXC_DEFAULT 0x00000000UL
812 #define USART_IFC_TXC_DEFAULT (_USART_IFC_TXC_DEFAULT << 0)
813 #define USART_IFC_RXFULL (0x1UL << 3)
814 #define _USART_IFC_RXFULL_SHIFT 3
815 #define _USART_IFC_RXFULL_MASK 0x8UL
816 #define _USART_IFC_RXFULL_DEFAULT 0x00000000UL
817 #define USART_IFC_RXFULL_DEFAULT (_USART_IFC_RXFULL_DEFAULT << 3)
818 #define USART_IFC_RXOF (0x1UL << 4)
819 #define _USART_IFC_RXOF_SHIFT 4
820 #define _USART_IFC_RXOF_MASK 0x10UL
821 #define _USART_IFC_RXOF_DEFAULT 0x00000000UL
822 #define USART_IFC_RXOF_DEFAULT (_USART_IFC_RXOF_DEFAULT << 4)
823 #define USART_IFC_RXUF (0x1UL << 5)
824 #define _USART_IFC_RXUF_SHIFT 5
825 #define _USART_IFC_RXUF_MASK 0x20UL
826 #define _USART_IFC_RXUF_DEFAULT 0x00000000UL
827 #define USART_IFC_RXUF_DEFAULT (_USART_IFC_RXUF_DEFAULT << 5)
828 #define USART_IFC_TXOF (0x1UL << 6)
829 #define _USART_IFC_TXOF_SHIFT 6
830 #define _USART_IFC_TXOF_MASK 0x40UL
831 #define _USART_IFC_TXOF_DEFAULT 0x00000000UL
832 #define USART_IFC_TXOF_DEFAULT (_USART_IFC_TXOF_DEFAULT << 6)
833 #define USART_IFC_TXUF (0x1UL << 7)
834 #define _USART_IFC_TXUF_SHIFT 7
835 #define _USART_IFC_TXUF_MASK 0x80UL
836 #define _USART_IFC_TXUF_DEFAULT 0x00000000UL
837 #define USART_IFC_TXUF_DEFAULT (_USART_IFC_TXUF_DEFAULT << 7)
838 #define USART_IFC_PERR (0x1UL << 8)
839 #define _USART_IFC_PERR_SHIFT 8
840 #define _USART_IFC_PERR_MASK 0x100UL
841 #define _USART_IFC_PERR_DEFAULT 0x00000000UL
842 #define USART_IFC_PERR_DEFAULT (_USART_IFC_PERR_DEFAULT << 8)
843 #define USART_IFC_FERR (0x1UL << 9)
844 #define _USART_IFC_FERR_SHIFT 9
845 #define _USART_IFC_FERR_MASK 0x200UL
846 #define _USART_IFC_FERR_DEFAULT 0x00000000UL
847 #define USART_IFC_FERR_DEFAULT (_USART_IFC_FERR_DEFAULT << 9)
848 #define USART_IFC_MPAF (0x1UL << 10)
849 #define _USART_IFC_MPAF_SHIFT 10
850 #define _USART_IFC_MPAF_MASK 0x400UL
851 #define _USART_IFC_MPAF_DEFAULT 0x00000000UL
852 #define USART_IFC_MPAF_DEFAULT (_USART_IFC_MPAF_DEFAULT << 10)
853 #define USART_IFC_SSM (0x1UL << 11)
854 #define _USART_IFC_SSM_SHIFT 11
855 #define _USART_IFC_SSM_MASK 0x800UL
856 #define _USART_IFC_SSM_DEFAULT 0x00000000UL
857 #define USART_IFC_SSM_DEFAULT (_USART_IFC_SSM_DEFAULT << 11)
858 #define USART_IFC_CCF (0x1UL << 12)
859 #define _USART_IFC_CCF_SHIFT 12
860 #define _USART_IFC_CCF_MASK 0x1000UL
861 #define _USART_IFC_CCF_DEFAULT 0x00000000UL
862 #define USART_IFC_CCF_DEFAULT (_USART_IFC_CCF_DEFAULT << 12)
864 /* Bit fields for USART IEN */
865 #define _USART_IEN_RESETVALUE 0x00000000UL
866 #define _USART_IEN_MASK 0x00001FFFUL
867 #define USART_IEN_TXC (0x1UL << 0)
868 #define _USART_IEN_TXC_SHIFT 0
869 #define _USART_IEN_TXC_MASK 0x1UL
870 #define _USART_IEN_TXC_DEFAULT 0x00000000UL
871 #define USART_IEN_TXC_DEFAULT (_USART_IEN_TXC_DEFAULT << 0)
872 #define USART_IEN_TXBL (0x1UL << 1)
873 #define _USART_IEN_TXBL_SHIFT 1
874 #define _USART_IEN_TXBL_MASK 0x2UL
875 #define _USART_IEN_TXBL_DEFAULT 0x00000000UL
876 #define USART_IEN_TXBL_DEFAULT (_USART_IEN_TXBL_DEFAULT << 1)
877 #define USART_IEN_RXDATAV (0x1UL << 2)
878 #define _USART_IEN_RXDATAV_SHIFT 2
879 #define _USART_IEN_RXDATAV_MASK 0x4UL
880 #define _USART_IEN_RXDATAV_DEFAULT 0x00000000UL
881 #define USART_IEN_RXDATAV_DEFAULT (_USART_IEN_RXDATAV_DEFAULT << 2)
882 #define USART_IEN_RXFULL (0x1UL << 3)
883 #define _USART_IEN_RXFULL_SHIFT 3
884 #define _USART_IEN_RXFULL_MASK 0x8UL
885 #define _USART_IEN_RXFULL_DEFAULT 0x00000000UL
886 #define USART_IEN_RXFULL_DEFAULT (_USART_IEN_RXFULL_DEFAULT << 3)
887 #define USART_IEN_RXOF (0x1UL << 4)
888 #define _USART_IEN_RXOF_SHIFT 4
889 #define _USART_IEN_RXOF_MASK 0x10UL
890 #define _USART_IEN_RXOF_DEFAULT 0x00000000UL
891 #define USART_IEN_RXOF_DEFAULT (_USART_IEN_RXOF_DEFAULT << 4)
892 #define USART_IEN_RXUF (0x1UL << 5)
893 #define _USART_IEN_RXUF_SHIFT 5
894 #define _USART_IEN_RXUF_MASK 0x20UL
895 #define _USART_IEN_RXUF_DEFAULT 0x00000000UL
896 #define USART_IEN_RXUF_DEFAULT (_USART_IEN_RXUF_DEFAULT << 5)
897 #define USART_IEN_TXOF (0x1UL << 6)
898 #define _USART_IEN_TXOF_SHIFT 6
899 #define _USART_IEN_TXOF_MASK 0x40UL
900 #define _USART_IEN_TXOF_DEFAULT 0x00000000UL
901 #define USART_IEN_TXOF_DEFAULT (_USART_IEN_TXOF_DEFAULT << 6)
902 #define USART_IEN_TXUF (0x1UL << 7)
903 #define _USART_IEN_TXUF_SHIFT 7
904 #define _USART_IEN_TXUF_MASK 0x80UL
905 #define _USART_IEN_TXUF_DEFAULT 0x00000000UL
906 #define USART_IEN_TXUF_DEFAULT (_USART_IEN_TXUF_DEFAULT << 7)
907 #define USART_IEN_PERR (0x1UL << 8)
908 #define _USART_IEN_PERR_SHIFT 8
909 #define _USART_IEN_PERR_MASK 0x100UL
910 #define _USART_IEN_PERR_DEFAULT 0x00000000UL
911 #define USART_IEN_PERR_DEFAULT (_USART_IEN_PERR_DEFAULT << 8)
912 #define USART_IEN_FERR (0x1UL << 9)
913 #define _USART_IEN_FERR_SHIFT 9
914 #define _USART_IEN_FERR_MASK 0x200UL
915 #define _USART_IEN_FERR_DEFAULT 0x00000000UL
916 #define USART_IEN_FERR_DEFAULT (_USART_IEN_FERR_DEFAULT << 9)
917 #define USART_IEN_MPAF (0x1UL << 10)
918 #define _USART_IEN_MPAF_SHIFT 10
919 #define _USART_IEN_MPAF_MASK 0x400UL
920 #define _USART_IEN_MPAF_DEFAULT 0x00000000UL
921 #define USART_IEN_MPAF_DEFAULT (_USART_IEN_MPAF_DEFAULT << 10)
922 #define USART_IEN_SSM (0x1UL << 11)
923 #define _USART_IEN_SSM_SHIFT 11
924 #define _USART_IEN_SSM_MASK 0x800UL
925 #define _USART_IEN_SSM_DEFAULT 0x00000000UL
926 #define USART_IEN_SSM_DEFAULT (_USART_IEN_SSM_DEFAULT << 11)
927 #define USART_IEN_CCF (0x1UL << 12)
928 #define _USART_IEN_CCF_SHIFT 12
929 #define _USART_IEN_CCF_MASK 0x1000UL
930 #define _USART_IEN_CCF_DEFAULT 0x00000000UL
931 #define USART_IEN_CCF_DEFAULT (_USART_IEN_CCF_DEFAULT << 12)
933 /* Bit fields for USART IRCTRL */
934 #define _USART_IRCTRL_RESETVALUE 0x00000000UL
935 #define _USART_IRCTRL_MASK 0x000000FFUL
936 #define USART_IRCTRL_IREN (0x1UL << 0)
937 #define _USART_IRCTRL_IREN_SHIFT 0
938 #define _USART_IRCTRL_IREN_MASK 0x1UL
939 #define _USART_IRCTRL_IREN_DEFAULT 0x00000000UL
940 #define USART_IRCTRL_IREN_DEFAULT (_USART_IRCTRL_IREN_DEFAULT << 0)
941 #define _USART_IRCTRL_IRPW_SHIFT 1
942 #define _USART_IRCTRL_IRPW_MASK 0x6UL
943 #define _USART_IRCTRL_IRPW_DEFAULT 0x00000000UL
944 #define _USART_IRCTRL_IRPW_ONE 0x00000000UL
945 #define _USART_IRCTRL_IRPW_TWO 0x00000001UL
946 #define _USART_IRCTRL_IRPW_THREE 0x00000002UL
947 #define _USART_IRCTRL_IRPW_FOUR 0x00000003UL
948 #define USART_IRCTRL_IRPW_DEFAULT (_USART_IRCTRL_IRPW_DEFAULT << 1)
949 #define USART_IRCTRL_IRPW_ONE (_USART_IRCTRL_IRPW_ONE << 1)
950 #define USART_IRCTRL_IRPW_TWO (_USART_IRCTRL_IRPW_TWO << 1)
951 #define USART_IRCTRL_IRPW_THREE (_USART_IRCTRL_IRPW_THREE << 1)
952 #define USART_IRCTRL_IRPW_FOUR (_USART_IRCTRL_IRPW_FOUR << 1)
953 #define USART_IRCTRL_IRFILT (0x1UL << 3)
954 #define _USART_IRCTRL_IRFILT_SHIFT 3
955 #define _USART_IRCTRL_IRFILT_MASK 0x8UL
956 #define _USART_IRCTRL_IRFILT_DEFAULT 0x00000000UL
957 #define USART_IRCTRL_IRFILT_DEFAULT (_USART_IRCTRL_IRFILT_DEFAULT << 3)
958 #define _USART_IRCTRL_IRPRSSEL_SHIFT 4
959 #define _USART_IRCTRL_IRPRSSEL_MASK 0x70UL
960 #define _USART_IRCTRL_IRPRSSEL_DEFAULT 0x00000000UL
961 #define _USART_IRCTRL_IRPRSSEL_PRSCH0 0x00000000UL
962 #define _USART_IRCTRL_IRPRSSEL_PRSCH1 0x00000001UL
963 #define _USART_IRCTRL_IRPRSSEL_PRSCH2 0x00000002UL
964 #define _USART_IRCTRL_IRPRSSEL_PRSCH3 0x00000003UL
965 #define _USART_IRCTRL_IRPRSSEL_PRSCH4 0x00000004UL
966 #define _USART_IRCTRL_IRPRSSEL_PRSCH5 0x00000005UL
967 #define _USART_IRCTRL_IRPRSSEL_PRSCH6 0x00000006UL
968 #define _USART_IRCTRL_IRPRSSEL_PRSCH7 0x00000007UL
969 #define USART_IRCTRL_IRPRSSEL_DEFAULT (_USART_IRCTRL_IRPRSSEL_DEFAULT << 4)
970 #define USART_IRCTRL_IRPRSSEL_PRSCH0 (_USART_IRCTRL_IRPRSSEL_PRSCH0 << 4)
971 #define USART_IRCTRL_IRPRSSEL_PRSCH1 (_USART_IRCTRL_IRPRSSEL_PRSCH1 << 4)
972 #define USART_IRCTRL_IRPRSSEL_PRSCH2 (_USART_IRCTRL_IRPRSSEL_PRSCH2 << 4)
973 #define USART_IRCTRL_IRPRSSEL_PRSCH3 (_USART_IRCTRL_IRPRSSEL_PRSCH3 << 4)
974 #define USART_IRCTRL_IRPRSSEL_PRSCH4 (_USART_IRCTRL_IRPRSSEL_PRSCH4 << 4)
975 #define USART_IRCTRL_IRPRSSEL_PRSCH5 (_USART_IRCTRL_IRPRSSEL_PRSCH5 << 4)
976 #define USART_IRCTRL_IRPRSSEL_PRSCH6 (_USART_IRCTRL_IRPRSSEL_PRSCH6 << 4)
977 #define USART_IRCTRL_IRPRSSEL_PRSCH7 (_USART_IRCTRL_IRPRSSEL_PRSCH7 << 4)
978 #define USART_IRCTRL_IRPRSEN (0x1UL << 7)
979 #define _USART_IRCTRL_IRPRSEN_SHIFT 7
980 #define _USART_IRCTRL_IRPRSEN_MASK 0x80UL
981 #define _USART_IRCTRL_IRPRSEN_DEFAULT 0x00000000UL
982 #define USART_IRCTRL_IRPRSEN_DEFAULT (_USART_IRCTRL_IRPRSEN_DEFAULT << 7)
984 /* Bit fields for USART ROUTE */
985 #define _USART_ROUTE_RESETVALUE 0x00000000UL
986 #define _USART_ROUTE_MASK 0x0000030FUL
987 #define USART_ROUTE_RXPEN (0x1UL << 0)
988 #define _USART_ROUTE_RXPEN_SHIFT 0
989 #define _USART_ROUTE_RXPEN_MASK 0x1UL
990 #define _USART_ROUTE_RXPEN_DEFAULT 0x00000000UL
991 #define USART_ROUTE_RXPEN_DEFAULT (_USART_ROUTE_RXPEN_DEFAULT << 0)
992 #define USART_ROUTE_TXPEN (0x1UL << 1)
993 #define _USART_ROUTE_TXPEN_SHIFT 1
994 #define _USART_ROUTE_TXPEN_MASK 0x2UL
995 #define _USART_ROUTE_TXPEN_DEFAULT 0x00000000UL
996 #define USART_ROUTE_TXPEN_DEFAULT (_USART_ROUTE_TXPEN_DEFAULT << 1)
997 #define USART_ROUTE_CSPEN (0x1UL << 2)
998 #define _USART_ROUTE_CSPEN_SHIFT 2
999 #define _USART_ROUTE_CSPEN_MASK 0x4UL
1000 #define _USART_ROUTE_CSPEN_DEFAULT 0x00000000UL
1001 #define USART_ROUTE_CSPEN_DEFAULT (_USART_ROUTE_CSPEN_DEFAULT << 2)
1002 #define USART_ROUTE_CLKPEN (0x1UL << 3)
1003 #define _USART_ROUTE_CLKPEN_SHIFT 3
1004 #define _USART_ROUTE_CLKPEN_MASK 0x8UL
1005 #define _USART_ROUTE_CLKPEN_DEFAULT 0x00000000UL
1006 #define USART_ROUTE_CLKPEN_DEFAULT (_USART_ROUTE_CLKPEN_DEFAULT << 3)
1007 #define _USART_ROUTE_LOCATION_SHIFT 8
1008 #define _USART_ROUTE_LOCATION_MASK 0x300UL
1009 #define _USART_ROUTE_LOCATION_LOC0 0x00000000UL
1010 #define _USART_ROUTE_LOCATION_DEFAULT 0x00000000UL
1011 #define _USART_ROUTE_LOCATION_LOC1 0x00000001UL
1012 #define _USART_ROUTE_LOCATION_LOC2 0x00000002UL
1013 #define _USART_ROUTE_LOCATION_LOC3 0x00000003UL
1014 #define USART_ROUTE_LOCATION_LOC0 (_USART_ROUTE_LOCATION_LOC0 << 8)
1015 #define USART_ROUTE_LOCATION_DEFAULT (_USART_ROUTE_LOCATION_DEFAULT << 8)
1016 #define USART_ROUTE_LOCATION_LOC1 (_USART_ROUTE_LOCATION_LOC1 << 8)
1017 #define USART_ROUTE_LOCATION_LOC2 (_USART_ROUTE_LOCATION_LOC2 << 8)
1018 #define USART_ROUTE_LOCATION_LOC3 (_USART_ROUTE_LOCATION_LOC3 << 8)
__IOM uint32_t TRIGCTRL
Definition: efm32g_usart.h:45
__IOM uint32_t TXDATAX
Definition: efm32g_usart.h:55
__IOM uint32_t TXDATA
Definition: efm32g_usart.h:56
__IM uint32_t RXDATAX
Definition: efm32g_usart.h:49
__IM uint32_t IF
Definition: efm32g_usart.h:59
__IOM uint32_t IFS
Definition: efm32g_usart.h:60
__IOM uint32_t CTRL
Definition: efm32g_usart.h:43
__IOM uint32_t TXDOUBLE
Definition: efm32g_usart.h:58
__IM uint32_t RXDATA
Definition: efm32g_usart.h:50
__IOM uint32_t ROUTE
Definition: efm32g_usart.h:64
__IOM uint32_t IRCTRL
Definition: efm32g_usart.h:63
__IOM uint32_t IFC
Definition: efm32g_usart.h:61
__IOM uint32_t TXDOUBLEX
Definition: efm32g_usart.h:57
__IM uint32_t RXDOUBLE
Definition: efm32g_usart.h:52
__IM uint32_t RXDATAXP
Definition: efm32g_usart.h:53
__IM uint32_t RXDOUBLEX
Definition: efm32g_usart.h:51
__IOM uint32_t CLKDIV
Definition: efm32g_usart.h:48
__IM uint32_t RXDOUBLEXP
Definition: efm32g_usart.h:54
__IOM uint32_t FRAME
Definition: efm32g_usart.h:44
__IOM uint32_t CMD
Definition: efm32g_usart.h:46
__IM uint32_t STATUS
Definition: efm32g_usart.h:47
__IOM uint32_t IEN
Definition: efm32g_usart.h:62