1 /*
2  * Copyright 2021 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 PORTC15 (number 45), E2/TouchPad_1
42   @{ */
43 
44 /* Symbols to be used with PORT driver */
45 #define BOARD_TSI_ELECTRODE2_PORT PORTC                /*!<@brief PORT peripheral base pointer */
46 #define BOARD_TSI_ELECTRODE2_PIN 15U                   /*!<@brief PORT pin number */
47 #define BOARD_TSI_ELECTRODE2_PIN_MASK (1U << 15U)      /*!<@brief PORT pin mask */
48                                                        /* @} */
49 
50 /*! @name PORTC5 (number 95), E1/TouchPad_0
51   @{ */
52 
53 /* Symbols to be used with PORT driver */
54 #define BOARD_TSI_ELECTRODE1_PORT PORTC               /*!<@brief PORT peripheral base pointer */
55 #define BOARD_TSI_ELECTRODE1_PIN 5U                   /*!<@brief PORT pin number */
56 #define BOARD_TSI_ELECTRODE1_PIN_MASK (1U << 5U)      /*!<@brief PORT pin mask */
57                                                       /* @} */
58 
59 /*!
60  * @brief Configures pin routing and optionally pin electrical features.
61  *
62  */
63 void BOARD_InitTOUCHPins(void);
64 
65 /*! @name PORTD3 (number 70), SW2/BUTTON_0
66   @{ */
67 
68 /* Symbols to be used with GPIO driver */
69 #define BOARD_SW2_FGPIO FGPIOD             /*!<@brief FGPIO peripheral base pointer */
70 #define BOARD_SW2_GPIO GPIOD               /*!<@brief GPIO peripheral base pointer */
71 #define BOARD_SW2_GPIO_PIN_MASK (1U << 3U) /*!<@brief GPIO pin mask */
72 
73 /* Symbols to be used with PORT driver */
74 #define BOARD_SW2_PORT PORTD               /*!<@brief PORT peripheral base pointer */
75 #define BOARD_SW2_PIN 3U                   /*!<@brief PORT pin number */
76 #define BOARD_SW2_PIN_MASK (1U << 3U)      /*!<@brief PORT pin mask */
77                                            /* @} */
78 
79 /*! @name PORTE14 (number 17), SW3/BUTTON_1
80   @{ */
81 
82 /* Symbols to be used with GPIO driver */
83 #define BOARD_SW3_FGPIO FGPIOE              /*!<@brief FGPIO peripheral base pointer */
84 #define BOARD_SW3_GPIO GPIOE                /*!<@brief GPIO peripheral base pointer */
85 #define BOARD_SW3_GPIO_PIN_MASK (1U << 14U) /*!<@brief GPIO pin mask */
86 
87 /* Symbols to be used with PORT driver */
88 #define BOARD_SW3_PORT PORTE                /*!<@brief PORT peripheral base pointer */
89 #define BOARD_SW3_PIN 14U                   /*!<@brief PORT pin number */
90 #define BOARD_SW3_PIN_MASK (1U << 14U)      /*!<@brief PORT pin mask */
91                                             /* @} */
92 
93 /*!
94  * @brief Configures pin routing and optionally pin electrical features.
95  *
96  */
97 void BOARD_InitBUTTONSPins(void);
98 
99 /*! @name PORTD12 (number 34), D3[3]/RGB_BLUE
100   @{ */
101 
102 /* Symbols to be used with GPIO driver */
103 #define BOARD_LED_BLUE_FGPIO FGPIOD              /*!<@brief FGPIO peripheral base pointer */
104 #define BOARD_LED_BLUE_GPIO GPIOD                /*!<@brief GPIO peripheral base pointer */
105 #define BOARD_LED_BLUE_GPIO_PIN_MASK (1U << 12U) /*!<@brief GPIO pin mask */
106 
107 /* Symbols to be used with PORT driver */
108 #define BOARD_LED_BLUE_PORT PORTD                /*!<@brief PORT peripheral base pointer */
109 #define BOARD_LED_BLUE_PIN 12U                   /*!<@brief PORT pin number */
110 #define BOARD_LED_BLUE_PIN_MASK (1U << 12U)      /*!<@brief PORT pin mask */
111                                                  /* @} */
112 
113 /*! @name PORTD11 (number 35), D3[4]/RGB_GREEN
114   @{ */
115 
116 /* Symbols to be used with GPIO driver */
117 #define BOARD_LED_GREEN_FGPIO FGPIOD              /*!<@brief FGPIO peripheral base pointer */
118 #define BOARD_LED_GREEN_GPIO GPIOD                /*!<@brief GPIO peripheral base pointer */
119 #define BOARD_LED_GREEN_GPIO_PIN_MASK (1U << 11U) /*!<@brief GPIO pin mask */
120 
121 /* Symbols to be used with PORT driver */
122 #define BOARD_LED_GREEN_PORT PORTD                /*!<@brief PORT peripheral base pointer */
123 #define BOARD_LED_GREEN_PIN 11U                   /*!<@brief PORT pin number */
124 #define BOARD_LED_GREEN_PIN_MASK (1U << 11U)      /*!<@brief PORT pin mask */
125                                                   /* @} */
126 
127 /*! @name PORTD10 (number 36), D3[1]/RGB_RED
128   @{ */
129 
130 /* Symbols to be used with GPIO driver */
131 #define BOARD_LED_RED_FGPIO FGPIOD              /*!<@brief FGPIO peripheral base pointer */
132 #define BOARD_LED_RED_GPIO GPIOD                /*!<@brief GPIO peripheral base pointer */
133 #define BOARD_LED_RED_GPIO_PIN_MASK (1U << 10U) /*!<@brief GPIO pin mask */
134 
135 /* Symbols to be used with PORT driver */
136 #define BOARD_LED_RED_PORT PORTD                /*!<@brief PORT peripheral base pointer */
137 #define BOARD_LED_RED_PIN 10U                   /*!<@brief PORT pin number */
138 #define BOARD_LED_RED_PIN_MASK (1U << 10U)      /*!<@brief PORT pin mask */
139                                                 /* @} */
140 
141 /*!
142  * @brief Configures pin routing and optionally pin electrical features.
143  *
144  */
145 void BOARD_InitLEDsPins(void);
146 
147 /*! @name PORTB7 (number 15), Y1[1]/EXTAL
148   @{ */
149 
150 /* Symbols to be used with PORT driver */
151 #define BOARD_EXTAL_PORT PORTB               /*!<@brief PORT peripheral base pointer */
152 #define BOARD_EXTAL_PIN 7U                   /*!<@brief PORT pin number */
153 #define BOARD_EXTAL_PIN_MASK (1U << 7U)      /*!<@brief PORT pin mask */
154                                              /* @} */
155 
156 /*! @name PORTB6 (number 16), Y1[3]/XTAL
157   @{ */
158 
159 /* Symbols to be used with PORT driver */
160 #define BOARD_XTAL_PORT PORTB               /*!<@brief PORT peripheral base pointer */
161 #define BOARD_XTAL_PIN 6U                   /*!<@brief PORT pin number */
162 #define BOARD_XTAL_PIN_MASK (1U << 6U)      /*!<@brief PORT pin mask */
163                                             /* @} */
164 
165 /*!
166  * @brief Configures pin routing and optionally pin electrical features.
167  *
168  */
169 void BOARD_InitOSCPins(void);
170 
171 /*!
172  * @brief Configures pin routing and optionally pin electrical features.
173  *
174  */
175 void BOARD_InitTHERMISTORPins(void);
176 
177 /*! @name PORTB10 (number 75), U13[2]/FXOS_INT
178   @{ */
179 
180 /* Symbols to be used with GPIO driver */
181 #define BOARD_FXOS_INT_FGPIO FGPIOB              /*!<@brief FGPIO peripheral base pointer */
182 #define BOARD_FXOS_INT_GPIO GPIOB                /*!<@brief GPIO peripheral base pointer */
183 #define BOARD_FXOS_INT_GPIO_PIN_MASK (1U << 10U) /*!<@brief GPIO pin mask */
184 
185 /* Symbols to be used with PORT driver */
186 #define BOARD_FXOS_INT_PORT PORTB                /*!<@brief PORT peripheral base pointer */
187 #define BOARD_FXOS_INT_PIN 10U                   /*!<@brief PORT pin number */
188 #define BOARD_FXOS_INT_PIN_MASK (1U << 10U)      /*!<@brief PORT pin mask */
189                                                  /* @} */
190 
191 /*! @name PORTB9 (number 76), U13[3]/FXOS_RST
192   @{ */
193 
194 /* Symbols to be used with GPIO driver */
195 #define BOARD_FXOS_RST_FGPIO FGPIOB             /*!<@brief FGPIO peripheral base pointer */
196 #define BOARD_FXOS_RST_GPIO GPIOB               /*!<@brief GPIO peripheral base pointer */
197 #define BOARD_FXOS_RST_GPIO_PIN_MASK (1U << 9U) /*!<@brief GPIO pin mask */
198 
199 /* Symbols to be used with PORT driver */
200 #define BOARD_FXOS_RST_PORT PORTB               /*!<@brief PORT peripheral base pointer */
201 #define BOARD_FXOS_RST_PIN 9U                   /*!<@brief PORT pin number */
202 #define BOARD_FXOS_RST_PIN_MASK (1U << 9U)      /*!<@brief PORT pin mask */
203                                                 /* @} */
204 
205 /*! @name PORTB8 (number 77), J2[20]/U11[2]/Arduino_D15/FXOS_SCL
206   @{ */
207 
208 /* Symbols to be used with PORT driver */
209 #define BOARD_FXOS_SCL_PORT PORTB               /*!<@brief PORT peripheral base pointer */
210 #define BOARD_FXOS_SCL_PIN 8U                   /*!<@brief PORT pin number */
211 #define BOARD_FXOS_SCL_PIN_MASK (1U << 8U)      /*!<@brief PORT pin mask */
212                                                 /* @} */
213 
214 /*! @name PORTA16 (number 82), J2[18]/U11[3]/FXOS_SDA/Arduino_D14
215   @{ */
216 
217 /* Symbols to be used with PORT driver */
218 #define BOARD_FXOS_SDA_PORT PORTA                /*!<@brief PORT peripheral base pointer */
219 #define BOARD_FXOS_SDA_PIN 16U                   /*!<@brief PORT pin number */
220 #define BOARD_FXOS_SDA_PIN_MASK (1U << 16U)      /*!<@brief PORT pin mask */
221                                                  /* @} */
222 
223 /*!
224  * @brief Configures pin routing and optionally pin electrical features.
225  *
226  */
227 void BOARD_InitACCELPins(void);
228 
229 /*! @name PORTB1 (number 53), UART0_TX_TGTMCU
230   @{ */
231 
232 /* Symbols to be used with PORT driver */
233 #define BOARD_UART0_TX_PORT PORTB               /*!<@brief PORT peripheral base pointer */
234 #define BOARD_UART0_TX_PIN 1U                   /*!<@brief PORT pin number */
235 #define BOARD_UART0_TX_PIN_MASK (1U << 1U)      /*!<@brief PORT pin mask */
236                                                 /* @} */
237 
238 /*! @name PORTB0 (number 54), UART0_RX_TGTMCU
239   @{ */
240 
241 /* Symbols to be used with PORT driver */
242 #define BOARD_UART0_RX_PORT PORTB               /*!<@brief PORT peripheral base pointer */
243 #define BOARD_UART0_RX_PIN 0U                   /*!<@brief PORT pin number */
244 #define BOARD_UART0_RX_PIN_MASK (1U << 0U)      /*!<@brief PORT pin mask */
245                                                 /* @} */
246 
247 /*!
248  * @brief Configures pin routing and optionally pin electrical features.
249  *
250  */
251 void BOARD_InitDEBUG_UARTPins(void);
252 
253 #if defined(__cplusplus)
254 }
255 #endif
256 
257 /*!
258  * @}
259  */
260 #endif /* _PIN_MUX_H_ */
261 
262 /***********************************************************************************************************************
263  * EOF
264  **********************************************************************************************************************/
265