1 /*
2  * Copyright 2019 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 /***********************************************************************************************************************
9  * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
10  * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
11  **********************************************************************************************************************/
12 
13 #ifndef _PIN_MUX_H_
14 #define _PIN_MUX_H_
15 
16 /*!
17  * @addtogroup pin_mux
18  * @{
19  */
20 
21 /***********************************************************************************************************************
22  * API
23  **********************************************************************************************************************/
24 
25 #if defined(__cplusplus)
26 extern "C" {
27 #endif
28 
29 /*!
30  * @brief Calls initialization functions.
31  *
32  */
33 void BOARD_InitBootPins(void);
34 
35 /*!
36  * @brief Configures pin routing and optionally pin electrical features.
37  *
38  */
39 void BOARD_InitPins(void);
40 
41 /*! @name PORTE4 (number 5), BUTTON1
42   @{ */
43 #define BOARD_SW3_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
44 #define BOARD_SW3_PORT PORTE /*!<@brief PORT device name: PORTE */
45 #define BOARD_SW3_PIN 4U     /*!<@brief PORTE pin index: 4 */
46                              /* @} */
47 
48 /*! @name PORTA4 (number 38), BUTTON2
49   @{ */
50 #define BOARD_SW2_FGPIO FGPIOA /*!<@brief FGPIO device name: FGPIOA */
51 #define BOARD_SW2_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
52 #define BOARD_SW2_PORT PORTA /*!<@brief PORT device name: PORTA */
53 #define BOARD_SW2_PIN 4U     /*!<@brief PORTA pin index: 4 */
54                              /* @} */
55 
56 /*!
57  * @brief Configures pin routing and optionally pin electrical features.
58  *
59  */
60 void BOARD_InitBUTTONsPins(void);
61 
62 /*! @name PORTE29 (number 26), LEDRGB_RED
63   @{ */
64 #define BOARD_LED_RED_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
65 #define BOARD_LED_RED_PORT PORTE /*!<@brief PORT device name: PORTE */
66 #define BOARD_LED_RED_PIN 29U    /*!<@brief PORTE pin index: 29 */
67                                  /* @} */
68 
69 /*! @name PORTE31 (number 28), LEDRGB_BLUE
70   @{ */
71 #define BOARD_LED_BLUE_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
72 #define BOARD_LED_BLUE_PORT PORTE /*!<@brief PORT device name: PORTE */
73 #define BOARD_LED_BLUE_PIN 31U    /*!<@brief PORTE pin index: 31 */
74                                   /* @} */
75 
76 /*! @name PORTC4 (number 76), LEDRGB_GREEN
77   @{ */
78 #define BOARD_LED_GREEN_GPIO GPIOC /*!<@brief GPIO device name: GPIOC */
79 #define BOARD_LED_GREEN_PORT PORTC /*!<@brief PORT device name: PORTC */
80 #define BOARD_LED_GREEN_PIN 4U     /*!<@brief PORTC pin index: 4 */
81                                    /* @} */
82 
83 /*!
84  * @brief Configures pin routing and optionally pin electrical features.
85  *
86  */
87 void BOARD_InitLEDsPins(void);
88 
89 /*! @name PORTA1 (number 35), TSI_ELECTRODE1/TSI0_CH2
90   @{ */
91 #define BOARD_TSI_ELECTRODE_1_PORT PORTA /*!<@brief PORT device name: PORTA */
92 #define BOARD_TSI_ELECTRODE_1_PIN 1U     /*!<@brief PORTA pin index: 1 */
93                                          /* @} */
94 
95 /*! @name PORTA2 (number 36), TSI_ELECTRODE2/TSI0_CH3
96   @{ */
97 #define BOARD_TSI_ELECTRODE_2_PORT PORTA /*!<@brief PORT device name: PORTA */
98 #define BOARD_TSI_ELECTRODE_2_PIN 2U     /*!<@brief PORTA pin index: 2 */
99                                          /* @} */
100 
101 /*!
102  * @brief Configures pin routing and optionally pin electrical features.
103  *
104  */
105 void BOARD_InitTOUCHPins(void);
106 
107 /*! @name PORTD5 (number 98), Q1[1]/LIGHT_SENSOR
108   @{ */
109 #define BOARD_LIGHT_SENSOR_PORT PORTD /*!<@brief PORT device name: PORTD */
110 #define BOARD_LIGHT_SENSOR_PIN 5U     /*!<@brief PORTD pin index: 5 */
111                                       /* @} */
112 
113 /*!
114  * @brief Configures pin routing and optionally pin electrical features.
115  *
116  */
117 void BOARD_InitLIGHT_SENSORPins(void);
118 
119 /*! @name USB0_DM (number 11), J10[2]/K32L2A_USB_DN
120   @{ */
121 /* @} */
122 
123 /*! @name USB0_DP (number 10), J10[3]/K32L2A_USB_DP
124   @{ */
125 /* @} */
126 
127 /*! @name VREGIN (number 13), P5V_K32L2A
128   @{ */
129 /* @} */
130 
131 /*! @name PORTC7 (number 79), J1[11]/SOF_OUT/FXIO_D20
132   @{ */
133 #define BOARD_SOF_OUT_PORT PORTC /*!<@brief PORT device name: PORTC */
134 #define BOARD_SOF_OUT_PIN 7U     /*!<@brief PORTC pin index: 7 */
135                                  /* @} */
136 
137 /*!
138  * @brief Configures pin routing and optionally pin electrical features.
139  *
140  */
141 void BOARD_InitUSBPins(void);
142 
143 /*! @name PORTB16 (number 62), J1[2]/U7[25]/D0/UART0_RX/FXIO_D16/UART1_RX_TGTMCU
144   @{ */
145 #define BOARD_DEBUG_UART_RX_PORT PORTB /*!<@brief PORT device name: PORTB */
146 #define BOARD_DEBUG_UART_RX_PIN 16U    /*!<@brief PORTB pin index: 16 */
147                                        /* @} */
148 
149 /*! @name PORTB17 (number 63), J1[4]/U7[24]/D1/UART0_TX/FXIO_D17/UART1_TX_TGTMCU
150   @{ */
151 #define BOARD_DEBUG_UART_TX_PORT PORTB /*!<@brief PORT device name: PORTB */
152 #define BOARD_DEBUG_UART_TX_PIN 17U    /*!<@brief PORTB pin index: 17 */
153                                        /* @} */
154 
155 /*!
156  * @brief Configures pin routing and optionally pin electrical features.
157  *
158  */
159 void BOARD_InitDEBUG_UARTPins(void);
160 
161 /*! @name PORTE25 (number 32), U2[12]/U10[6]/ACCEL_I2C0_SDA
162   @{ */
163 #define BOARD_ACCEL_SDA_PORT PORTE /*!<@brief PORT device name: PORTE */
164 #define BOARD_ACCEL_SDA_PIN 25U    /*!<@brief PORTE pin index: 25 */
165                                    /* @} */
166 
167 /*! @name PORTE24 (number 31), U2[11]/U10[4]/ACCEL_I2C0_SCL
168   @{ */
169 #define BOARD_ACCEL_SCL_PORT PORTE /*!<@brief PORT device name: PORTE */
170 #define BOARD_ACCEL_SCL_PIN 24U    /*!<@brief PORTE pin index: 24 */
171                                    /* @} */
172 
173 /*! @name PORTD4 (number 97), U10[11]/INT1_8700
174   @{ */
175 #define BOARD_ACCEL_INT1_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
176 #define BOARD_ACCEL_INT1_PORT PORTD /*!<@brief PORT device name: PORTD */
177 #define BOARD_ACCEL_INT1_PIN 4U     /*!<@brief PORTD pin index: 4 */
178                                     /* @} */
179 
180 /*! @name PORTE5 (number 6), U10[9]/INT2_8700
181   @{ */
182 #define BOARD_ACCEL_INT2_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
183 #define BOARD_ACCEL_INT2_PORT PORTE /*!<@brief PORT device name: PORTE */
184 #define BOARD_ACCEL_INT2_PIN 5U     /*!<@brief PORTE pin index: 5 */
185                                     /* @} */
186 
187 /*! @name PORTE26 (number 33), U10[16]/U11[2]/ACCEL_RST
188   @{ */
189 #define BOARD_ACCEL_RST_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
190 #define BOARD_ACCEL_RST_PORT PORTE /*!<@brief PORT device name: PORTE */
191 #define BOARD_ACCEL_RST_PIN 26U    /*!<@brief PORTE pin index: 26 */
192                                    /* @} */
193 
194 /*!
195  * @brief Configures pin routing and optionally pin electrical features.
196  *
197  */
198 void BOARD_InitACCELPins(void);
199 
200 /*! @name PORTE24 (number 31), U2[11]/U10[4]/ACCEL_I2C0_SCL
201   @{ */
202 #define BOARD_GYRO_SCL_PORT PORTE /*!<@brief PORT device name: PORTE */
203 #define BOARD_GYRO_SCL_PIN 24U    /*!<@brief PORTE pin index: 24 */
204                                   /* @} */
205 
206 /*! @name PORTE25 (number 32), U2[12]/U10[6]/ACCEL_I2C0_SDA
207   @{ */
208 #define BOARD_GYRO_SDA_PORT PORTE /*!<@brief PORT device name: PORTE */
209 #define BOARD_GYRO_SDA_PIN 25U    /*!<@brief PORTE pin index: 25 */
210                                   /* @} */
211 
212 /*! @name PORTE0 (number 1), U2[3]/INT1_21002
213   @{ */
214 #define BOARD_GYRO_INT1_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
215 #define BOARD_GYRO_INT1_PORT PORTE /*!<@brief PORT device name: PORTE */
216 #define BOARD_GYRO_INT1_PIN 0U     /*!<@brief PORTE pin index: 0 */
217                                    /* @} */
218 
219 /*! @name PORTE1 (number 2), U2[2]/INT2_21002
220   @{ */
221 #define BOARD_GYRO_INT2_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
222 #define BOARD_GYRO_INT2_PORT PORTE /*!<@brief PORT device name: PORTE */
223 #define BOARD_GYRO_INT2_PIN 1U     /*!<@brief PORTE pin index: 1 */
224                                    /* @} */
225 
226 /*! @name PORTE26 (number 33), U10[16]/U11[2]/ACCEL_RST
227   @{ */
228 #define BOARD_GYRO_RST_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
229 #define BOARD_GYRO_RST_PORT PORTE /*!<@brief PORT device name: PORTE */
230 #define BOARD_GYRO_RST_PIN 26U    /*!<@brief PORTE pin index: 26 */
231                                   /* @} */
232 
233 /*!
234  * @brief Configures pin routing and optionally pin electrical features.
235  *
236  */
237 void BOARD_InitGYROPins(void);
238 
239 /*! @name PORTA18 (number 50), Y1[1]/EXTAL_32KHZ
240   @{ */
241 #define BOARD_EXTAL0_PORT PORTA /*!<@brief PORT device name: PORTA */
242 #define BOARD_EXTAL0_PIN 18U    /*!<@brief PORTA pin index: 18 */
243                                 /* @} */
244 
245 /*! @name PORTA19 (number 51), Y1[2]/XTAL_32KHZ
246   @{ */
247 #define BOARD_XTAL0_PORT PORTA /*!<@brief PORT device name: PORTA */
248 #define BOARD_XTAL0_PIN 19U    /*!<@brief PORTA pin index: 19 */
249                                /* @} */
250 
251 /*!
252  * @brief Configures pin routing and optionally pin electrical features.
253  *
254  */
255 void BOARD_InitOSCPins(void);
256 
257 #if defined(__cplusplus)
258 }
259 #endif
260 
261 /*!
262  * @}
263  */
264 #endif /* _PIN_MUX_H_ */
265 
266 /***********************************************************************************************************************
267  * EOF
268  **********************************************************************************************************************/
269