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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF5282_Eclipse/] [RTOSDemo/] [MCF5282/] [MCF5282_PAD.h] - Blame information for rev 578

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/* Coldfire C Header File
2
 * Copyright Freescale Semiconductor Inc
3
 * All rights reserved.
4
 *
5
 * 2007/03/19 Revision: 0.9
6
 */
7
 
8
#ifndef __MCF5282_PAD_H__
9
#define __MCF5282_PAD_H__
10
 
11
 
12
/*********************************************************************
13
*
14
* Common GPIO Registers
15
*
16
*********************************************************************/
17
 
18
/* Register read/write macros */
19
#define MCF_PAD_PBCDPAR                      (*(vuint8 *)(&__IPSBAR[0x100050]))
20
#define MCF_PAD_PFPAR                        (*(vuint8 *)(&__IPSBAR[0x100051]))
21
#define MCF_PAD_PEPAR                        (*(vuint16*)(&__IPSBAR[0x100052]))
22
#define MCF_PAD_PJPAR                        (*(vuint8 *)(&__IPSBAR[0x100054]))
23
#define MCF_PAD_PSDPAR                       (*(vuint8 *)(&__IPSBAR[0x100055]))
24
#define MCF_PAD_PASPAR                       (*(vuint16*)(&__IPSBAR[0x100056]))
25
#define MCF_PAD_PEHLPAR                      (*(vuint8 *)(&__IPSBAR[0x100058]))
26
#define MCF_PAD_PQSPAR                       (*(vuint8 *)(&__IPSBAR[0x100059]))
27
#define MCF_PAD_PTCPAR                       (*(vuint8 *)(&__IPSBAR[0x10005A]))
28
#define MCF_PAD_PTDPAR                       (*(vuint8 *)(&__IPSBAR[0x10005B]))
29
#define MCF_PAD_PUAPAR                       (*(vuint8 *)(&__IPSBAR[0x10005C]))
30
 
31
 
32
/* Bit definitions and macros for MCF_PAD_PBCDPAR */
33
#define MCF_PAD_PBCDPAR_PCDPA                (0x40)
34
#define MCF_PAD_PBCDPAR_PBPA                 (0x80)
35
 
36
/* Bit definitions and macros for MCF_PAD_PFPAR */
37
#define MCF_PAD_PFPAR_PFPA5                  (0x20)
38
#define MCF_PAD_PFPAR_PFPA6                  (0x40)
39
#define MCF_PAD_PFPAR_PFPA7                  (0x80)
40
 
41
/* Bit definitions and macros for MCF_PAD_PEPAR */
42
#define MCF_PAD_PEPAR_PEPA0(x)               (((x)&0x3)<<0)
43
#define MCF_PAD_PEPAR_PEPA0_GPIO             (0)
44
#define MCF_PAD_PEPAR_PEPA0_SYNCB            (0x2)
45
#define MCF_PAD_PEPAR_PEPA0_TIP              (0x3)
46
#define MCF_PAD_PEPAR_PEPA1(x)               (((x)&0x3)<<0x2)
47
#define MCF_PAD_PEPAR_PEPA1_GPIO             (0)
48
#define MCF_PAD_PEPAR_PEPA1_SYNCA            (0x8)
49
#define MCF_PAD_PEPAR_PEPA1_TS               (0xC)
50
#define MCF_PAD_PEPAR_PEPA2                  (0x10)
51
#define MCF_PAD_PEPAR_PEPA3                  (0x40)
52
#define MCF_PAD_PEPAR_PEPA4                  (0x100)
53
#define MCF_PAD_PEPAR_PEPA5                  (0x400)
54
#define MCF_PAD_PEPAR_PEPA6                  (0x1000)
55
#define MCF_PAD_PEPAR_PEPA7                  (0x4000)
56
 
