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