1 /*
2  * Copyright 2018 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 PORTB7 (number 11), Y1[1]/Crystal8M_EXTAL
42   @{ */
43 #define BOARD_EXTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
44 #define BOARD_EXTAL_PIN 7U     /*!<@brief PORTB pin index: 7 */
45                                /* @} */
46 
47 /*! @name PORTB6 (number 12), Y1[3]/Crystal8M_XTAL
48   @{ */
49 #define BOARD_XTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
50 #define BOARD_XTAL_PIN 6U     /*!<@brief PORTB pin index: 6 */
51                               /* @} */
52 
53 /*!
54  * @brief Configures pin routing and optionally pin electrical features.
55  *
56  */
57 void BOARD_InitOSCPins(void);
58 
59 #define PORT_DFER_DFE_5_MASK 0x20u /*!<@brief Digital Filter Enable Mask for item 5. */
60 
61 /*! @name PORTE5 (number 5), E1[1]/TouchPad_0
62   @{ */
63 #define BOARD_TSI_ELECTRODE1_PORT PORTE /*!<@brief PORT device name: PORTE */
64 #define BOARD_TSI_ELECTRODE1_PIN 5U     /*!<@brief PORTE pin index: 5 */
65                                         /* @} */
66 
67 /*! @name PORTE4 (number 6), E2[1]/TouchPad_1
68   @{ */
69 #define BOARD_TSI_ELECTRODE2_PORT PORTE /*!<@brief PORT device name: PORTE */
70 #define BOARD_TSI_ELECTRODE2_PIN 4U     /*!<@brief PORTE pin index: 4 */
71                                         /* @} */
72 
73 /*!
74  * @brief Configures pin routing and optionally pin electrical features.
75  *
76  */
77 void BOARD_InitTOUCHPins(void);
78 
79 /*! @name PORTD3 (number 33), J1[10]/BUTTON_0/SW2/Arduino_D4
80   @{ */
81 #define BOARD_SW2_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
82 #define BOARD_SW2_PORT PORTD /*!<@brief PORT device name: PORTD */
83 #define BOARD_SW2_PIN 3U     /*!<@brief PORTD pin index: 3 */
84                              /* @} */
85 
86 /*! @name PORTD2 (number 34), J1[6]/BUTTON_1/SW3/Arduino_D2
87   @{ */
88 #define BOARD_SW3_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
89 #define BOARD_SW3_PORT PORTD /*!<@brief PORT device name: PORTD */
90 #define BOARD_SW3_PIN 2U     /*!<@brief PORTD pin index: 2 */
91                              /* @} */
92 
93 /*!
94  * @brief Configures pin routing and optionally pin electrical features.
95  *
96  */
97 void BOARD_InitBUTTONSPins(void);
98 
99 /*! @name PORTA7 (number 28), J4[6]/THERM_0/Arduino_A2
100   @{ */
101 #define BOARD_THER_A_PORT PORTA /*!<@brief PORT device name: PORTA */
102 #define BOARD_THER_A_PIN 7U     /*!<@brief PORTA pin index: 7 */
103                                 /* @} */
104 
105 /*! @name PORTA6 (number 29), J4[8]/THERM_1/Arduino_A3
106   @{ */
107 #define BOARD_THER_B_PORT PORTA /*!<@brief PORT device name: PORTA */
108 #define BOARD_THER_B_PIN 6U     /*!<@brief PORTA pin index: 6 */
109                                 /* @} */
110 
111 /*!
112  * @brief Configures pin routing and optionally pin electrical features.
113  *
114  */
115 void BOARD_InitTHERMISTORPins(void);
116 
117 #define PORT_DFER_DFE_6_MASK 0x40u /*!<@brief Digital Filter Enable Mask for item 6. */
118 
119 /*! @name PORTA3 (number 35), J2[20]/U12[2]/FXOS_SCL/Arduino_D15
120   @{ */
121 #define BOARD_ACCEL_SCL_PORT PORTA /*!<@brief PORT device name: PORTA */
122 #define BOARD_ACCEL_SCL_PIN 3U     /*!<@brief PORTA pin index: 3 */
123                                    /* @} */
124 
125 /*! @name PORTA2 (number 36), J2[18]/U12[3]/FXOS_SDA/Arduino_D14
126   @{ */
127 #define BOARD_ACCEL_SDA_PORT PORTA /*!<@brief PORT device name: PORTA */
128 #define BOARD_ACCEL_SDA_PIN 2U     /*!<@brief PORTA pin index: 2 */
129                                    /* @} */
130 
131 /*! @name PORTD4 (number 32), J2[2]/U14[2]/FXOS_INT/Arduino_D8
132   @{ */
133 #define BOARD_ACCEL_INT_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
134 #define BOARD_ACCEL_INT_PORT PORTD /*!<@brief PORT device name: PORTD */
135 #define BOARD_ACCEL_INT_PIN 4U     /*!<@brief PORTD pin index: 4 */
136                                    /* @} */
137 
138 /*! @name PORTE6 (number 41), J1[3]/J1[16]/U14[3]/Arduino_D7/FXOS_RST/MC_ENC_I
139   @{ */
140 #define BOARD_ACCEL_RST_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */
141 #define BOARD_ACCEL_RST_PORT PORTE /*!<@brief PORT device name: PORTE */
142 #define BOARD_ACCEL_RST_PIN 6U     /*!<@brief PORTE pin index: 6 */
143                                    /* @} */
144 
145 /*!
146  * @brief Configures pin routing and optionally pin electrical features.
147  *
148  */
149 void BOARD_InitACCELPins(void);
150 
151 /*! @name PORTB1 (number 26), UART0_TX_TGTMCU
152   @{ */
153 #define BOARD_DEBUG_UART_TX_PORT PORTB /*!<@brief PORT device name: PORTB */
154 #define BOARD_DEBUG_UART_TX_PIN 1U     /*!<@brief PORTB pin index: 1 */
155                                        /* @} */
156 
157 /*! @name PORTB0 (number 27), UART0_RX_TGTMCU
158   @{ */
159 #define BOARD_DEBUG_UART_RX_PORT PORTB /*!<@brief PORT device name: PORTB */
160 #define BOARD_DEBUG_UART_RX_PIN 0U     /*!<@brief PORTB pin index: 0 */
161                                        /* @} */
162 
163 /*!
164  * @brief Configures pin routing and optionally pin electrical features.
165  *
166  */
167 void BOARD_InitDEBUG_UARTPins(void);
168 
169 /*! @name PORTD1 (number 1), D4[3]/RGB_BLUE
170   @{ */
171 #define BOARD_LED_BLUE_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
172 #define BOARD_LED_BLUE_PORT PORTD /*!<@brief PORT device name: PORTD */
173 #define BOARD_LED_BLUE_PIN 1U     /*!<@brief PORTD pin index: 1 */
174                                   /* @} */
175 
176 /*! @name PORTB5 (number 15), D4[1]/RGB_RED
177   @{ */
178 #define BOARD_LED_RED_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */
179 #define BOARD_LED_RED_PORT PORTB /*!<@brief PORT device name: PORTB */
180 #define BOARD_LED_RED_PIN 5U     /*!<@brief PORTB pin index: 5 */
181                                  /* @} */
182 
183 /*! @name PORTB4 (number 16), D4[4]/RGB_GREEN
184   @{ */
185 #define BOARD_LED_GREEN_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */
186 #define BOARD_LED_GREEN_PORT PORTB /*!<@brief PORT device name: PORTB */
187 #define BOARD_LED_GREEN_PIN 4U     /*!<@brief PORTB pin index: 4 */
188                                    /* @} */
189 
190 /*!
191  * @brief Configures pin routing and optionally pin electrical features.
192  *
193  */
194 void BOARD_InitLEDsPins(void);
195 
196 /*! @name PORTC7 (number 39), U11[1]/CAN_TX
197   @{ */
198 #define BOARD_CAN_TX_PORT PORTC /*!<@brief PORT device name: PORTC */
199 #define BOARD_CAN_TX_PIN 7U     /*!<@brief PORTC pin index: 7 */
200                                 /* @} */
201 
202 /*! @name PORTC6 (number 40), U11[4]/CAN_RX
203   @{ */
204 #define BOARD_CAN_RX_PORT PORTC /*!<@brief PORT device name: PORTC */
205 #define BOARD_CAN_RX_PIN 6U     /*!<@brief PORTC pin index: 6 */
206                                 /* @} */
207 
208 /*! @name PORTB3 (number 24), U11[8]CAN_STANDBY
209   @{ */
210 #define BOARD_CAN_STANDBY_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */
211 #define BOARD_CAN_STANDBY_PORT PORTB /*!<@brief PORT device name: PORTB */
212 #define BOARD_CAN_STANDBY_PIN 3U     /*!<@brief PORTB pin index: 3 */
213                                      /* @} */
214 
215 /*!
216  * @brief Configures pin routing and optionally pin electrical features.
217  *
218  */
219 void BOARD_InitCANPins(void);
220 
221 #if defined(__cplusplus)
222 }
223 #endif
224 
225 /*!
226  * @}
227  */
228 #endif /* _PIN_MUX_H_ */
229 
230 /***********************************************************************************************************************
231  * EOF
232  **********************************************************************************************************************/
233