1 /*
2  * Copyright 2019 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
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 PORTA4 (number 10), SW1
42   @{ */
43 #define BOARD_SW1_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */
44 #define BOARD_SW1_PORT PORTA /*!<@brief PORT device name: PORTA */
45 #define BOARD_SW1_PIN 4U     /*!<@brief PORTA pin index: 4 */
46                              /* @} */
47 
48 /*! @name PORTD1 (number 64), SW2
49   @{ */
50 #define BOARD_SW2_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
51 #define BOARD_SW2_PORT PORTD /*!<@brief PORT device name: PORTD */
52 #define BOARD_SW2_PIN 1U     /*!<@brief PORTD pin index: 1 */
53                              /* @} */
54 
55 /*!
56  * @brief Configures pin routing and optionally pin electrical features.
57  *
58  */
59 void BOARD_InitButtonsPins(void);
60 
61 /*! @name PORTJ3 (number 62), D3/GRN
62   @{ */
63 #define BOARD_LED_GREEN_GPIO GPIOJ /*!<@brief GPIO device name: GPIOJ */
64 #define BOARD_LED_GREEN_PORT PORTJ /*!<@brief PORT device name: PORTJ */
65 #define BOARD_LED_GREEN_PIN 3U     /*!<@brief PORTJ pin index: 3 */
66                                    /* @} */
67 
68 /*! @name PORTJ4 (number 63), D4/RED
69   @{ */
70 #define BOARD_LED_RED_GPIO GPIOJ /*!<@brief GPIO device name: GPIOJ */
71 #define BOARD_LED_RED_PORT PORTJ /*!<@brief PORT device name: PORTJ */
72 #define BOARD_LED_RED_PIN 4U     /*!<@brief PORTJ pin index: 4 */
73                                  /* @} */
74 
75 /*! @name PORTD0 (number 61), J17[2]/J19[1]/J25[17]/D5/ORANGE/IRDRJ/CMP0_IN0
76   @{ */
77 #define BOARD_LED_ORANGE_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
78 #define BOARD_LED_ORANGE_PORT PORTD /*!<@brief PORT device name: PORTD */
79 #define BOARD_LED_ORANGE_PIN 0U     /*!<@brief PORTD pin index: 0 */
80                                     /* @} */
81 
82 /*!
83  * @brief Configures pin routing and optionally pin electrical features.
84  *
85  */
86 void BOARD_InitLEDsPins(void);
87 
88 #define PORT_DFER_DFE_0_MASK 0x01u /*!<@brief Digital Filter Enable Mask for item 0. */
89 
90 /*! @name PORTE0 (number 80), J32[A8]/J11[1]/U5[6]/I2C0_SDA
91   @{ */
92 #define BOARD_ACCEL_SDA_PORT PORTE /*!<@brief PORT device name: PORTE */
93 #define BOARD_ACCEL_SDA_PIN 0U     /*!<@brief PORTE pin index: 0 */
94                                    /* @} */
95 
96 /*! @name PORTD7 (number 79), J32[A7]/J10[1]/U5[4]/I2C0_SCL
97   @{ */
98 #define BOARD_ACCEL_SCL_PORT PORTD /*!<@brief PORT device name: PORTD */
99 #define BOARD_ACCEL_SCL_PIN 7U     /*!<@brief PORTD pin index: 7 */
100                                    /* @} */
101 
102 /*! @name PORTJ5 (number 66), J14[1]/U5[11]/INT1
103   @{ */
104 #define BOARD_ACCEL_INT1_GPIO GPIOJ /*!<@brief GPIO device name: GPIOJ */
105 #define BOARD_ACCEL_INT1_PORT PORTJ /*!<@brief PORT device name: PORTJ */
106 #define BOARD_ACCEL_INT1_PIN 5U     /*!<@brief PORTJ pin index: 5 */
107                                     /* @} */
108 
109 /*! @name PORTJ6 (number 67), J16[1]/U5[9]/INT2
110   @{ */
111 #define BOARD_ACCEL_INT2_GPIO GPIOJ /*!<@brief GPIO device name: GPIOJ */
112 #define BOARD_ACCEL_INT2_PORT PORTJ /*!<@brief PORT device name: PORTJ */
113 #define BOARD_ACCEL_INT2_PIN 6U     /*!<@brief PORTJ pin index: 6 */
114                                     /* @} */
115 
116 /*!
117  * @brief Configures pin routing and optionally pin electrical features.
118  *
119  */
120 void BOARD_InitACCELPins(void);
121 
122 /*!
123  * @brief
124  * UART2 IrDA Select: Pad RX input PTI[6] or PTE[6] selected for RX input of UART2 and UART2 TX signal is not used
125  * for modulation.
126  */
127 #define MISC_CTL_UART2IRSEL_0b0 0x00u
128 
129 /*! @name PORTI7 (number 7), UART2_TX
130   @{ */
131 #define BOARD_DEBUG_UART_TX_PORT PORTI /*!<@brief PORT device name: PORTI */
132 #define BOARD_DEBUG_UART_TX_PIN 7U     /*!<@brief PORTI pin index: 7 */
133                                        /* @} */
134 
135 /*! @name PORTI6 (number 6), UART2_RX
136   @{ */
137 #define BOARD_DEBUG_UART_RX_PORT PORTI /*!<@brief PORT device name: PORTI */
138 #define BOARD_DEBUG_UART_RX_PIN 6U     /*!<@brief PORTI pin index: 6 */
139                                        /* @} */
140 
141 /*!
142  * @brief Configures pin routing and optionally pin electrical features.
143  *
144  */
145 void BOARD_InitDEBUG_UARTPins(void);
146 
147 /*! @name PORTE3 (number 85), J7[2]/Y2[1]/XTAL_8MHz
148   @{ */
149 #define BOARD_XTAL0_PORT PORTE /*!<@brief PORT device name: PORTE */
150 #define BOARD_XTAL0_PIN 3U     /*!<@brief PORTE pin index: 3 */
151                                /* @} */
152 
153 /*! @name PORTE2 (number 84), J4[2]/Y2[3]/EXTAL_8MHz
154   @{ */
155 #define BOARD_EXTAL0_PORT PORTE /*!<@brief PORT device name: PORTE */
156 #define BOARD_EXTAL0_PIN 2U     /*!<@brief PORTE pin index: 2 */
157                                 /* @} */
158 
159 /*! @name XTAL32 (number 33), Y1[1]/XTAL_32K
160   @{ */
161 /* @} */
162 
163 /*! @name EXTAL32 (number 34), Y1[2]/EXTAL_32K
164   @{ */
165 /* @} */
166 
167 /*!
168  * @brief Configures pin routing and optionally pin electrical features.
169  *
170  */
171 void BOARD_InitOSCPins(void);
172 
173 /*! @name PORTG4 (number 114), J32[B10]/J15[1]/U4[5]/SPI0_MOSI
174   @{ */
175 #define BOARD_FLASH_SI_PORT PORTG /*!<@brief PORT device name: PORTG */
176 #define BOARD_FLASH_SI_PIN 4U     /*!<@brief PORTG pin index: 4 */
177                                   /* @} */
178 
179 /*! @name PORTG5 (number 115), J32[B11]/J13[2]/U4[2]/SPI0_MISO
180   @{ */
181 #define BOARD_FLASH_SO_PORT PORTG /*!<@brief PORT device name: PORTG */
182 #define BOARD_FLASH_SO_PIN 5U     /*!<@brief PORTG pin index: 5 */
183                                   /* @} */
184 
185 /*! @name PORTG3 (number 113), J32[B7]/J12[1]/U4[6]/SPI0_SCK
186   @{ */
187 #define BOARD_FLASH_CLK_PORT PORTG /*!<@brief PORT device name: PORTG */
188 #define BOARD_FLASH_CLK_PIN 3U     /*!<@brief PORTG pin index: 3 */
189                                    /* @} */
190 
191 /*! @name PORTG2 (number 112), J32[B9]/J9[2]/U4[1]/SPI0_PCS0
192   @{ */
193 #define BOARD_FLASH_CS_PORT PORTG /*!<@brief PORT device name: PORTG */
194 #define BOARD_FLASH_CS_PIN 2U     /*!<@brief PORTG pin index: 2 */
195                                   /* @} */
196 
197 /*!
198  * @brief Configures pin routing and optionally pin electrical features.
199  *
200  */
201 void BOARD_InitSPI_FLASHPins(void);
202 
203 /*!
204  * @brief
205  * UART0 IrDA Select: UART0 selected for IrDA modulation.
206  * UART0 TX modulated by XBAR_OUT[14] and UART0 RX input connected to XBAR_OUT[13].
207  * UARTxIRSEL cannot configure XBAR_OUT[14] and XBAR_OUT[13] automatically, and they need extra configuration in
208  * XBAR.
209  * User should configure XBAR[14:13] accordingly.
210  */
211 #define MISC_CTL_UART0IRSEL_0b1 0x01u
212 /*!
213  * @brief UART Modulation Type: TypeB (AND'ed) Modulation selected for IrDA */
214 #define MISC_CTL_UARTMODTYPE_0b1 0x01u
215 
216 /*! @name PORTL2 (number 129), J18[1]/J25[23]/IRDTJ/XBAR0_OUT10
217   @{ */
218 #define BOARD_IR_TX_PORT PORTL /*!<@brief PORT device name: PORTL */
219 #define BOARD_IR_TX_PIN 2U     /*!<@brief PORTL pin index: 2 */
220                                /* @} */
221 
222 /*! @name PORTD0 (number 61), J17[2]/J19[1]/J25[17]/D5/ORANGE/IRDRJ/CMP0_IN0
223   @{ */
224 #define BOARD_IR_RX_PORT PORTD /*!<@brief PORT device name: PORTD */
225 #define BOARD_IR_RX_PIN 0U     /*!<@brief PORTD pin index: 0 */
226                                /* @} */
227 
228 /*!
229  * @brief Configures pin routing and optionally pin electrical features.
230  *
231  */
232 void BOARD_InitInfra_RedPins(void);
233 
234 /*! @name PORTF1 (number 95), J21[1]/POT_5K
235   @{ */
236 #define BOARD_ADC_POT_PORT PORTF /*!<@brief PORT device name: PORTF */
237 #define BOARD_ADC_POT_PIN 1U     /*!<@brief PORTF pin index: 1 */
238                                  /* @} */
239 
240 /*!
241  * @brief Configures pin routing and optionally pin electrical features.
242  *
243  */
244 void BOARD_InitPotentiometerPins(void);
245 
246 /*! @name PORTF2 (number 96), J20[1]/TEMP_SENSE
247   @{ */
248 #define BOARD_ADC_TEMP_PORT PORTF /*!<@brief PORT device name: PORTF */
249 #define BOARD_ADC_TEMP_PIN 2U     /*!<@brief PORTF pin index: 2 */
250                                   /* @} */
251 
252 /*!
253  * @brief Configures pin routing and optionally pin electrical features.
254  *
255  */
256 void BOARD_InitTemp_sensorPins(void);
257 
258 /*! @name PORTB7 (number 26), DS1[1]/LCD_P38
259   @{ */
260 #define BOARD_LCD_P38_PORT PORTB /*!<@brief PORT device name: PORTB */
261 #define BOARD_LCD_P38_PIN 7U     /*!<@brief PORTB pin index: 7 */
262                                  /* @} */
263 
264 /*! @name PORTB5 (number 24), DS1[2]/LCD_P36
265   @{ */
266 #define BOARD_LCD_P36_PORT PORTB /*!<@brief PORT device name: PORTB */
267 #define BOARD_LCD_P36_PIN 5U     /*!<@brief PORTB pin index: 5 */
268                                  /* @} */
269 
270 /*! @name PORTB3 (number 22), DS1[3]/LCD_P34
271   @{ */
272 #define BOARD_LCD_P34_PORT PORTB /*!<@brief PORT device name: PORTB */
273 #define BOARD_LCD_P34_PIN 3U     /*!<@brief PORTB pin index: 3 */
274                                  /* @} */
275 
276 /*! @name PORTB1 (number 20), DS1[4]/LCD_P32
277   @{ */
278 #define BOARD_LCD_P32_PORT PORTB /*!<@brief PORT device name: PORTB */
279 #define BOARD_LCD_P32_PIN 1U     /*!<@brief PORTB pin index: 1 */
280                                  /* @} */
281 
282 /*! @name PORTB0 (number 16), DS1[5]/LCD_P31
283   @{ */
284 #define BOARD_LCD_P31_PORT PORTB /*!<@brief PORT device name: PORTB */
285 #define BOARD_LCD_P31_PIN 0U     /*!<@brief PORTB pin index: 0 */
286                                  /* @} */
287 
288 /*! @name PORTA6 (number 12), DS1[6]/LCD_P29
289   @{ */
290 #define BOARD_LCD_P29_PORT PORTA /*!<@brief PORT device name: PORTA */
291 #define BOARD_LCD_P29_PIN 6U     /*!<@brief PORTA pin index: 6 */
292                                  /* @} */
293 
294 /*! @name PORTA2 (number 8), DS1[7]/LCD_P25
295   @{ */
296 #define BOARD_LCD_P25_PORT PORTA /*!<@brief PORT device name: PORTA */
297 #define BOARD_LCD_P25_PIN 2U     /*!<@brief PORTA pin index: 2 */
298                                  /* @} */
299 
300 /*! @name PORTA0 (number 4), DS1[8]/LCD_P23
301   @{ */
302 #define BOARD_LCD_P23_PORT PORTA /*!<@brief PORT device name: PORTA */
303 #define BOARD_LCD_P23_PIN 0U     /*!<@brief PORTA pin index: 0 */
304                                  /* @} */
305 
306 /*! @name PORTC4 (number 31), DS1[9]/LCD_P43
307   @{ */
308 #define BOARD_LCD_P43_PORT PORTC /*!<@brief PORT device name: PORTC */
309 #define BOARD_LCD_P43_PIN 4U     /*!<@brief PORTC pin index: 4 */
310                                  /* @} */
311 
312 /*! @name PORTB6 (number 25), DS1[10]/LCD_P37
313   @{ */
314 #define BOARD_LCD_P37_PORT PORTB /*!<@brief PORT device name: PORTB */
315 #define BOARD_LCD_P37_PIN 6U     /*!<@brief PORTB pin index: 6 */
316                                  /* @} */
317 
318 /*! @name PORTB4 (number 23), DS1[11]/LCD_P35
319   @{ */
320 #define BOARD_LCD_P35_PORT PORTB /*!<@brief PORT device name: PORTB */
321 #define BOARD_LCD_P35_PIN 4U     /*!<@brief PORTB pin index: 4 */
322                                  /* @} */
323 
324 /*! @name PORTB2 (number 21), DS1[12]/LCD_P33
325   @{ */
326 #define BOARD_LCD_P33_PORT PORTB /*!<@brief PORT device name: PORTB */
327 #define BOARD_LCD_P33_PIN 2U     /*!<@brief PORTB pin index: 2 */
328                                  /* @} */
329 
330 /*! @name PORTJ2 (number 17), DS1[13]/LCD_P50
331   @{ */
332 #define BOARD_LCD_P50_PORT PORTJ /*!<@brief PORT device name: PORTJ */
333 #define BOARD_LCD_P50_PIN 2U     /*!<@brief PORTJ pin index: 2 */
334                                  /* @} */
335 
336 /*! @name PORTA7 (number 13), DS1[14]/LCD_P30
337   @{ */
338 #define BOARD_LCD_P30_PORT PORTA /*!<@brief PORT device name: PORTA */
339 #define BOARD_LCD_P30_PIN 7U     /*!<@brief PORTA pin index: 7 */
340                                  /* @} */
341 
342 /*! @name PORTI5 (number 3), DS1[15]/LCD_P45
343   @{ */
344 #define BOARD_LCD_P45_PORT PORTI /*!<@brief PORT device name: PORTI */
345 #define BOARD_LCD_P45_PIN 5U     /*!<@brief PORTI pin index: 5 */
346                                  /* @} */
347 
348 /*! @name PORTA1 (number 5), DS1[16]/LCD_P24
349   @{ */
350 #define BOARD_LCD_P24_PORT PORTA /*!<@brief PORT device name: PORTA */
351 #define BOARD_LCD_P24_PIN 1U     /*!<@brief PORTA pin index: 1 */
352                                  /* @} */
353 
354 /*! @name PORTA3 (number 9), DS1[17]/LCD_P26
355   @{ */
356 #define BOARD_LCD_P26_PORT PORTA /*!<@brief PORT device name: PORTA */
357 #define BOARD_LCD_P26_PIN 3U     /*!<@brief PORTA pin index: 3 */
358                                  /* @} */
359 
360 /*! @name PORTA5 (number 11), DS1[18]/LCD_P28
361   @{ */
362 #define BOARD_LCD_P28_PORT PORTA /*!<@brief PORT device name: PORTA */
363 #define BOARD_LCD_P28_PIN 5U     /*!<@brief PORTA pin index: 5 */
364                                  /* @} */
365 
366 /*! @name PORTI4 (number 143), DS1[19]/LCD_P44
367   @{ */
368 #define BOARD_LCD_P44_PORT PORTI /*!<@brief PORT device name: PORTI */
369 #define BOARD_LCD_P44_PIN 4U     /*!<@brief PORTI pin index: 4 */
370                                  /* @} */
371 
372 /*! @name PORTL6 (number 142), DS1[20]/LCD_P59
373   @{ */
374 #define BOARD_LCD_P59_PORT PORTL /*!<@brief PORT device name: PORTL */
375 #define BOARD_LCD_P59_PIN 6U     /*!<@brief PORTL pin index: 6 */
376                                  /* @} */
377 
378 /*! @name PORTL4 (number 140), DS1[21]/LCD_P57
379   @{ */
380 #define BOARD_LCD_P57_PORT PORTL /*!<@brief PORT device name: PORTL */
381 #define BOARD_LCD_P57_PIN 4U     /*!<@brief PORTL pin index: 4 */
382                                  /* @} */
383 
384 /*! @name PORTH4 (number 122), DS1[22]/LCD_P19
385   @{ */
386 #define BOARD_LCD_P19_PORT PORTH /*!<@brief PORT device name: PORTH */
387 #define BOARD_LCD_P19_PIN 4U     /*!<@brief PORTH pin index: 4 */
388                                  /* @} */
389 
390 /*! @name PORTG6 (number 116), DS1[23]/LCD_P13
391   @{ */
392 #define BOARD_LCD_P13_PORT PORTG /*!<@brief PORT device name: PORTG */
393 #define BOARD_LCD_P13_PIN 6U     /*!<@brief PORTG pin index: 6 */
394                                  /* @} */
395 
396 /*! @name PORTL5 (number 141), DS1[24]/LCD_P58
397   @{ */
398 #define BOARD_LCD_P58_PORT PORTL /*!<@brief PORT device name: PORTL */
399 #define BOARD_LCD_P58_PIN 5U     /*!<@brief PORTL pin index: 5 */
400                                  /* @} */
401 
402 /*! @name PORTL3 (number 139), DS1[25]/LCD_P56
403   @{ */
404 #define BOARD_LCD_P56_PORT PORTL /*!<@brief PORT device name: PORTL */
405 #define BOARD_LCD_P56_PIN 3U     /*!<@brief PORTL pin index: 3 */
406                                  /* @} */
407 
408 /*! @name PORTI3 (number 131), DS1[26]/LCD_P22
409   @{ */
410 #define BOARD_LCD_P22_PORT PORTI /*!<@brief PORT device name: PORTI */
411 #define BOARD_LCD_P22_PIN 3U     /*!<@brief PORTI pin index: 3 */
412                                  /* @} */
413 
414 /*! @name PORTH5 (number 123), DS1[27]/LCD_P20
415   @{ */
416 #define BOARD_LCD_P20_PORT PORTH /*!<@brief PORT device name: PORTH */
417 #define BOARD_LCD_P20_PIN 5U     /*!<@brief PORTH pin index: 5 */
418                                  /* @} */
419 
420 /*! @name PORTG7 (number 117), DS1[28]/LCD_P14
421   @{ */
422 #define BOARD_LCD_P14_PORT PORTG /*!<@brief PORT device name: PORTG */
423 #define BOARD_LCD_P14_PIN 7U     /*!<@brief PORTG pin index: 7 */
424                                  /* @} */
425 
426 /*!
427  * @brief Configures pin routing and optionally pin electrical features.
428  *
429  */
430 void BOARD_InitLCDPins(void);
431 
432 #if defined(__cplusplus)
433 }
434 #endif
435 
436 /*!
437  * @}
438  */
439 #endif /* _PIN_MUX_H_ */
440 
441 /***********************************************************************************************************************
442  * EOF
443  **********************************************************************************************************************/
444