1 |
578 |
jeremybenn |
/* Coldfire C Header File
|
2 |
|
|
* Copyright Freescale Semiconductor Inc
|
3 |
|
|
* All rights reserved.
|
4 |
|
|
*
|
5 |
|
|
* 2007/03/19 Revision: 0.91
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
#ifndef __MCF52235_PAD_H__
|
9 |
|
|
#define __MCF52235_PAD_H__
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
/*********************************************************************
|
13 |
|
|
*
|
14 |
|
|
* Common GPIO Registers
|
15 |
|
|
*
|
16 |
|
|
*********************************************************************/
|
17 |
|
|
|
18 |
|
|
/* Register read/write macros */
|
19 |
|
|
#define MCF_PAD_PWOR (*(vuint16*)(&__IPSBAR[0x100078]))
|
20 |
|
|
#define MCF_PAD_PDSR1 (*(vuint16*)(&__IPSBAR[0x10007A]))
|
21 |
|
|
#define MCF_PAD_PDSR0 (*(vuint32*)(&__IPSBAR[0x10007C]))
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
/* Bit definitions and macros for MCF_PAD_PWOR */
|
25 |
|
|
#define MCF_PAD_PWOR_PWOR0 (0x1)
|
26 |
|
|
#define MCF_PAD_PWOR_PWOR1 (0x2)
|
27 |
|
|
#define MCF_PAD_PWOR_PWOR2 (0x4)
|
28 |
|
|
#define MCF_PAD_PWOR_PWOR3 (0x8)
|
29 |
|
|
#define MCF_PAD_PWOR_PWOR4 (0x10)
|
30 |
|
|
#define MCF_PAD_PWOR_PWOR5 (0x20)
|
31 |
|
|
#define MCF_PAD_PWOR_PWOR6 (0x40)
|
32 |
|
|
#define MCF_PAD_PWOR_PWOR7 (0x80)
|
33 |
|
|
#define MCF_PAD_PWOR_PWOR8 (0x100)
|
34 |
|
|
#define MCF_PAD_PWOR_PWOR9 (0x200)
|
35 |
|
|
#define MCF_PAD_PWOR_PWOR10 (0x400)
|
36 |
|
|
#define MCF_PAD_PWOR_PWOR11 (0x800)
|
37 |
|
|
#define MCF_PAD_PWOR_PWOR12 (0x1000)
|
38 |
|
|
#define MCF_PAD_PWOR_PWOR13 (0x2000)
|
39 |
|
|
#define MCF_PAD_PWOR_PWOR14 (0x4000)
|
40 |
|
|
#define MCF_PAD_PWOR_PWOR15 (0x8000)
|
41 |
|
|
|
42 |
|
|
/* Bit definitions and macros for MCF_PAD_PDSR1 */
|
43 |
|
|
#define MCF_PAD_PDSR1_PDSR32 (0x1)
|
44 |
|
|
#define MCF_PAD_PDSR1_PDSR33 (0x2)
|
45 |
|
|
#define MCF_PAD_PDSR1_PDSR34 (0x4)
|
46 |
|
|
#define MCF_PAD_PDSR1_PDSR35 (0x8)
|
47 |
|
|
#define MCF_PAD_PDSR1_PDSR36 (0x10)
|
48 |
|
|
#define MCF_PAD_PDSR1_PDSR37 (0x20)
|
49 |
|
|
#define MCF_PAD_PDSR1_PDSR38 (0x40)
|
50 |
|
|
#define MCF_PAD_PDSR1_PDSR39 (0x80)
|
51 |
|
|
#define MCF_PAD_PDSR1_PDSR40 (0x100)
|
52 |
|
|
#define MCF_PAD_PDSR1_PDSR41 (0x200)
|
53 |
|
|
#define MCF_PAD_PDSR1_PDSR42 (0x400)
|
54 |
|
|
#define MCF_PAD_PDSR1_PDSR43 (0x800)
|
55 |
|
|
#define MCF_PAD_PDSR1_PDSR44 (0x1000)
|
56 |
|
|
#define MCF_PAD_PDSR1_PDSR45 (0x2000)
|
57 |
|
|
#define MCF_PAD_PDSR1_PDSR46 (0x4000)
|
58 |
|
|
#define MCF_PAD_PDSR1_PDSR47 (0x8000)
|
59 |
|
|
|
60 |
|
|
/* Bit definitions and macros for MCF_PAD_PDSR0 */
|
61 |
|
|
#define MCF_PAD_PDSR0_PDSR0 (0x1)
|
62 |
|
|
#define MCF_PAD_PDSR0_PDSR1 (0x2)
|
63 |
|
|
#define MCF_PAD_PDSR0_PDSR2 (0x4)
|
64 |
|
|
#define MCF_PAD_PDSR0_PDSR3 (0x8)
|
65 |
|
|
#define MCF_PAD_PDSR0_PDSR4 (0x10)
|
66 |
|
|
#define MCF_PAD_PDSR0_PDSR5 (0x20)
|
67 |
|
|
#define MCF_PAD_PDSR0_PDSR6 (0x40)
|
68 |
|
|
#define MCF_PAD_PDSR0_PDSR7 (0x80)
|
69 |
|
|
#define MCF_PAD_PDSR0_PDSR8 (0x100)
|
70 |
|
|
#define MCF_PAD_PDSR0_PDSR9 (0x200)
|
71 |
|
|
#define MCF_PAD_PDSR0_PDSR10 (0x400)
|
72 |
|
|
#define MCF_PAD_PDSR0_PDSR11 (0x800)
|
73 |
|
|
#define MCF_PAD_PDSR0_PDSR12 (0x1000)
|
74 |
|
|
#define MCF_PAD_PDSR0_PDSR13 (0x2000)
|
75 |
|
|
#define MCF_PAD_PDSR0_PDSR14 (0x4000)
|
76 |
|
|
#define MCF_PAD_PDSR0_PDSR15 (0x8000)
|
77 |
|
|
#define MCF_PAD_PDSR0_PDSR16 (0x10000)
|
78 |
|
|
#define MCF_PAD_PDSR0_PDSR17 (0x20000)
|
79 |
|
|
#define MCF_PAD_PDSR0_PDSR18 (0x40000)
|
80 |
|
|
#define MCF_PAD_PDSR0_PDSR19 (0x80000)
|
81 |
|
|
#define MCF_PAD_PDSR0_PDSR20 (0x100000)
|
82 |
|
|
#define MCF_PAD_PDSR0_PDSR21 (0x200000)
|
83 |
|
|
#define MCF_PAD_PDSR0_PDSR22 (0x400000)
|
84 |
|
|
#define MCF_PAD_PDSR0_PDSR23 (0x800000)
|
85 |
|
|
#define MCF_PAD_PDSR0_PDSR24 (0x1000000)
|
86 |
|
|
#define MCF_PAD_PDSR0_PDSR25 (0x2000000)
|
87 |
|
|
#define MCF_PAD_PDSR0_PDSR26 (0x4000000)
|
88 |
|
|
#define MCF_PAD_PDSR0_PDSR27 (0x8000000)
|
89 |
|
|
#define MCF_PAD_PDSR0_PDSR28 (0x10000000)
|
90 |
|
|
#define MCF_PAD_PDSR0_PDSR29 (0x20000000)
|
91 |
|
|
#define MCF_PAD_PDSR0_PDSR30 (0x40000000)
|
92 |
|
|
#define MCF_PAD_PDSR0_PDSR31 (0x80000000)
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
#endif /* __MCF52235_PAD_H__ */
|