3 This file is part of the AVR-Crypto-Lib.
4 Copyright (C) 2010 Daniel Otte (daniel.otte@rub.de)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef HW_UART_REGS_H_
21 #define HW_UART_REGS_H_
23 #define UART0_BASE 0x4000C000
24 #define UART1_BASE 0x4000D000
25 #define UART2_BASE 0x4000E000
27 #define UARTDR_OFFSET 0x00
28 #define UARTRSR_OFFSET 0x04
29 #define UARTECR_OFFSET 0x04
30 #define UARTFR_OFFSET 0x18
31 #define UARTILPR_OFFSET 0x20
32 #define UARTIBRD_OFFSET 0x24
33 #define UARTFBRD_OFFSET 0x28
34 #define UARTLCRH_OFFSET 0x2C
35 #define UARTCTL_OFFSET 0x30
36 #define UARTIFLS_OFFSET 0x34
37 #define UARTIM_OFFSET 0x38
38 #define UARTRIS_OFFSET 0x3C
39 #define UARTMIS_OFFSET 0x40
40 #define UARTICR_OFFSET 0x44
41 #define UARTDMACTL_OFFSET 0x48
42 #define UARTLCTL_OFFSET 0x90
43 #define UARTLSS_OFFSET 0x94
44 #define UARTLTIM_OFFSET 0x98
46 #define UARTPeriphID4_OFFSET 0x0FD0
47 #define UARTPeriphID5_OFFSET 0x0FD4
48 #define UARTPeriphID6_OFFSET 0x0FD8
49 #define UARTPeriphID7_OFFSET 0x0FDC
50 #define UARTPeriphID0_OFFSET 0x0FE0
51 #define UARTPeriphID1_OFFSET 0x0FE4
52 #define UARTPeriphID2_OFFSET 0x0FE8
53 #define UARTPeriphID3_OFFSET 0x0FEC
55 #define UARTCellID0_OFFSET 0x0FF0
56 #define UARTCellID1_OFFSET 0x0FF4
57 #define UARTCellID2_OFFSET 0x0FF8
58 #define UARTCellID3_OFFSET 0x0FFC
71 /* bits in UARTLCRH */
75 #define UART_LME5MIS 15
76 #define UART_LME1MIS 14
77 #define UART_LMSBMIS 13
91 #define UART_LME5MIC 15
92 #define UART_LME1MIC 14
93 #define UART_LMSBMIC 13
101 #define UART_DSRMIC 3
102 #define UART_DCDMIC 2
103 #define UART_CTSMIC 1
107 #define UART_LME5IM 15
108 #define UART_LME1IM 14
109 #define UART_LMSBIM 13
122 /* bits in UARTRIS */
123 #define UART_LME5RIS 15
124 #define UART_LME1RIS 14
125 #define UART_LMSBRIS 13
126 #define UART_OERIS 10
133 #define UART_DSRRIS 3
134 #define UART_DCDRIS 2
135 #define UART_CTSRIS 1
138 /* bits in UARTCTL */
139 #define UART_CTSEN 15
140 #define UART_RTSEN 14
152 #define UART_UARTEN 0
154 #endif /* HW_UART_REGS_H_ */