]> git.sur5r.net Git - freertos/blob - Demo/lwIP_MCF5235_GCC/include/arch/mcf523x/mcf523x_eport.h
Update to V4.3.0 as described in http://www.FreeRTOS.org/History.txt
[freertos] / Demo / lwIP_MCF5235_GCC / include / arch / mcf523x / mcf523x_eport.h
1 /*\r
2  * These files are taken from the MCF523X source code example package\r
3  * which is available on the Freescale website. Freescale explicitly \r
4  * grants the redistribution and modification of these source files.\r
5  * The complete licensing information is available in the file \r
6  * LICENSE_FREESCALE.TXT.\r
7  *\r
8  * File:        mcf523x_eport.h\r
9  * Purpose:     Register and bit definitions for the MCF523X\r
10  *\r
11  * Notes:       \r
12  *      \r
13  */\r
14 \r
15 #ifndef __MCF523X_EPORT_H__\r
16 #define __MCF523X_EPORT_H__\r
17 \r
18 /*********************************************************************\r
19 *\r
20 * Edge Port Module (EPORT)\r
21 *\r
22 *********************************************************************/\r
23 \r
24 /* Register read/write macros */\r
25 #define MCF_EPORT_EPPAR    (*(vuint16*)(void*)(&__IPSBAR[0x130000]))\r
26 #define MCF_EPORT_EPDDR    (*(vuint8 *)(void*)(&__IPSBAR[0x130002]))\r
27 #define MCF_EPORT_EPIER    (*(vuint8 *)(void*)(&__IPSBAR[0x130003]))\r
28 #define MCF_EPORT_EPDR     (*(vuint8 *)(void*)(&__IPSBAR[0x130004]))\r
29 #define MCF_EPORT_EPPDR    (*(vuint8 *)(void*)(&__IPSBAR[0x130005]))\r
30 #define MCF_EPORT_EPFR     (*(vuint8 *)(void*)(&__IPSBAR[0x130006]))\r
31 \r
32 /* Bit definitions and macros for MCF_EPORT_EPPAR */\r
33 #define MCF_EPORT_EPPAR_EPPA1(x)         (((x)&0x0003)<<2)\r
34 #define MCF_EPORT_EPPAR_EPPA2(x)         (((x)&0x0003)<<4)\r
35 #define MCF_EPORT_EPPAR_EPPA3(x)         (((x)&0x0003)<<6)\r
36 #define MCF_EPORT_EPPAR_EPPA4(x)         (((x)&0x0003)<<8)\r
37 #define MCF_EPORT_EPPAR_EPPA5(x)         (((x)&0x0003)<<10)\r
38 #define MCF_EPORT_EPPAR_EPPA6(x)         (((x)&0x0003)<<12)\r
39 #define MCF_EPORT_EPPAR_EPPA7(x)         (((x)&0x0003)<<14)\r
40 #define MCF_EPORT_EPPAR_EPPAx_LEVEL      (0)\r
41 #define MCF_EPORT_EPPAR_EPPAx_RISING     (1)\r
42 #define MCF_EPORT_EPPAR_EPPAx_FALLING    (2)\r
43 #define MCF_EPORT_EPPAR_EPPAx_BOTH       (3)\r
44 \r
45 /* Bit definitions and macros for MCF_EPORT_EPDDR */\r
46 #define MCF_EPORT_EPDDR_EPDD1            (0x02)\r
47 #define MCF_EPORT_EPDDR_EPDD2            (0x04)\r
48 #define MCF_EPORT_EPDDR_EPDD3            (0x08)\r
49 #define MCF_EPORT_EPDDR_EPDD4            (0x10)\r
50 #define MCF_EPORT_EPDDR_EPDD5            (0x20)\r
51 #define MCF_EPORT_EPDDR_EPDD6            (0x40)\r
52 #define MCF_EPORT_EPDDR_EPDD7            (0x80)\r
53 \r
54 /* Bit definitions and macros for MCF_EPORT_EPIER */\r
55 #define MCF_EPORT_EPIER_EPIE1            (0x02)\r
56 #define MCF_EPORT_EPIER_EPIE2            (0x04)\r
57 #define MCF_EPORT_EPIER_EPIE3            (0x08)\r
58 #define MCF_EPORT_EPIER_EPIE4            (0x10)\r
59 #define MCF_EPORT_EPIER_EPIE5            (0x20)\r
60 #define MCF_EPORT_EPIER_EPIE6            (0x40)\r
61 #define MCF_EPORT_EPIER_EPIE7            (0x80)\r
62 \r
63 /* Bit definitions and macros for MCF_EPORT_EPDR */\r
64 #define MCF_EPORT_EPDR_EPD1              (0x02)\r
65 #define MCF_EPORT_EPDR_EPD2              (0x04)\r
66 #define MCF_EPORT_EPDR_EPD3              (0x08)\r
67 #define MCF_EPORT_EPDR_EPD4              (0x10)\r
68 #define MCF_EPORT_EPDR_EPD5              (0x20)\r
69 #define MCF_EPORT_EPDR_EPD6              (0x40)\r
70 #define MCF_EPORT_EPDR_EPD7              (0x80)\r
71 \r
72 /* Bit definitions and macros for MCF_EPORT_EPPDR */\r
73 #define MCF_EPORT_EPPDR_EPPD1            (0x02)\r
74 #define MCF_EPORT_EPPDR_EPPD2            (0x04)\r
75 #define MCF_EPORT_EPPDR_EPPD3            (0x08)\r
76 #define MCF_EPORT_EPPDR_EPPD4            (0x10)\r
77 #define MCF_EPORT_EPPDR_EPPD5            (0x20)\r
78 #define MCF_EPORT_EPPDR_EPPD6            (0x40)\r
79 #define MCF_EPORT_EPPDR_EPPD7            (0x80)\r
80 \r
81 /* Bit definitions and macros for MCF_EPORT_EPFR */\r
82 #define MCF_EPORT_EPFR_EPF1              (0x02)\r
83 #define MCF_EPORT_EPFR_EPF2              (0x04)\r
84 #define MCF_EPORT_EPFR_EPF3              (0x08)\r
85 #define MCF_EPORT_EPFR_EPF4              (0x10)\r
86 #define MCF_EPORT_EPFR_EPF5              (0x20)\r
87 #define MCF_EPORT_EPFR_EPF6              (0x40)\r
88 #define MCF_EPORT_EPFR_EPF7              (0x80)\r
89 \r
90 /********************************************************************/\r
91 \r
92 #endif /* __MCF523X_EPORT_H__ */\r