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 PORTE7 (number 5), D4[3]/LEDRGB_BLUE
42   @{ */
43 #define BOARD_INITLEDSPINS_PTE7_BLUE_GPIO GPIOB            /*!<@brief GPIO device name: GPIOB */
44 #define BOARD_INITLEDSPINS_PTE7_BLUE_GPIO_PORT kGPIO_PORTE /*!<@brief PORTB GPIO port: PORTB */
45 #define BOARD_INITLEDSPINS_PTE7_BLUE_PORT PORTE            /*!<@brief PORT device name: PORTE */
46 #define BOARD_INITLEDSPINS_PTE7_BLUE_PIN 7U                /*!<@brief PORTE pin index: 7 */
47                                                            /* @} */
48 
49 /*! @name PORTH2 (number 6), D4[4]/LEDRGB_GREEN
50   @{ */
51 #define BOARD_INITLEDSPINS_PTH2_GREEN_GPIO GPIOB            /*!<@brief GPIO device name: GPIOB */
52 #define BOARD_INITLEDSPINS_PTH2_GREEN_GPIO_PORT kGPIO_PORTH /*!<@brief PORTB GPIO port: PORTB */
53 #define BOARD_INITLEDSPINS_PTH2_GREEN_PORT PORTH            /*!<@brief PORT device name: PORTH */
54 #define BOARD_INITLEDSPINS_PTH2_GREEN_PIN 2U                /*!<@brief PORTH pin index: 2 */
55                                                             /* @} */
56 
57 /*! @name PORTH1 (number 14), D4[1]/LEDRGB_RED
58   @{ */
59 #define BOARD_INITLEDSPINS_PTH1_RED_GPIO GPIOB            /*!<@brief GPIO device name: GPIOB */
60 #define BOARD_INITLEDSPINS_PTH1_RED_GPIO_PORT kGPIO_PORTH /*!<@brief PORTB GPIO port: PORTB */
61 #define BOARD_INITLEDSPINS_PTH1_RED_PORT PORTH            /*!<@brief PORT device name: PORTH */
62 #define BOARD_INITLEDSPINS_PTH1_RED_PIN 1U                /*!<@brief PORTH pin index: 1 */
63                                                           /* @} */
64 
65 /*!
66  * @brief Configures pin routing and optionally pin electrical features.
67  *
68  */
69 void BOARD_InitLEDsPins(void);
70 
71 /*! @name PORTD6 (number 23), J1[7]/PTD6_TSI/PTD6_RXD2
72   @{ */
73 #define BOARD_INITTOUCHPINS_PTD6_TSI_GPIO GPIOA            /*!<@brief GPIO device name: GPIOA */
74 #define BOARD_INITTOUCHPINS_PTD6_TSI_GPIO_PORT kGPIO_PORTD /*!<@brief PORTA GPIO port: PORTA */
75 #define BOARD_INITTOUCHPINS_PTD6_TSI_PORT PORTD            /*!<@brief PORT device name: PORTD */
76 #define BOARD_INITTOUCHPINS_PTD6_TSI_PIN 6U                /*!<@brief PORTD pin index: 6 */
77                                                            /* @} */
78 
79 /*! @name PORTD7 (number 22), J1[5]/PTD7_TSI/PTD7_TXD2
80   @{ */
81 #define BOARD_INITTOUCHPINS_PTD7_TSI_GPIO GPIOA            /*!<@brief GPIO device name: GPIOA */
82 #define BOARD_INITTOUCHPINS_PTD7_TSI_GPIO_PORT kGPIO_PORTD /*!<@brief PORTA GPIO port: PORTA */
83 #define BOARD_INITTOUCHPINS_PTD7_TSI_PORT PORTD            /*!<@brief PORT device name: PORTD */
84 #define BOARD_INITTOUCHPINS_PTD7_TSI_PIN 7U                /*!<@brief PORTD pin index: 7 */
85                                                            /* @} */
86 
87 /*!
88  * @brief Configures pin routing and optionally pin electrical features.
89  *
90  */
91 void BOARD_InitTOUCHPins(void);
92 
93 /*! @name PORTC6 (number 52), J1[3]/PTC6_RXD1
94   @{ */
95 #define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_RX_PORT PORTC /*!<@brief PORT device name: PORTC */
96 #define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_RX_PIN 6U     /*!<@brief PORTC pin index: 6 */
97                                                           /* @} */
98 
99 /*! @name PORTC7 (number 51), J1[1]/PTC7_TXD1
100   @{ */
101 #define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_TX_PORT PORTC /*!<@brief PORT device name: PORTC */
102 #define BOARD_INITDEBUG_UARTPINS_DEBUG_UART_TX_PIN 7U     /*!<@brief PORTC pin index: 7 */
103                                                           /* @} */
104 
105 /*!
106  * @brief Configures pin routing and optionally pin electrical features.
107  *
108  */
109 void BOARD_InitDEBUG_UARTPins(void);
110 
111 /*! @name PORTA3 (number 47), J2[20]/U1[4]/PTA3_ACCEL_SCL/PTA3_D15
112   @{ */
113 #define BOARD_INITACCELPINS_ACCEL_SCL_PORT PORTA /*!<@brief PORT device name: PORTA */
114 #define BOARD_INITACCELPINS_ACCEL_SCL_PIN 3U     /*!<@brief PORTA pin index: 3 */
115                                                  /* @} */
116 
117 /*! @name PORTA2 (number 48), J2[18]/U1[6]/PTA2_ACCEL_SDA/PTA2_D14
118   @{ */
119 #define BOARD_INITACCELPINS_ACCEL_SDA_PORT PORTA /*!<@brief PORT device name: PORTA */
120 #define BOARD_INITACCELPINS_ACCEL_SDA_PIN 2U     /*!<@brief PORTA pin index: 2 */
121                                                  /* @} */
122 
123 /*! @name PORTD4 (number 44), U1[11]/PTD4_ACCEL_INT1
124   @{ */
125 #define BOARD_INITACCELPINS_ACCEL_INT1_GPIO GPIOA            /*!<@brief GPIO device name: GPIOA */
126 #define BOARD_INITACCELPINS_ACCEL_INT1_GPIO_PORT kGPIO_PORTD /*!<@brief PORTA GPIO port: PORTA */
127 #define BOARD_INITACCELPINS_ACCEL_INT1_PORT PORTD            /*!<@brief PORT device name: PORTD */
128 #define BOARD_INITACCELPINS_ACCEL_INT1_PIN 4U                /*!<@brief PORTD pin index: 4 */
129                                                              /* @} */
130 
131 /*! @name PORTD3 (number 45), U1[9]/PTD3_ACCEL_INT2
132   @{ */
133 #define BOARD_INITACCELPINS_ACCEL_INT2_GPIO GPIOA            /*!<@brief GPIO device name: GPIOA */
134 #define BOARD_INITACCELPINS_ACCEL_INT2_GPIO_PORT kGPIO_PORTD /*!<@brief PORTA GPIO port: PORTA */
135 #define BOARD_INITACCELPINS_ACCEL_INT2_PORT PORTD            /*!<@brief PORT device name: PORTD */
136 #define BOARD_INITACCELPINS_ACCEL_INT2_PIN 3U                /*!<@brief PORTD pin index: 3 */
137                                                              /* @} */
138 
139 /*!
140  * @brief Configures pin routing and optionally pin electrical features.
141  *
142  */
143 void BOARD_InitACCELPins(void);
144 
145 /*! @name PORTB7 (number 11), Y1[2]/EXTAL
146   @{ */
147 #define BOARD_INITOSCPINS_EXTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
148 #define BOARD_INITOSCPINS_EXTAL_PIN 7U     /*!<@brief PORTB pin index: 7 */
149                                            /* @} */
150 
151 /*! @name PORTB6 (number 12), Y1[1]/XTAL_Y
152   @{ */
153 #define BOARD_INITOSCPINS_XTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
154 #define BOARD_INITOSCPINS_XTAL_PIN 6U     /*!<@brief PORTB pin index: 6 */
155                                           /* @} */
156 
157 /*!
158  * @brief Configures pin routing and optionally pin electrical features.
159  *
160  */
161 void BOARD_InitOSCPins(void);
162 
163 #if defined(__cplusplus)
164 }
165 #endif
166 
167 /*!
168  * @}
169  */
170 #endif /* _PIN_MUX_H_ */
171 
172 /***********************************************************************************************************************
173  * EOF
174  **********************************************************************************************************************/
175