23#ifndef __AT91RM9200_USART_H__
24#define __AT91RM9200_USART_H__
47#define US_CR_RSTRX BIT2
48#define US_CR_RSTTX BIT3
49#define US_CR_RXEN BIT4
50#define US_CR_RXDIS BIT5
51#define US_CR_TXEN BIT6
52#define US_CR_TXDIS BIT7
53#define US_CR_RSTSTA BIT8
54#define US_CR_STTBRK BIT9
55#define US_CR_STPBRK BIT10
56#define US_CR_STTTO BIT11
57#define US_CR_SENDA BIT12
58#define US_CR_RSTIT BIT13
59#define US_CR_RSTNACK BIT14
60#define US_CR_RETTO BIT15
61#define US_CR_DTREN BIT16
62#define US_CR_DTRDIS BIT17
63#define US_CR_RTSEN BIT18
64#define US_CR_RTSDIS BIT19
68#define US_MR_USMODE (0xF << 0)
69#define US_MR_USMODE_NORMAL 0
70#define US_MR_USMODE_RS485 1
71#define US_MR_USMODE_HWHS 2
72#define US_MR_USMODE_MODEM 3
73#define US_MR_USMODE_ISO7816_T0 4
74#define US_MR_USMODE_ISO7816_T1 6
75#define US_MR_USMODE_IRDA 8
76#define US_MR_USCLKS (3 << 4)
77#define US_MR_USCLKS_MCK (0 << 4)
78#define US_MR_USCLKS_MCK_DIV8 (1 << 4)
79#define US_MR_USCLKS_SCK (3 << 4)
80#define US_MR_CHRL (3 << 6)
81#define US_MR_CHRL_5 (0 << 6)
82#define US_MR_CHRL_6 (1 << 6)
83#define US_MR_CHRL_7 (2 << 6)
84#define US_MR_CHRL_8 (3 << 6)
85#define US_MR_SYNC (1 << 8)
86#define US_MR_PAR (7 << 9)
87#define US_MR_PAR_EVEN (0 << 9)
88#define US_MR_PAR_ODD (1 << 9)
89#define US_MR_PAR_SPACE (2 << 9)
90#define US_MR_PAR_MARK (3 << 9)
91#define US_MR_PAR_NONE (4 << 9)
92#define US_MR_PAR_MDROP (6 << 9)
93#define US_MR_NBSTOP (3 << 12)
94#define US_MR_NBSTOP_1 (0 << 12)
95#define US_MR_NBSTOP_1_5 (1 << 12)
96#define US_MR_NBSTOP_2 (2 << 12)
97#define US_MR_CHMODE (3 << 14)
98#define US_MR_CHMODE_NORM (0 << 14)
99#define US_MR_CHMODE_AUTO (1 << 14)
100#define US_MR_CHMODE_LOC (2 << 14)
101#define US_MR_CHMODE_REM (3 << 14)
102#define US_MR_MSBF (1 << 16)
103#define US_MR_MODE9 (1 << 17)
104#define US_MR_CLKO (1 << 18)
105#define US_MR_OVER (1 << 19)
106#define US_MR_INACK (1 << 20)
107#define US_MR_DSNACK (1 << 21)
108#define US_MR_MAX_ITER (7 << 24)
109#define US_MR_FILTER (1 << 28)
115#define US_IER_RXRDY BIT0
116#define US_IER_TXRDY BIT1
117#define US_IER_RXBRK BIT2
118#define US_IER_ENDRX BIT3
120#define US_IER_OVRE BIT5
121#define US_IER_FRAME BIT6
122#define US_IER_PARE BIT7
123#define US_IER_TIMEOUT BIT8
124#define US_IER_TXEMPTY BIT9
125#define US_IER_ITERATION BIT10
126#define US_IER_TXBUFE BIT11
127#define US_IER_RXBUFF BIT12
128#define US_IER_NACK BIT13
129#define US_IER_RIIC BIT16
130#define US_IER_DSRIC BIT17
131#define US_IER_DCDIC BIT18
132#define US_IER_CTSIC BIT19
133#define US_IER_ALL 0xC0001AFB
136#define US_FNTR_NTRST BIT0
139 volatile uint32_t cr;
140 volatile uint32_t mr;
141 volatile uint32_t ier;
142 volatile uint32_t idr;
143 volatile uint32_t imr;
144 volatile uint32_t sr;
145 volatile uint32_t rhr;
146 volatile uint32_t thr;
147 volatile uint32_t brgr;
148 volatile uint32_t _res0[7];
149 volatile uint32_t cidr;
150 volatile uint32_t exid;
151 volatile uint32_t fnr;
Definition: at91rm9200_usart.h:138