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 PORTA13 (number 29), J1[10]/D4-TPM1_CH1/D4-LED_BLUE 42 @{ */ 43 #define BOARD_LED_BLUE_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */ 44 #define BOARD_LED_BLUE_PORT PORTA /*!<@brief PORT device name: PORTA */ 45 #define BOARD_LED_BLUE_PIN 13U /*!<@brief PORTA pin index: 13 */ 46 /* @} */ 47 48 /*! @name PORTB18 (number 41), J2[11]/D11[1]/LED_RED 49 @{ */ 50 #define BOARD_LED_RED_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */ 51 #define BOARD_LED_RED_PORT PORTB /*!<@brief PORT device name: PORTB */ 52 #define BOARD_LED_RED_PIN 18U /*!<@brief PORTB pin index: 18 */ 53 /* @} */ 54 55 /*! @name PORTB19 (number 42), J2[13]/D11[4]/LED_GREEN 56 @{ */ 57 #define BOARD_LED_GREEN_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */ 58 #define BOARD_LED_GREEN_PORT PORTB /*!<@brief PORT device name: PORTB */ 59 #define BOARD_LED_GREEN_PIN 19U /*!<@brief PORTB pin index: 19 */ 60 /* @} */ 61 62 /*! 63 * @brief Configures pin routing and optionally pin electrical features. 64 * 65 */ 66 void BOARD_InitLEDsPins(void); 67 68 /*! @name PORTA4 (number 26), J2[5]/SW1 69 @{ */ 70 #define BOARD_SW1_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */ 71 #define BOARD_SW1_PORT PORTA /*!<@brief PORT device name: PORTA */ 72 #define BOARD_SW1_PIN 4U /*!<@brief PORTA pin index: 4 */ 73 /* @} */ 74 75 /*! @name PORTC1 (number 44), J3[13]/SW3 76 @{ */ 77 #define BOARD_SW3_GPIO GPIOC /*!<@brief GPIO device name: GPIOC */ 78 #define BOARD_SW3_PORT PORTC /*!<@brief PORT device name: PORTC */ 79 #define BOARD_SW3_PIN 1U /*!<@brief PORTC pin index: 1 */ 80 /* @} */ 81 82 /*! 83 * @brief Configures pin routing and optionally pin electrical features. 84 * 85 */ 86 void BOARD_InitButtonsPins(void); 87 88 /*! @name PORTE29 (number 17), TOUCH_A 89 @{ */ 90 #define BOARD_TOUCH_A_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */ 91 #define BOARD_TOUCH_A_PORT PORTE /*!<@brief PORT device name: PORTE */ 92 #define BOARD_TOUCH_A_PIN 29U /*!<@brief PORTE pin index: 29 */ 93 /* @} */ 94 95 /*! @name PORTE30 (number 18), TOUCH_B 96 @{ */ 97 #define BOARD_TOUCH_B_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */ 98 #define BOARD_TOUCH_B_PORT PORTE /*!<@brief PORT device name: PORTE */ 99 #define BOARD_TOUCH_B_PIN 30U /*!<@brief PORTE pin index: 30 */ 100 /* @} */ 101 102 /*! 103 * @brief Configures pin routing and optionally pin electrical features. 104 * 105 */ 106 void BOARD_InitTSIPins(void); 107 108 /*! @name USB0_DP (number 5), J10[3] 109 @{ */ 110 /* @} */ 111 112 /*! @name USB0_DM (number 6), J10[2] 113 @{ */ 114 /* @} */ 115 116 /*! @name PORTA5 (number 27), J2[4]/D9-TPM0_CH2 117 @{ */ 118 #define BOARD_TPM0_CH2_PORT PORTA /*!<@brief PORT device name: PORTA */ 119 #define BOARD_TPM0_CH2_PIN 5U /*!<@brief PORTA pin index: 5 */ 120 /* @} */ 121 122 /*! @name USB_VDD (number 7), P3V3_KL27Z 123 @{ */ 124 /* @} */ 125 126 /*! @name PORTC0 (number 43), J4[4]/A1-ADC0_SE14 127 @{ */ 128 #define BOARD_USB_SOF_OUT_PORT PORTC /*!<@brief PORT device name: PORTC */ 129 #define BOARD_USB_SOF_OUT_PIN 0U /*!<@brief PORTC pin index: 0 */ 130 /* @} */ 131 132 /*! 133 * @brief Configures pin routing and optionally pin electrical features. 134 * 135 */ 136 void BOARD_InitUSBPins(void); 137 138 /*! @name PORTC3 (number 46), J2[15]/U10[11]/J28[1]/INT1_ACCEL 139 @{ */ 140 #define BOARD_INT1_ACCEL_GPIO GPIOC /*!<@brief GPIO device name: GPIOC */ 141 #define BOARD_INT1_ACCEL_PORT PORTC /*!<@brief PORT device name: PORTC */ 142 #define BOARD_INT1_ACCEL_PIN 3U /*!<@brief PORTC pin index: 3 */ 143 /* @} */ 144 145 /*! @name PORTC2 (number 45), J3[15]/U10[9]/J27[1]/UART1_TX/INT2_ACCEL 146 @{ */ 147 #define BOARD_INT2_ACCEL_GPIO GPIOC /*!<@brief GPIO device name: GPIOC */ 148 #define BOARD_INT2_ACCEL_PORT PORTC /*!<@brief PORT device name: PORTC */ 149 #define BOARD_INT2_ACCEL_PIN 2U /*!<@brief PORTC pin index: 2 */ 150 /* @} */ 151 152 /*! @name PORTD6 (number 63), J2[18]/J24[1]/D14-I2C1_SDA 153 @{ */ 154 #define BOARD_ACCEL_I2C1_SDA_PORT PORTD /*!<@brief PORT device name: PORTD */ 155 #define BOARD_ACCEL_I2C1_SDA_PIN 6U /*!<@brief PORTD pin index: 6 */ 156 /* @} */ 157 158 /*! @name PORTD7 (number 64), J2[20]/J23[1]/D15-I2C1_SCL 159 @{ */ 160 #define BOARD_ACCEL_I2C1_SCL_PORT PORTD /*!<@brief PORT device name: PORTD */ 161 #define BOARD_ACCEL_I2C1_SCL_PIN 7U /*!<@brief PORTD pin index: 7 */ 162 /* @} */ 163 164 /*! 165 * @brief Configures pin routing and optionally pin electrical features. 166 * 167 */ 168 void BOARD_InitACCEL_I2CPins(void); 169 170 /*! @name PORTD7 (number 64), J2[20]/J23[1]/D15-I2C1_SCL 171 @{ */ 172 #define BOARD_MAG_I2C1_SCL_PORT PORTD /*!<@brief PORT device name: PORTD */ 173 #define BOARD_MAG_I2C1_SCL_PIN 7U /*!<@brief PORTD pin index: 7 */ 174 /* @} */ 175 176 /*! @name PORTD6 (number 63), J2[18]/J24[1]/D14-I2C1_SDA 177 @{ */ 178 #define BOARD_MAG_I2C1_SDA_PORT PORTD /*!<@brief PORT device name: PORTD */ 179 #define BOARD_MAG_I2C1_SDA_PIN 6U /*!<@brief PORTD pin index: 6 */ 180 /* @} */ 181 182 /*! @name PORTC2 (number 45), J3[15]/U10[9]/J27[1]/UART1_TX/INT2_ACCEL 183 @{ */ 184 #define BOARD_INT1_MAG_GPIO GPIOC /*!<@brief GPIO device name: GPIOC */ 185 #define BOARD_INT1_MAG_PORT PORTC /*!<@brief PORT device name: PORTC */ 186 #define BOARD_INT1_MAG_PIN 2U /*!<@brief PORTC pin index: 2 */ 187 /* @} */ 188 189 /*! 190 * @brief Configures pin routing and optionally pin electrical features. 191 * 192 */ 193 void BOARD_InitMAGNET_I2CPins(void); 194 195 #define SOPT5_LPUART0RXSRC_LPUART_RX 0x00u /*!<@brief LPUART0 Receive Data Source Select: LPUART_RX pin */ 196 #define SOPT5_LPUART0TXSRC_LPUART_TX 0x00u /*!<@brief LPUART0 Transmit Data Source Select: LPUART0_TX pin */ 197 198 /*! @name PORTA1 (number 23), J1[2]/J25[1]/D0-UART0_RX 199 @{ */ 200 #define BOARD_DEBUG_UART0_RX_PORT PORTA /*!<@brief PORT device name: PORTA */ 201 #define BOARD_DEBUG_UART0_RX_PIN 1U /*!<@brief PORTA pin index: 1 */ 202 /* @} */ 203 204 /*! @name PORTA2 (number 24), J1[4]/J26[1]/D1-UART0_TX 205 @{ */ 206 #define BOARD_DEBUG_UART0_TX_PORT PORTA /*!<@brief PORT device name: PORTA */ 207 #define BOARD_DEBUG_UART0_TX_PIN 2U /*!<@brief PORTA pin index: 2 */ 208 /* @} */ 209 210 /*! 211 * @brief Configures pin routing and optionally pin electrical features. 212 * 213 */ 214 void BOARD_InitDEBUG_UARTPins(void); 215 216 /*! @name PORTE22 (number 11), THER_A 217 @{ */ 218 #define BOARD_THER_A_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */ 219 #define BOARD_THER_A_PORT PORTE /*!<@brief PORT device name: PORTE */ 220 #define BOARD_THER_A_PIN 22U /*!<@brief PORTE pin index: 22 */ 221 /* @} */ 222 223 /*! @name PORTE23 (number 12), THER_B 224 @{ */ 225 #define BOARD_THER_B_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */ 226 #define BOARD_THER_B_PORT PORTE /*!<@brief PORT device name: PORTE */ 227 #define BOARD_THER_B_PIN 23U /*!<@brief PORTE pin index: 23 */ 228 /* @} */ 229 230 /*! 231 * @brief Configures pin routing and optionally pin electrical features. 232 * 233 */ 234 void BOARD_InitTHERPins(void); 235 236 /*! @name PORTA18 (number 32), EXTAL_32KHZ 237 @{ */ 238 #define BOARD_EXTAL0_PORT PORTA /*!<@brief PORT device name: PORTA */ 239 #define BOARD_EXTAL0_PIN 18U /*!<@brief PORTA pin index: 18 */ 240 /* @} */ 241 242 /*! @name PORTA19 (number 33), XTAL_32KHZ 243 @{ */ 244 #define BOARD_XTAL0_PORT PORTA /*!<@brief PORT device name: PORTA */ 245 #define BOARD_XTAL0_PIN 19U /*!<@brief PORTA pin index: 19 */ 246 /* @} */ 247 248 /*! 249 * @brief Configures pin routing and optionally pin electrical features. 250 * 251 */ 252 void BOARD_InitOSCPins(void); 253 254 #if defined(__cplusplus) 255 } 256 #endif 257 258 /*! 259 * @} 260 */ 261 #endif /* _PIN_MUX_H_ */ 262 263 /*********************************************************************************************************************** 264 * EOF 265 **********************************************************************************************************************/ 266