OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [MCF5235_GCC/] [include/] [arch/] [mcf523x/] [mcf523x_uart.h] - Blame information for rev 584

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 584 jeremybenn
/*
2
 * These files are taken from the MCF523X source code example package
3
 * which is available on the Freescale website. Freescale explicitly
4
 * grants the redistribution and modification of these source files.
5
 * The complete licensing information is available in the file
6
 * LICENSE_FREESCALE.TXT.
7
 *
8
 * File:        mcf523x_uart.h
9
 * Purpose:     Register and bit definitions for the MCF523X
10
 *
11
 * Notes:
12
 *
13
 */
14
 
15
#ifndef __MCF523X_UART_H__
16
#define __MCF523X_UART_H__
17
 
18
/*********************************************************************
19
*
20
* Universal Asynchronous Receiver Transmitter (UART)
21
*
22
*********************************************************************/
23
 
24
/* Register read/write macros */
25
#define MCF_UART_UMR0        (*(vuint8 *)(void*)(&__IPSBAR[0x000200]))
26
#define MCF_UART_USR0        (*(vuint8 *)(void*)(&__IPSBAR[0x000204]))
27
#define MCF_UART_UCSR0       (*(vuint8 *)(void*)(&__IPSBAR[0x000204]))
28
#define MCF_UART_UCR0        (*(vuint8 *)(void*)(&__IPSBAR[0x000208]))
29
#define MCF_UART_URB0        (*(vuint8 *)(void*)(&__IPSBAR[0x00020C]))
30
#define MCF_UART_UTB0        (*(vuint8 *)(void*)(&__IPSBAR[0x00020C]))
31
#define MCF_UART_UIPCR0      (*(vuint8 *)(void*)(&__IPSBAR[0x000210]))
32
#define MCF_UART_UACR0       (*(vuint8 *)(void*)(&__IPSBAR[0x000210]))
33
#define MCF_UART_UISR0       (*(vuint8 *)(void*)(&__IPSBAR[0x000214]))
34
#define MCF_UART_UIMR0       (*(vuint8 *)(void*)(&__IPSBAR[0x000214]))
35
#define MCF_UART_UBG10       (*(vuint8 *)(void*)(&__IPSBAR[0x000218]))
36
#define MCF_UART_UBG20       (*(vuint8 *)(void*)(&__IPSBAR[0x00021C]))
37
#define MCF_UART_UIP0        (*(vuint8 *)(void*)(&__IPSBAR[0x000234]))
38
#define MCF_UART_UOP10       (*(vuint8 *)(void*)(&__IPSBAR[0x000238]))
39
#define MCF_UART_UOP00       (*(vuint8 *)(void*)(&__IPSBAR[0x00023C]))
40
#define MCF_UART_UMR1        (*(vuint8 *)(void*)(&__IPSBAR[0x000240]))
41
#define MCF_UART_USR1        (*(vuint8 *)(void*)(&__IPSBAR[0x000244]))
42
#define MCF_UART_UCSR1       (*(vuint8 *)(void*)(&__IPSBAR[0x000244]))
43
#define MCF_UART_UCR1        (*(vuint8 *)(void*)(&__IPSBAR[0x000248]))
44
#define MCF_UART_URB1        (*(vuint8 *)(void*)(&__IPSBAR[0x00024C]))
45
#define MCF_UART_UTB1        (*(vuint8 *)(void*)(&__IPSBAR[0x00024C]))
46
#define MCF_UART_UIPCR1      (*(vuint8 *)(void*)(&__IPSBAR[0x000250]))
47
#define MCF_UART_UACR1       (*(vuint8 *)(void*)(&__IPSBAR[0x000250]))
48
#define MCF_UART_UISR1       (*(vuint8 *)(void*)(&__IPSBAR[0x000254]))
49
#define MCF_UART_UIMR1       (*(vuint8 *)(void*)(&__IPSBAR[0x000254]))
50
#define MCF_UART_UBG11       (*(vuint8 *)(void*)(&__IPSBAR[0x000258]))
51
#define MCF_UART_UBG21       (*(vuint8 *)(void*)(&__IPSBAR[0x00025C]))
52
#define MCF_UART_UIP1        (*(vuint8 *)(void*)(&__IPSBAR[0x000274]))
53
#define MCF_UART_UOP11       (*(vuint8 *)(void*)(&__IPSBAR[0x000278]))
54
#define MCF_UART_UOP01       (*(vuint8 *)(void*)(&__IPSBAR[0x00027C]))
55
#define MCF_UART_UMR2        (*(vuint8 *)(void*)(&__IPSBAR[0x000280]))
56
#define MCF_UART_USR2        (*(vuint8 *)(void*)(&__IPSBAR[0x000284]))
57
#define MCF_UART_UCSR2       (*(vuint8 *)(void*)(&__IPSBAR[0x000284]))
58
#define MCF_UART_UCR2        (*(vuint8 *)(void*)(&__IPSBAR[0x000288]))
59
#define MCF_UART_URB2        (*(vuint8 *)(void*)(&__IPSBAR[0x00028C]))
60
#define MCF_UART_UTB2        (*(vuint8 *)(void*)(&__IPSBAR[0x00028C]))
61
#define MCF_UART_UIPCR2      (*(vuint8 *)(void*)(&__IPSBAR[0x000290]))
62
#define MCF_UART_UACR2       (*(vuint8 *)(void*)(&__IPSBAR[0x000290]))
63
#define MCF_UART_UISR2       (*(vuint8 *)(void*)(&__IPSBAR[0x000294]))
64
#define MCF_UART_UIMR2       (*(vuint8 *)(void*)(&__IPSBAR[0x000294]))
65
#define MCF_UART_UBG12       (*(vuint8 *)(void*)(&__IPSBAR[0x000298]))
66
#define MCF_UART_UBG22       (*(vuint8 *)(void*)(&__IPSBAR[0x00029C]))
67
#define MCF_UART_UIP2        (*(vuint8 *)(void*)(&__IPSBAR[0x0002B4]))
68
#define MCF_UART_UOP12       (*(vuint8 *)(void*)(&__IPSBAR[0x0002B8]))
69
#define MCF_UART_UOP02       (*(vuint8 *)(void*)(&__IPSBAR[0x0002BC]))
70
#define MCF_UART_UMR(x)      (*(vuint8 *)(void*)(&__IPSBAR[0x000200+((x)*0x040)]))
71
#define MCF_UART_USR(x)      (*(vuint8 *)(void*)(&__IPSBAR[0x000204+((x)*0x040)]))
72
#define MCF_UART_UCSR(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x000204+((x)*0x040)]))
73
#define MCF_UART_UCR(x)      (*(vuint8 *)(void*)(&__IPSBAR[0x000208+((x)*0x040)]))
74
#define MCF_UART_URB(x)      (*(vuint8 *)(void*)(&__IPSBAR[0x00020C+((x)*0x040)]))
75
#define MCF_UART_UTB(x)      (*(vuint8 *)(void*)(&__IPSBAR[0x00020C+((x)*0x040)]))
76
#define MCF_UART_UIPCR(x)    (*(vuint8 *)(void*)(&__IPSBAR[0x000210+((x)*0x040)]))
77
#define MCF_UART_UACR(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x000210+((x)*0x040)]))
78
#define MCF_UART_UISR(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x000214+((x)*0x040)]))
79
#define MCF_UART_UIMR(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x000214+((x)*0x040)]))
80
#define MCF_UART_UBG1(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x000218+((x)*0x040)]))
81
#define MCF_UART_UBG2(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x00021C+((x)*0x040)]))
82
#define MCF_UART_UIP(x)      (*(vuint8 *)(void*)(&__IPSBAR[0x000234+((x)*0x040)]))
83
#define MCF_UART_UOP1(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x000238+((x)*0x040)]))
84
#define MCF_UART_UOP0(x)     (*(vuint8 *)(void*)(&__IPSBAR[0x00023C+((x)*0x040)]))
85
 
