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 PORTD0 (number 47), J31[6]/AFE_SDADP1 42 @{ */ 43 44 /* Symbols to be used with GPIO driver */ 45 #define BOARD_SW1_GPIO GPIOD /*!<@brief GPIO peripheral base pointer */ 46 #define BOARD_SW1_GPIO_PIN_MASK (1U << 0U) /*!<@brief GPIO pin mask */ 47 48 /* Symbols to be used with PORT driver */ 49 #define BOARD_SW1_PORT PORTD /*!<@brief PORT peripheral base pointer */ 50 #define BOARD_SW1_PIN 0U /*!<@brief PORT pin number */ 51 #define BOARD_SW1_PIN_MASK (1U << 0U) /*!<@brief PORT pin mask */ 52 /* @} */ 53 54 /*! @name PORTE4 (number 63), D4/RED 55 @{ */ 56 57 /* Symbols to be used with GPIO driver */ 58 #define BOARD_SW2_GPIO GPIOE /*!<@brief GPIO peripheral base pointer */ 59 #define BOARD_SW2_GPIO_PIN_MASK (1U << 4U) /*!<@brief GPIO pin mask */ 60 61 /* Symbols to be used with PORT driver */ 62 #define BOARD_SW2_PORT PORTE /*!<@brief PORT peripheral base pointer */ 63 #define BOARD_SW2_PIN 4U /*!<@brief PORT pin number */ 64 #define BOARD_SW2_PIN_MASK (1U << 4U) /*!<@brief PORT pin mask */ 65 /* @} */ 66 67 /*! 68 * @brief Configures pin routing and optionally pin electrical features. 69 * 70 */ 71 void BOARD_InitButtonsPins(void); 72 73 /*! @name PORTE5 (number 64), J32[B35] 74 @{ */ 75 76 /* Symbols to be used with GPIO driver */ 77 #define BOARD_LED_GREEN_GPIO GPIOE /*!<@brief GPIO peripheral base pointer */ 78 #define BOARD_LED_GREEN_GPIO_PIN_MASK (1U << 5U) /*!<@brief GPIO pin mask */ 79 80 /* Symbols to be used with PORT driver */ 81 #define BOARD_LED_GREEN_PORT PORTE /*!<@brief PORT peripheral base pointer */ 82 #define BOARD_LED_GREEN_PIN 5U /*!<@brief PORT pin number */ 83 #define BOARD_LED_GREEN_PIN_MASK (1U << 5U) /*!<@brief PORT pin mask */ 84 /* @} */ 85 86 /*! @name PORTF1 (number 68), J23[15] 87 @{ */ 88 89 /* Symbols to be used with GPIO driver */ 90 #define BOARD_LED_RED_GPIO GPIOF /*!<@brief GPIO peripheral base pointer */ 91 #define BOARD_LED_RED_GPIO_PIN_MASK (1U << 1U) /*!<@brief GPIO pin mask */ 92 93 /* Symbols to be used with PORT driver */ 94 #define BOARD_LED_RED_PORT PORTF /*!<@brief PORT peripheral base pointer */ 95 #define BOARD_LED_RED_PIN 1U /*!<@brief PORT pin number */ 96 #define BOARD_LED_RED_PIN_MASK (1U << 1U) /*!<@brief PORT pin mask */ 97 /* @} */ 98 99 /*! @name PORTD1 (number 48), J31[8]/AFE_SDADM1 100 @{ */ 101 102 /* Symbols to be used with GPIO driver */ 103 #define BOARD_LED_ORANGE_GPIO GPIOD /*!<@brief GPIO peripheral base pointer */ 104 #define BOARD_LED_ORANGE_GPIO_PIN_MASK (1U << 1U) /*!<@brief GPIO pin mask */ 105 106 /* Symbols to be used with PORT driver */ 107 #define BOARD_LED_ORANGE_PORT PORTD /*!<@brief PORT peripheral base pointer */ 108 #define BOARD_LED_ORANGE_PIN 1U /*!<@brief PORT pin number */ 109 #define BOARD_LED_ORANGE_PIN_MASK (1U << 1U) /*!<@brief PORT pin mask */ 110 /* @} */ 111 112 /*! 113 * @brief Configures pin routing and optionally pin electrical features. 114 * 115 */ 116 void BOARD_InitLEDsPins(void); 117 118 /*! 119 * @brief Configures pin routing and optionally pin electrical features. 120 * 121 */ 122 void BOARD_InitACCELPins(void); 123 124 /*! 125 * @brief 126 * UART1 IRDA Select: Pad RX input (PTD[2] or PTI[0], as selected in Pinmux control) selected for RX input of 127 * UART1 and UART1 TX signal is not used for modulation. 128 */ 129 #define MISC_CTL_UART1IRSEL_0b0 0x00u 130 131 /*! 132 * @brief Configures pin routing and optionally pin electrical features. 133 * 134 */ 135 void BOARD_InitDEBUG_UARTPins(void); 136 137 /*! @name PORTE3 (number 58), J7[2]/Y2[1]/XTAL_8MHz 138 @{ */ 139 140 /* Symbols to be used with PORT driver */ 141 #define BOARD_XTAL0_PORT PORTE /*!<@brief PORT peripheral base pointer */ 142 #define BOARD_XTAL0_PIN 3U /*!<@brief PORT pin number */ 143 #define BOARD_XTAL0_PIN_MASK (1U << 3U) /*!<@brief PORT pin mask */ 144 /* @} */ 145 146 /*! @name EXTAL32K (number 26), Y1[2]/EXTAL_32K_KM38 147 @{ */ 148 /* @} */ 149 150 /*! 151 * @brief Configures pin routing and optionally pin electrical features. 152 * 153 */ 154 void BOARD_InitOSCPins(void); 155 156 /*! @name PORTF6 (number 73), GND 157 @{ */ 158 159 /* Symbols to be used with PORT driver */ 160 #define BOARD_FLASH_SI_PORT PORTF /*!<@brief PORT peripheral base pointer */ 161 #define BOARD_FLASH_SI_PIN 6U /*!<@brief PORT pin number */ 162 #define BOARD_FLASH_SI_PIN_MASK (1U << 6U) /*!<@brief PORT pin mask */ 163 /* @} */ 164 165 /*! @name PORTF5 (number 72), GND 166 @{ */ 167 168 /* Symbols to be used with PORT driver */ 169 #define BOARD_FLASH_SO_PORT PORTF /*!<@brief PORT peripheral base pointer */ 170 #define BOARD_FLASH_SO_PIN 5U /*!<@brief PORT pin number */ 171 #define BOARD_FLASH_SO_PIN_MASK (1U << 5U) /*!<@brief PORT pin mask */ 172 /* @} */ 173 174 /*! @name PORTF4 (number 71), GND 175 @{ */ 176 177 /* Symbols to be used with PORT driver */ 178 #define BOARD_FLASH_CLK_PORT PORTF /*!<@brief PORT peripheral base pointer */ 179 #define BOARD_FLASH_CLK_PIN 4U /*!<@brief PORT pin number */ 180 #define BOARD_FLASH_CLK_PIN_MASK (1U << 4U) /*!<@brief PORT pin mask */ 181 /* @} */ 182 183 /*! @name PORTF3 (number 70), J22[12]/TWRPI-ADC2 184 @{ */ 185 186 /* Symbols to be used with PORT driver */ 187 #define BOARD_FLASH_CS_PORT PORTF /*!<@brief PORT peripheral base pointer */ 188 #define BOARD_FLASH_CS_PIN 3U /*!<@brief PORT pin number */ 189 #define BOARD_FLASH_CS_PIN_MASK (1U << 3U) /*!<@brief PORT pin mask */ 190 /* @} */ 191 192 /*! 193 * @brief Configures pin routing and optionally pin electrical features. 194 * 195 */ 196 void BOARD_InitSPI_FLASHPins(void); 197 198 /*! 199 * @brief 200 * UART0 IRDA Select: UART0 selected for IRDA modulation. 201 * UART0 TX modulated by XBAR_OUT[14] and UART0 RX input connected to XBAR_OUT[13]. 202 */ 203 #define MISC_CTL_UART0IRSEL_0b1 0x01u 204 /*! 205 * @brief UART Modulation Type: TypeB (ANDed) Modulation selected for IRDA */ 206 #define MISC_CTL_UARTMODTYPE_0b1 0x01u 207 208 /*! 209 * @brief Configures pin routing and optionally pin electrical features. 210 * 211 */ 212 void BOARD_InitInfra_RedPins(void); 213 214 /*! 215 * @brief Configures pin routing and optionally pin electrical features. 216 * 217 */ 218 void BOARD_InitPotentiometerPins(void); 219 220 /*! 221 * @brief Configures pin routing and optionally pin electrical features. 222 * 223 */ 224 void BOARD_InitTemp_sensorPins(void); 225 226 /*! @name PORTB5 (number 16), DS1[2]/LCD_P36 227 @{ */ 228 229 /* Symbols to be used with PORT driver */ 230 #define BOARD_LCD_P36_PORT PORTB /*!<@brief PORT peripheral base pointer */ 231 #define BOARD_LCD_P36_PIN 5U /*!<@brief PORT pin number */ 232 #define BOARD_LCD_P36_PIN_MASK (1U << 5U) /*!<@brief PORT pin mask */ 233 /* @} */ 234 235 /*! @name PORTB3 (number 14), J23[4]/I2C1_SDA 236 @{ */ 237 238 /* Symbols to be used with PORT driver */ 239 #define BOARD_LCD_P34_PORT PORTB /*!<@brief PORT peripheral base pointer */ 240 #define BOARD_LCD_P34_PIN 3U /*!<@brief PORT pin number */ 241 #define BOARD_LCD_P34_PIN_MASK (1U << 3U) /*!<@brief PORT pin mask */ 242 /* @} */ 243 244 /*! @name PORTB1 (number 12), DS1[4]/LCD_P32 245 @{ */ 246 247 /* Symbols to be used with PORT driver */ 248 #define BOARD_LCD_P32_PORT PORTB /*!<@brief PORT peripheral base pointer */ 249 #define BOARD_LCD_P32_PIN 1U /*!<@brief PORT pin number */ 250 #define BOARD_LCD_P32_PIN_MASK (1U << 1U) /*!<@brief PORT pin mask */ 251 /* @} */ 252 253 /*! @name PORTB0 (number 9), DS1[5]/LCD_P31 254 @{ */ 255 256 /* Symbols to be used with PORT driver */ 257 #define BOARD_LCD_P31_PORT PORTB /*!<@brief PORT peripheral base pointer */ 258 #define BOARD_LCD_P31_PIN 0U /*!<@brief PORT pin number */ 259 #define BOARD_LCD_P31_PIN_MASK (1U << 0U) /*!<@brief PORT pin mask */ 260 /* @} */ 261 262 /*! @name PORTA2 (number 3), DS1[15]/LCD_P45 263 @{ */ 264 265 /* Symbols to be used with PORT driver */ 266 #define BOARD_LCD_P45_PORT PORTA /*!<@brief PORT peripheral base pointer */ 267 #define BOARD_LCD_P45_PIN 2U /*!<@brief PORT pin number */ 268 #define BOARD_LCD_P45_PIN_MASK (1U << 2U) /*!<@brief PORT pin mask */ 269 /* @} */ 270 271 /*! @name PORTA0 (number 1), GND 272 @{ */ 273 274 /* Symbols to be used with PORT driver */ 275 #define BOARD_LCD_P23_PORT PORTA /*!<@brief PORT peripheral base pointer */ 276 #define BOARD_LCD_P23_PIN 0U /*!<@brief PORT pin number */ 277 #define BOARD_LCD_P23_PIN_MASK (1U << 0U) /*!<@brief PORT pin mask */ 278 /* @} */ 279 280 /*! @name PORTC4 (number 23), DS1[9]/LCD_P43 281 @{ */ 282 283 /* Symbols to be used with PORT driver */ 284 #define BOARD_LCD_P43_PORT PORTC /*!<@brief PORT peripheral base pointer */ 285 #define BOARD_LCD_P43_PIN 4U /*!<@brief PORT pin number */ 286 #define BOARD_LCD_P43_PIN_MASK (1U << 4U) /*!<@brief PORT pin mask */ 287 /* @} */ 288 289 /*! @name PORTB6 (number 17), DS1[13]/LCD_P50 290 @{ */ 291 292 /* Symbols to be used with PORT driver */ 293 #define BOARD_LCD_P50_PORT PORTB /*!<@brief PORT peripheral base pointer */ 294 #define BOARD_LCD_P50_PIN 6U /*!<@brief PORT pin number */ 295 #define BOARD_LCD_P50_PIN_MASK (1U << 6U) /*!<@brief PORT pin mask */ 296 /* @} */ 297 298 /*! @name PORTB4 (number 15), J23[3]/I2C1_SCL 299 @{ */ 300 301 /* Symbols to be used with PORT driver */ 302 #define BOARD_LCD_P35_PORT PORTB /*!<@brief PORT peripheral base pointer */ 303 #define BOARD_LCD_P35_PIN 4U /*!<@brief PORT pin number */ 304 #define BOARD_LCD_P35_PIN_MASK (1U << 4U) /*!<@brief PORT pin mask */ 305 /* @} */ 306 307 /*! @name PORTB2 (number 13), DS1[12]/LCD_P33 308 @{ */ 309 310 /* Symbols to be used with PORT driver */ 311 #define BOARD_LCD_P33_PORT PORTB /*!<@brief PORT peripheral base pointer */ 312 #define BOARD_LCD_P33_PIN 2U /*!<@brief PORT pin number */ 313 #define BOARD_LCD_P33_PIN_MASK (1U << 2U) /*!<@brief PORT pin mask */ 314 /* @} */ 315 316 /*! @name PORTA1 (number 2), GND 317 @{ */ 318 319 /* Symbols to be used with PORT driver */ 320 #define BOARD_LCD_P24_PORT PORTA /*!<@brief PORT peripheral base pointer */ 321 #define BOARD_LCD_P24_PIN 1U /*!<@brief PORT pin number */ 322 #define BOARD_LCD_P24_PIN_MASK (1U << 1U) /*!<@brief PORT pin mask */ 323 /* @} */ 324 325 /*! @name PORTA3 (number 4), DS1[17]/LCD_P26 326 @{ */ 327 328 /* Symbols to be used with PORT driver */ 329 #define BOARD_LCD_P26_PORT PORTA /*!<@brief PORT peripheral base pointer */ 330 #define BOARD_LCD_P26_PIN 3U /*!<@brief PORT pin number */ 331 #define BOARD_LCD_P26_PIN_MASK (1U << 3U) /*!<@brief PORT pin mask */ 332 /* @} */ 333 334 /*! @name PORTH4 (number 87), DS1[22]/LCD_P19 335 @{ */ 336 337 /* Symbols to be used with PORT driver */ 338 #define BOARD_LCD_P19_PORT PORTH /*!<@brief PORT peripheral base pointer */ 339 #define BOARD_LCD_P19_PIN 4U /*!<@brief PORT pin number */ 340 #define BOARD_LCD_P19_PIN_MASK (1U << 4U) /*!<@brief PORT pin mask */ 341 /* @} */ 342 343 /*! @name PORTG6 (number 81), J25[22]/UART0_TX 344 @{ */ 345 346 /* Symbols to be used with PORT driver */ 347 #define BOARD_LCD_P13_PORT PORTG /*!<@brief PORT peripheral base pointer */ 348 #define BOARD_LCD_P13_PIN 6U /*!<@brief PORT pin number */ 349 #define BOARD_LCD_P13_PIN_MASK (1U << 6U) /*!<@brief PORT pin mask */ 350 /* @} */ 351 352 /*! @name PORTI3 (number 94), DS1[26]/LCD_P22 353 @{ */ 354 355 /* Symbols to be used with PORT driver */ 356 #define BOARD_LCD_P22_PORT PORTI /*!<@brief PORT peripheral base pointer */ 357 #define BOARD_LCD_P22_PIN 3U /*!<@brief PORT pin number */ 358 #define BOARD_LCD_P22_PIN_MASK (1U << 3U) /*!<@brief PORT pin mask */ 359 /* @} */ 360 361 /*! @name PORTH5 (number 88), DS1[27]/LCD_P20 362 @{ */ 363 364 /* Symbols to be used with PORT driver */ 365 #define BOARD_LCD_P20_PORT PORTH /*!<@brief PORT peripheral base pointer */ 366 #define BOARD_LCD_P20_PIN 5U /*!<@brief PORT pin number */ 367 #define BOARD_LCD_P20_PIN_MASK (1U << 5U) /*!<@brief PORT pin mask */ 368 /* @} */ 369 370 /*! @name PORTG7 (number 82), J25[24]/UART0_RX 371 @{ */ 372 373 /* Symbols to be used with PORT driver */ 374 #define BOARD_LCD_P14_PORT PORTG /*!<@brief PORT peripheral base pointer */ 375 #define BOARD_LCD_P14_PIN 7U /*!<@brief PORT pin number */ 376 #define BOARD_LCD_P14_PIN_MASK (1U << 7U) /*!<@brief PORT pin mask */ 377 /* @} */ 378 379 /*! @name PORTG2 (number 77), J32[B9]/J9[2]/U4[1]/SPI0_PCS0 380 @{ */ 381 382 /* Symbols to be used with PORT driver */ 383 #define BOARD_LCD_P9_PORT PORTG /*!<@brief PORT peripheral base pointer */ 384 #define BOARD_LCD_P9_PIN 2U /*!<@brief PORT pin number */ 385 #define BOARD_LCD_P9_PIN_MASK (1U << 2U) /*!<@brief PORT pin mask */ 386 /* @} */ 387 388 /*! @name PORTG3 (number 78), J32[B7]/J12[1]/U4[6]/SPI0_SCK 389 @{ */ 390 391 /* Symbols to be used with PORT driver */ 392 #define BOARD_LCD_P10_PORT PORTG /*!<@brief PORT peripheral base pointer */ 393 #define BOARD_LCD_P10_PIN 3U /*!<@brief PORT pin number */ 394 #define BOARD_LCD_P10_PIN_MASK (1U << 3U) /*!<@brief PORT pin mask */ 395 /* @} */ 396 397 /*! @name PORTG5 (number 80), J32[B11]/J13[2]/U4[2]/SPI0_MISO 398 @{ */ 399 400 /* Symbols to be used with PORT driver */ 401 #define BOARD_LCD_P12_PORT PORTG /*!<@brief PORT peripheral base pointer */ 402 #define BOARD_LCD_P12_PIN 5U /*!<@brief PORT pin number */ 403 #define BOARD_LCD_P12_PIN_MASK (1U << 5U) /*!<@brief PORT pin mask */ 404 /* @} */ 405 406 /*! @name PORTH0 (number 83), J32[B55]/J32[B56] 407 @{ */ 408 409 /* Symbols to be used with PORT driver */ 410 #define BOARD_LCD_P15_PORT PORTH /*!<@brief PORT peripheral base pointer */ 411 #define BOARD_LCD_P15_PIN 0U /*!<@brief PORT pin number */ 412 #define BOARD_LCD_P15_PIN_MASK (1U << 0U) /*!<@brief PORT pin mask */ 413 /* @} */ 414 415 /*! @name PORTH1 (number 84), J32[B57]/J32[B58] 416 @{ */ 417 418 /* Symbols to be used with PORT driver */ 419 #define BOARD_LCD_P16_PORT PORTH /*!<@brief PORT peripheral base pointer */ 420 #define BOARD_LCD_P16_PIN 1U /*!<@brief PORT pin number */ 421 #define BOARD_LCD_P16_PIN_MASK (1U << 1U) /*!<@brief PORT pin mask */ 422 /* @} */ 423 424 /*! @name PORTH2 (number 85), J32[B59]/J32[B60] 425 @{ */ 426 427 /* Symbols to be used with PORT driver */ 428 #define BOARD_LCD_P17_PORT PORTH /*!<@brief PORT peripheral base pointer */ 429 #define BOARD_LCD_P17_PIN 2U /*!<@brief PORT pin number */ 430 #define BOARD_LCD_P17_PIN_MASK (1U << 2U) /*!<@brief PORT pin mask */ 431 /* @} */ 432 433 /*! @name PORTH3 (number 86), GND 434 @{ */ 435 436 /* Symbols to be used with PORT driver */ 437 #define BOARD_LCD_P18_PORT PORTH /*!<@brief PORT peripheral base pointer */ 438 #define BOARD_LCD_P18_PIN 3U /*!<@brief PORT pin number */ 439 #define BOARD_LCD_P18_PIN_MASK (1U << 3U) /*!<@brief PORT pin mask */ 440 /* @} */ 441 442 /*! @name PORTI2 (number 93), J32[B23] 443 @{ */ 444 445 /* Symbols to be used with PORT driver */ 446 #define BOARD_LCD_P21_PORT PORTI /*!<@brief PORT peripheral base pointer */ 447 #define BOARD_LCD_P21_PIN 2U /*!<@brief PORT pin number */ 448 #define BOARD_LCD_P21_PIN_MASK (1U << 2U) /*!<@brief PORT pin mask */ 449 /* @} */ 450 451 /*! @name PORTG4 (number 79), J32[B10]/J15[1]/U4[5]/SPI0_MOSI 452 @{ */ 453 454 /* Symbols to be used with PORT driver */ 455 #define BOARD_LCD_P11_PORT PORTG /*!<@brief PORT peripheral base pointer */ 456 #define BOARD_LCD_P11_PIN 4U /*!<@brief PORT pin number */ 457 #define BOARD_LCD_P11_PIN_MASK (1U << 4U) /*!<@brief PORT pin mask */ 458 /* @} */ 459 460 /*! @name PORTA4 (number 5), SW1 461 @{ */ 462 463 /* Symbols to be used with PORT driver */ 464 #define BOARD_LCD_P27_PORT PORTA /*!<@brief PORT peripheral base pointer */ 465 #define BOARD_LCD_P27_PIN 4U /*!<@brief PORT pin number */ 466 #define BOARD_LCD_P27_PIN_MASK (1U << 4U) /*!<@brief PORT pin mask */ 467 /* @} */ 468 469 /*! @name PORTA5 (number 6), DS1[18]/LCD_P28 470 @{ */ 471 472 /* Symbols to be used with PORT driver */ 473 #define BOARD_LCD_P28_PORT PORTA /*!<@brief PORT peripheral base pointer */ 474 #define BOARD_LCD_P28_PIN 5U /*!<@brief PORT pin number */ 475 #define BOARD_LCD_P28_PIN_MASK (1U << 5U) /*!<@brief PORT pin mask */ 476 /* @} */ 477 478 /*! 479 * @brief Configures pin routing and optionally pin electrical features. 480 * 481 */ 482 void BOARD_InitLCDPins(void); 483 484 #if defined(__cplusplus) 485 } 486 #endif 487 488 /*! 489 * @} 490 */ 491 #endif /* _PIN_MUX_H_ */ 492 493 /*********************************************************************************************************************** 494 * EOF 495 **********************************************************************************************************************/ 496