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