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