86
/* Bit definitions and macros for MCF_UART_UMR */
87
#define MCF_UART_UMR_BC(x)              (((x)&0x03)<<0)
88
#define MCF_UART_UMR_PT                 (0x04)
89
#define MCF_UART_UMR_PM(x)              (((x)&0x03)<<3)
90
#define MCF_UART_UMR_ERR                (0x20)
91
#define MCF_UART_UMR_RXIRQ              (0x40)
92
#define MCF_UART_UMR_RXRTS              (0x80)
93
#define MCF_UART_UMR_SB(x)              (((x)&0x0F)<<0)
94
#define MCF_UART_UMR_TXCTS              (0x10)
95
#define MCF_UART_UMR_TXRTS              (0x20)
96
#define MCF_UART_UMR_CM(x)              (((x)&0x03)<<6)
97
#define MCF_UART_UMR_PM_MULTI_ADDR      (0x1C)
98
#define MCF_UART_UMR_PM_MULTI_DATA      (0x18)
99
#define MCF_UART_UMR_PM_NONE            (0x10)
100
#define MCF_UART_UMR_PM_FORCE_HI        (0x0C)
101
#define MCF_UART_UMR_PM_FORCE_LO        (0x08)
102
#define MCF_UART_UMR_PM_ODD             (0x04)
103
#define MCF_UART_UMR_PM_EVEN            (0x00)
104
#define MCF_UART_UMR_BC_5               (0x00)
105
#define MCF_UART_UMR_BC_6               (0x01)
106
#define MCF_UART_UMR_BC_7               (0x02)
107
#define MCF_UART_UMR_BC_8               (0x03)
108
#define MCF_UART_UMR_CM_NORMAL          (0x00)
109
#define MCF_UART_UMR_CM_ECHO            (0x40)
110
#define MCF_UART_UMR_CM_LOCAL_LOOP      (0x80)
111
#define MCF_UART_UMR_CM_REMOTE_LOOP     (0xC0)
112
#define MCF_UART_UMR_SB_STOP_BITS_1     (0x07)
113
#define MCF_UART_UMR_SB_STOP_BITS_15    (0x08)
114
#define MCF_UART_UMR_SB_STOP_BITS_2     (0x0F)
115
 
