iLLD_TC27xC  1.0
IfxEth_PinMap.h
Go to the documentation of this file.
1 /**
2  * \file IfxEth_PinMap.h
3  * \brief ETH I/O map
4  * \ingroup IfxLld_Eth
5  *
6  * \version iLLD_0_1_0_10
7  * \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
8  *
9  *
10  * IMPORTANT NOTICE
11  *
12  *
13  * Infineon Technologies AG (Infineon) is supplying this file for use
14  * exclusively with Infineon's microcontroller products. This file can be freely
15  * distributed within development tools that are supporting such microcontroller
16  * products.
17  *
18  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21  * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
22  * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23  *
24  * \defgroup IfxLld_Eth_pinmap ETH Pin Mapping
25  * \ingroup IfxLld_Eth
26  */
27 
28 #ifndef IFXETH_PINMAP_H
29 #define IFXETH_PINMAP_H
30 
31 #include <_Reg/IfxEth_reg.h>
32 #include <_Impl/IfxEth_cfg.h>
33 #include <Port/Std/IfxPort.h>
34 
35 /** \addtogroup IfxLld_Eth_pinmap
36  * \{ */
37 
38 /** \brief CRS pin mapping structure */
39 typedef const struct
40 {
41  Ifx_ETH* module; /**< \brief Base address */
42  IfxPort_Pin pin; /**< \brief Port pin */
43  Ifx_RxSel select; /**< \brief Input multiplexer value */
45 
46 /** \brief CRSDV pin mapping structure */
47 typedef const struct
48 {
49  Ifx_ETH* module; /**< \brief Base address */
50  IfxPort_Pin pin; /**< \brief Port pin */
51  Ifx_RxSel select; /**< \brief Input multiplexer value */
53 
54 /** \brief RXDV pin mapping structure */
55 typedef const struct
56 {
57  Ifx_ETH* module; /**< \brief Base address */
58  IfxPort_Pin pin; /**< \brief Port pin */
59  Ifx_RxSel select; /**< \brief Input multiplexer value */
61 
62 /** \brief REFCLK pin mapping structure */
63 typedef const struct
64 {
65  Ifx_ETH* module; /**< \brief Base address */
66  IfxPort_Pin pin; /**< \brief Port pin */
67  Ifx_RxSel select; /**< \brief Input multiplexer value */
69 
70 /** \brief RXCLK pin mapping structure */
71 typedef const struct
72 {
73  Ifx_ETH* module; /**< \brief Base address */
74  IfxPort_Pin pin; /**< \brief Port pin */
75  Ifx_RxSel select; /**< \brief Input multiplexer value */
77 
78 /** \brief TXCLK pin mapping structure */
79 typedef const struct
80 {
81  Ifx_ETH* module; /**< \brief Base address */
82  IfxPort_Pin pin; /**< \brief Port pin */
83  Ifx_RxSel select; /**< \brief Input multiplexer value */
85 
86 /** \brief RXD pin mapping structure */
87 typedef const struct
88 {
89  Ifx_ETH* module; /**< \brief Base address */
90  IfxPort_Pin pin; /**< \brief Port pin */
91  Ifx_RxSel select; /**< \brief Input multiplexer value */
93 
94 /** \brief COL pin mapping structure */
95 typedef const struct
96 {
97  Ifx_ETH* module; /**< \brief Base address */
98  IfxPort_Pin pin; /**< \brief Port pin */
99  Ifx_RxSel select; /**< \brief Input multiplexer value */
100 } IfxEth_Col_In;
101 
102 /** \brief MDC pin mapping structure */
103 typedef const struct
104 {
105  Ifx_ETH* module; /**< \brief Base address */
106  IfxPort_Pin pin; /**< \brief Port pin */
107  IfxPort_OutputIdx select; /**< \brief Port control code */
109 
110 /** \brief MDIO pin mapping structure */
111 typedef const struct
112 {
113  Ifx_ETH* module; /**< \brief Base address */
114  IfxPort_Pin pin; /**< \brief Port pin */
115  Ifx_RxSel inSelect; /**< \brief Input multiplexer value */
116  IfxPort_OutputIdx outSelect;/**< \brief Port control code */
118 
119 /** \brief TXD pin mapping structure */
120 typedef const struct
121 {
122  Ifx_ETH* module; /**< \brief Base address */
123  IfxPort_Pin pin; /**< \brief Port pin */
124  IfxPort_OutputIdx select; /**< \brief Port control code */
126 
127 /** \brief TXEN pin mapping structure */
128 typedef const struct
129 {
130  Ifx_ETH* module; /**< \brief Base address */
131  IfxPort_Pin pin; /**< \brief Port pin */
132  IfxPort_OutputIdx select; /**< \brief Port control code */
134 
135 /** \brief TXER pin mapping structure */
136 typedef const struct
137 {
138  Ifx_ETH* module; /**< \brief Base address */
139  IfxPort_Pin pin; /**< \brief Port pin */
140  IfxPort_OutputIdx select; /**< \brief Port control code */
142 
143 /** \brief RXER pin mapping structure */
144 typedef const struct
145 {
146  Ifx_ETH* module; /**< \brief Base address */
147  IfxPort_Pin pin; /**< \brief Port pin */
148  Ifx_RxSel select; /**< \brief Input multiplexer value */
150 
151 IFX_EXTERN IfxEth_Col_In IfxEth_COL_P11_15_IN; /**< \brief ETH_COL: ETH input */
152 IFX_EXTERN IfxEth_Crs_In IfxEth_CRSA_P11_14_IN; /**< \brief ETH_CRSA: ETH input */
153 IFX_EXTERN IfxEth_Crs_In IfxEth_CRSB_P11_11_IN; /**< \brief ETH_CRSB: ETH input */
154 IFX_EXTERN IfxEth_Crsdv_In IfxEth_CRSDVA_P11_11_IN; /**< \brief ETH_CRSDVA: ETH input */
155 IFX_EXTERN IfxEth_Crsdv_In IfxEth_CRSDVB_P11_14_IN; /**< \brief ETH_CRSDVB: ETH input */
156 IFX_EXTERN IfxEth_Mdc_Out IfxEth_MDC_P02_8_OUT; /**< \brief ETH_MDC: ETH output */
157 IFX_EXTERN IfxEth_Mdc_Out IfxEth_MDC_P12_0_OUT; /**< \brief ETH_MDC: ETH output */
158 IFX_EXTERN IfxEth_Mdc_Out IfxEth_MDC_P21_0_OUT; /**< \brief ETH_MDC: ETH output */
159 IFX_EXTERN IfxEth_Mdc_Out IfxEth_MDC_P21_2_OUT; /**< \brief ETH_MDC: ETH output */
160 IFX_EXTERN IfxEth_Mdio_InOut IfxEth_MDIOA_P00_0_INOUT; /**< \brief ETH_MDIOA: ETH input/output */
161 IFX_EXTERN IfxEth_Mdio_InOut IfxEth_MDIOC_P12_1_INOUT; /**< \brief ETH_MDIOC: ETH input/output */
162 IFX_EXTERN IfxEth_Mdio_InOut IfxEth_MDIOD_P21_3_INOUT; /**< \brief ETH_MDIOD: ETH input/output */
163 IFX_EXTERN IfxEth_Mdio_InOut IfxEth_MDIO_P21_1_INOUT; /**< \brief ETH_MDIO: ETH output (Not for production purposes) */
164 IFX_EXTERN IfxEth_Refclk_In IfxEth_REFCLK_P11_12_IN; /**< \brief ETH_REFCLK: ETH input */
165 IFX_EXTERN IfxEth_Rxclk_In IfxEth_RXCLKB_P11_4_IN; /**< \brief ETH_RXCLKB: ETH input */
166 IFX_EXTERN IfxEth_Rxclk_In IfxEth_RXCLKC_P12_0_IN; /**< \brief ETH_RXCLKC: ETH input */
167 IFX_EXTERN IfxEth_Rxd_In IfxEth_RXD0_P11_10_IN; /**< \brief ETH_RXD0: ETH input */
168 IFX_EXTERN IfxEth_Rxd_In IfxEth_RXD1_P11_9_IN; /**< \brief ETH_RXD1: ETH input */
169 IFX_EXTERN IfxEth_Rxd_In IfxEth_RXD2_P11_8_IN; /**< \brief ETH_RXD2: ETH input */
170 IFX_EXTERN IfxEth_Rxd_In IfxEth_RXD3_P11_7_IN; /**< \brief ETH_RXD3: ETH input */
171 IFX_EXTERN IfxEth_Rxdv_In IfxEth_RXDVA_P11_11_IN; /**< \brief ETH_RXDVA: ETH input */
172 IFX_EXTERN IfxEth_Rxdv_In IfxEth_RXDVB_P11_14_IN; /**< \brief ETH_RXDVB: ETH input */
173 IFX_EXTERN IfxEth_Rxer_In IfxEth_RXERA_P11_13_IN; /**< \brief ETH_RXERA: ETH input */
174 IFX_EXTERN IfxEth_Rxer_In IfxEth_RXERB_P21_7_IN; /**< \brief ETH_RXERB: ETH input */
175 IFX_EXTERN IfxEth_Txclk_In IfxEth_TXCLKA_P11_5_IN; /**< \brief ETH_TXCLKA: ETH input */
176 IFX_EXTERN IfxEth_Txclk_In IfxEth_TXCLKB_P11_12_IN; /**< \brief ETH_TXCLKB: ETH input (Not for productive purposes) */
177 IFX_EXTERN IfxEth_Txd_Out IfxEth_TXD0_P11_3_OUT; /**< \brief ETH_TXD0: ETH output */
178 IFX_EXTERN IfxEth_Txd_Out IfxEth_TXD1_P11_2_OUT; /**< \brief ETH_TXD1: ETH output */
179 IFX_EXTERN IfxEth_Txd_Out IfxEth_TXD2_P11_1_OUT; /**< \brief ETH_TXD2: ETH output */
180 IFX_EXTERN IfxEth_Txd_Out IfxEth_TXD3_P11_0_OUT; /**< \brief ETH_TXD3: ETH output */
181 IFX_EXTERN IfxEth_Txen_Out IfxEth_TXEN_P11_6_OUT; /**< \brief ETH_TXEN: ETH output */
182 IFX_EXTERN IfxEth_Txer_Out IfxEth_TXER_P11_4_OUT; /**< \brief ETH_TXER: ETH output */
183 
184 /** \brief Table dimensions */
185 #define IFXETH_PINMAP_NUM_MODULES 1
186 #define IFXETH_PINMAP_COL_IN_NUM_ITEMS 1
187 #define IFXETH_PINMAP_CRS_IN_NUM_ITEMS 2
188 #define IFXETH_PINMAP_CRSDV_IN_NUM_ITEMS 2
189 #define IFXETH_PINMAP_MDC_OUT_NUM_ITEMS 4
190 #define IFXETH_PINMAP_MDIO_INOUT_NUM_ITEMS 7
191 #define IFXETH_PINMAP_REFCLK_IN_NUM_ITEMS 1
192 #define IFXETH_PINMAP_RXCLK_IN_NUM_ITEMS 3
193 #define IFXETH_PINMAP_RXD_IN_NUM_ITEMS 1
194 #define IFXETH_PINMAP_RXDV_IN_NUM_ITEMS 2
195 #define IFXETH_PINMAP_RXER_IN_NUM_ITEMS 2
196 #define IFXETH_PINMAP_TXCLK_IN_NUM_ITEMS 2
197 #define IFXETH_PINMAP_TXD_OUT_NUM_ITEMS 4
198 #define IFXETH_PINMAP_TXEN_OUT_NUM_ITEMS 1
199 #define IFXETH_PINMAP_TXER_OUT_NUM_ITEMS 1
200 
201 
202 /** \brief IfxEth_Col_In table */
204 
205 /** \brief IfxEth_Crs_In table */
207 
208 /** \brief IfxEth_Crsdv_In table */
210 
211 /** \brief IfxEth_Mdc_Out table */
213 
214 /** \brief IfxEth_Mdio_InOut table */
216 
217 /** \brief IfxEth_Refclk_In table */
219 
220 /** \brief IfxEth_Rxclk_In table */
222 
223 /** \brief IfxEth_Rxd_In table */
225 
226 /** \brief IfxEth_Rxdv_In table */
228 
229 /** \brief IfxEth_Rxer_In table */
231 
232 /** \brief IfxEth_Txclk_In table */
234 
235 /** \brief IfxEth_Txd_Out table */
237 
238 /** \brief IfxEth_Txen_Out table */
240 
241 /** \brief IfxEth_Txer_Out table */
243 
244 /** \} */
245 
246 #endif /* IFXETH_PINMAP_H */