57
/* Bit definitions and macros for MCF_PAD_PJPAR */
58
#define MCF_PAD_PJPAR_PJPA0                  (0x1)
59
#define MCF_PAD_PJPAR_PJPA1                  (0x2)
60
#define MCF_PAD_PJPAR_PJPA2                  (0x4)
61
#define MCF_PAD_PJPAR_PJPA3                  (0x8)
62
#define MCF_PAD_PJPAR_PJPA4                  (0x10)
63
#define MCF_PAD_PJPAR_PJPA5                  (0x20)
64
#define MCF_PAD_PJPAR_PJPA6                  (0x40)
65
#define MCF_PAD_PJPAR_PJPA7                  (0x80)
66
 
67
/* Bit definitions and macros for MCF_PAD_PSDPAR */
68
#define MCF_PAD_PSDPAR_PSDPA                 (0x80)
69
 
70
/* Bit definitions and macros for MCF_PAD_PASPAR */
71
#define MCF_PAD_PASPAR_PASPA0(x)             (((x)&0x3)<<0)
72
#define MCF_PAD_PASPAR_PASPA0_GPIO           (0)
73
#define MCF_PAD_PASPAR_PASPA0_UTXD2          (0x2)
74
#define MCF_PAD_PASPAR_PASPA0_SCL            (0x3)
75
#define MCF_PAD_PASPAR_PASPA1(x)             (((x)&0x3)<<0x2)
76
#define MCF_PAD_PASPAR_PASPA1_GPIO           (0)
77
#define MCF_PAD_PASPAR_PASPA1_URXD2          (0x8)
78
#define MCF_PAD_PASPAR_PASPA1_SDA            (0xC)
79
#define MCF_PAD_PASPAR_PASPA2(x)             (((x)&0x3)<<0x4)
80
#define MCF_PAD_PASPAR_PASPA2_GPIO           (0)
81
#define MCF_PAD_PASPAR_PASPA2_UTXD2          (0x20)
82
#define MCF_PAD_PASPAR_PASPA2_CANTX          (0x30)
83
#define MCF_PAD_PASPAR_PASPA3(x)             (((x)&0x3)<<0x6)
84
#define MCF_PAD_PASPAR_PASPA3_GPIO           (0)
85
#define MCF_PAD_PASPAR_PASPA3_URXD2          (0x80)
86
#define MCF_PAD_PASPAR_PASPA3_CANRX          (0xC0)
87
#define MCF_PAD_PASPAR_PASPA4(x)             (((x)&0x3)<<0x8)
88
#define MCF_PAD_PASPAR_PASPA4_GPIO           (0)
89
#define MCF_PAD_PASPAR_PASPA4_UTXD2          (0x200)
90
#define MCF_PAD_PASPAR_PASPA4_EMDC           (0x300)
91
#define MCF_PAD_PASPAR_PASPA5(x)             (((x)&0x3)<<0xA)
92
#define MCF_PAD_PASPAR_PASPA5_GPIO           (0)
93
#define MCF_PAD_PASPAR_PASPA5_URXD2          (0x800)
94
#define MCF_PAD_PASPAR_PASPA5_EMDIO          (0xC00)
95
 
96
/* Bit definitions and macros for MCF_PAD_PEHLPAR */
97
#define MCF_PAD_PEHLPAR_PELPA                (0x40)
98
#define MCF_PAD_PEHLPAR_PEHPA                (0x80)
99
 
100
/* Bit definitions and macros for MCF_PAD_PQSPAR */
101
#define MCF_PAD_PQSPAR_PQSPA0                (0x1)
102
#define MCF_PAD_PQSPAR_PQSPA1                (0x2)
103
#define MCF_PAD_PQSPAR_PQSPA2                (0x4)
104
#define MCF_PAD_PQSPAR_PQSPA3                (0x8)
105
#define MCF_PAD_PQSPAR_PQSPA4                (0x10)
106
#define MCF_PAD_PQSPAR_PQSPA5                (0x20)
107
#define MCF_PAD_PQSPAR_PQSPA6                (0x40)
108
 