116
/* Bit definitions and macros for MCF_UART_USR */
117
#define MCF_UART_USR_RXRDY              (0x01)
118
#define MCF_UART_USR_FFULL              (0x02)
119
#define MCF_UART_USR_TXRDY              (0x04)
120
#define MCF_UART_USR_TXEMP              (0x08)
121
#define MCF_UART_USR_OE                 (0x10)
122
#define MCF_UART_USR_PE                 (0x20)
123
#define MCF_UART_USR_FE                 (0x40)
124
#define MCF_UART_USR_RB                 (0x80)
125
 
126
/* Bit definitions and macros for MCF_UART_UCSR */
127
#define MCF_UART_UCSR_TCS(x)            (((x)&0x0F)<<0)
128
#define MCF_UART_UCSR_RCS(x)            (((x)&0x0F)<<4)
129
#define MCF_UART_UCSR_RCS_SYS_CLK       (0xD0)
130
#define MCF_UART_UCSR_RCS_CTM16         (0xE0)
131
#define MCF_UART_UCSR_RCS_CTM           (0xF0)
132
#define MCF_UART_UCSR_TCS_SYS_CLK       (0x0D)
133
#define MCF_UART_UCSR_TCS_CTM16         (0x0E)
134
#define MCF_UART_UCSR_TCS_CTM           (0x0F)
135
 
136
/* Bit definitions and macros for MCF_UART_UCR */
137
#define MCF_UART_UCR_RXC(x)             (((x)&0x03)<<0)
138
#define MCF_UART_UCR_TXC(x)             (((x)&0x03)<<2)
139
#define MCF_UART_UCR_MISC(x)            (((x)&0x07)<<4)
140
#define MCF_UART_UCR_NONE               (0x00)
141
#define MCF_UART_UCR_STOP_BREAK         (0x70)
142
#define MCF_UART_UCR_START_BREAK        (0x60)
143
#define MCF_UART_UCR_BKCHGINT           (0x50)
144
#define MCF_UART_UCR_RESET_ERROR        (0x40)
145
#define MCF_UART_UCR_RESET_TX           (0x30)
146
#define MCF_UART_UCR_RESET_RX           (0x20)
147
#define MCF_UART_UCR_RESET_MR           (0x10)
148
#define MCF_UART_UCR_TX_DISABLED        (0x08)
149
#define MCF_UART_UCR_TX_ENABLED         (0x04)
150
#define MCF_UART_UCR_RX_DISABLED        (0x02)
151
#define MCF_UART_UCR_RX_ENABLED         (0x01)
152
 
153
/* Bit definitions and macros for MCF_UART_UIPCR */
154
#define MCF_UART_UIPCR_CTS              (0x01)
155
#define MCF_UART_UIPCR_COS              (0x10)
156
 
157
/* Bit definitions and macros for MCF_UART_UACR */
158
#define MCF_UART_UACR_IEC               (0x01)
159
 
160
/* Bit definitions and macros for MCF_UART_UISR */
161
#define MCF_UART_UISR_TXRDY             (0x01)
162
#define MCF_UART_UISR_RXRDY_FU          (0x02)
163
#define MCF_UART_UISR_DB                (0x04)
164
#define MCF_UART_UISR_RXFTO             (0x08)
165
#define MCF_UART_UISR_TXFIFO            (0x10)
166
#define MCF_UART_UISR_RXFIFO            (0x20)
167
#define MCF_UART_UISR_COS               (0x80)
168
 
169
/* Bit definitions and macros for MCF_UART_UIMR */
170
#define MCF_UART_UIMR_TXRDY             (0x01)
171
#define MCF_UART_UIMR_RXRDY_FU          (0x02)
172
#define MCF_UART_UIMR_DB                (0x04)
173
#define MCF_UART_UIMR_COS               (0x80)
174
 
175
/* Bit definitions and macros for MCF_UART_UIP */
176
#define MCF_UART_UIP_CTS                (0x01)
177
 
178
/* Bit definitions and macros for MCF_UART_UOP1 */
179
#define MCF_UART_UOP1_RTS               (0x01)
180
 
181
/* Bit definitions and macros for MCF_UART_UOP0 */
182
#define MCF_UART_UOP0_RTS               (0x01)
183
 
184
/********************************************************************/
185
 
186
#endif /* __MCF523X_UART_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.