109
/* Bit definitions and macros for MCF_PAD_PTCPAR */
110
#define MCF_PAD_PTCPAR_PTCPA0(x)             (((x)&0x3)<<0)
111
#define MCF_PAD_PTCPAR_PTCPA0_GPIO           (0)
112
#define MCF_PAD_PTCPAR_PTCPA0_UCTS0          (0x1)
113
#define MCF_PAD_PTCPAR_PTCPA0_UCTS1          (0x2)
114
#define MCF_PAD_PTCPAR_PTCPA0_TOUT2          (0x3)
115
#define MCF_PAD_PTCPAR_PTCPA1(x)             (((x)&0x3)<<0x2)
116
#define MCF_PAD_PTCPAR_PTCPA1_GPIO           (0)
117
#define MCF_PAD_PTCPAR_PTCPA1_UCTS0          (0x4)
118
#define MCF_PAD_PTCPAR_PTCPA1_UCTS1          (0x8)
119
#define MCF_PAD_PTCPAR_PTCPA1_TIN2           (0xC)
120
#define MCF_PAD_PTCPAR_PTCPA2(x)             (((x)&0x3)<<0x4)
121
#define MCF_PAD_PTCPAR_PTCPA2_GPIO           (0)
122
#define MCF_PAD_PTCPAR_PTCPA2_URTS0          (0x10)
123
#define MCF_PAD_PTCPAR_PTCPA2_URTS1          (0x20)
124
#define MCF_PAD_PTCPAR_PTCPA2_TOUT3          (0x30)
125
#define MCF_PAD_PTCPAR_PTCPA3(x)             (((x)&0x3)<<0x6)
126
#define MCF_PAD_PTCPAR_PTCPA3_GPIO           (0)
127
#define MCF_PAD_PTCPAR_PTCPA3_URTS0          (0x40)
128
#define MCF_PAD_PTCPAR_PTCPA3_URTS1          (0x80)
129
#define MCF_PAD_PTCPAR_PTCPA3_TIN3           (0xC0)
130
 
131
/* Bit definitions and macros for MCF_PAD_PTDPAR */
132
#define MCF_PAD_PTDPAR_PTDPA0(x)             (((x)&0x3)<<0)
133
#define MCF_PAD_PTDPAR_PTDPA0_GPIO           (0)
134
#define MCF_PAD_PTDPAR_PTDPA0_UCTS0          (0x1)
135
#define MCF_PAD_PTDPAR_PTDPA0_UCTS1          (0x2)
136
#define MCF_PAD_PTDPAR_PTDPA0_TOUT0          (0x3)
137
#define MCF_PAD_PTDPAR_PTDPA1(x)             (((x)&0x3)<<0x2)
138
#define MCF_PAD_PTDPAR_PTDPA2_GPIO           (0)
139
#define MCF_PAD_PTDPAR_PTDPA2_UCTS0          (0x4)
140
#define MCF_PAD_PTDPAR_PTDPA2_UCTS1          (0x8)
141
#define MCF_PAD_PTDPAR_PTDPA2_TIN0           (0xC)
142
#define MCF_PAD_PTDPAR_PTDPA2(x)             (((x)&0x3)<<0x4)
143
#define MCF_PAD_PTDPAR_PTDPA2_URTS0          (0x10)
144
#define MCF_PAD_PTDPAR_PTDPA2_URTS1          (0x20)
145
#define MCF_PAD_PTDPAR_PTDPA2_TOUT1          (0x30)
146
#define MCF_PAD_PTDPAR_PTDPA3(x)             (((x)&0x3)<<0x6)
147
#define MCF_PAD_PTDPAR_PTDPA3_GPIO           (0)
148
#define MCF_PAD_PTDPAR_PTDPA3_URTS0          (0x40)
149
#define MCF_PAD_PTDPAR_PTDPA3_URTS1          (0x80)
150
#define MCF_PAD_PTDPAR_PTDPA3_TIN1           (0xC0)
151
 
152
/* Bit definitions and macros for MCF_PAD_PUAPAR */
153
#define MCF_PAD_PUAPAR_PUAPA0                (0x1)
154
#define MCF_PAD_PUAPAR_PUAPA1                (0x2)
155
#define MCF_PAD_PUAPAR_PUAPA2                (0x4)
156
#define MCF_PAD_PUAPAR_PUAPA3                (0x8)
157
 
158
 
159
#endif /* __MCF5282_PAD_H__ */

powered by: WebSVN 2.1.0

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