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 #define PORT_DFER_DFE_0_MASK 0x01u /*!<@brief Digital Filter Enable Mask for item 0. */
42 #define PORT_DFER_DFE_1_MASK 0x02u /*!<@brief Digital Filter Enable Mask for item 1. */
43 
44 /*! @name PORTC0 (number 40), E1[1]/TOUCH_PAD_0_TSI_22
45   @{ */
46 #define BOARD_TSI_ELECTRODE_1_PORT PORTC /*!<@brief PORT device name: PORTC */
47 #define BOARD_TSI_ELECTRODE_1_PIN 0U     /*!<@brief PORTC pin index: 0 */
48                                          /* @} */
49 
50 /*! @name PORTC1 (number 39), E2[1]/TOUCH_PAD_1_TSI_23
51   @{ */
52 #define BOARD_TSI_ELECTRODE_2_PORT PORTC /*!<@brief PORT device name: PORTC */
53 #define BOARD_TSI_ELECTRODE_2_PIN 1U     /*!<@brief PORTC pin index: 1 */
54                                          /* @} */
55 
56 /*!
57  * @brief Configures pin routing and optionally pin electrical features.
58  *
59  */
60 void BOARD_InitTOUCHPins(void);
61 
62 #define PORT_DFER_DFE_11_MASK 0x0800u /*!<@brief Digital Filter Enable Mask for item 11. */
63 #define PORT_DFER_DFE_3_MASK 0x08u    /*!<@brief Digital Filter Enable Mask for item 3. */
64 
65 /*! @name PORTB11 (number 74), SW2
66   @{ */
67 #define BOARD_SW2_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */
68 #define BOARD_SW2_PORT PORTB /*!<@brief PORT device name: PORTB */
69 #define BOARD_SW2_PIN 11U    /*!<@brief PORTB pin index: 11 */
70                              /* @} */
71 
72 /*! @name PORTD3 (number 70), SW3
73   @{ */
74 #define BOARD_SW3_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
75 #define BOARD_SW3_PORT PORTD /*!<@brief PORT device name: PORTD */
76 #define BOARD_SW3_PIN 3U     /*!<@brief PORTD pin index: 3 */
77                              /* @} */
78 
79 /*!
80  * @brief Configures pin routing and optionally pin electrical features.
81  *
82  */
83 void BOARD_InitBUTTONSPins(void);
84 
85 #define PORT_DFER_DFE_0_MASK 0x01u      /*!<@brief Digital Filter Enable Mask for item 0. */
86 #define PORT_DFER_DFE_15_MASK 0x8000u   /*!<@brief Digital Filter Enable Mask for item 15. */
87 #define PORT_DFER_DFE_16_MASK 0x010000u /*!<@brief Digital Filter Enable Mask for item 16. */
88 
89 /*! @name PORTD0 (number 4), D4[1]/RGB_RED
90   @{ */
91 #define BOARD_LED_RED_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
92 #define BOARD_LED_RED_PORT PORTD /*!<@brief PORT device name: PORTD */
93 #define BOARD_LED_RED_PIN 0U     /*!<@brief PORTD pin index: 0 */
94                                  /* @} */
95 
96 /*! @name PORTD16 (number 21), D4[4]/RGB_GREEN
97   @{ */
98 #define BOARD_LED_GREEN_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
99 #define BOARD_LED_GREEN_PORT PORTD /*!<@brief PORT device name: PORTD */
100 #define BOARD_LED_GREEN_PIN 16U    /*!<@brief PORTD pin index: 16 */
101                                    /* @} */
102 
103 /*! @name PORTD15 (number 22), D4[3]/RGB_BLUE
104   @{ */
105 #define BOARD_LED_BLUE_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */
106 #define BOARD_LED_BLUE_PORT PORTD /*!<@brief PORT device name: PORTD */
107 #define BOARD_LED_BLUE_PIN 15U    /*!<@brief PORTD pin index: 15 */
108                                   /* @} */
109 
110 /*!
111  * @brief Configures pin routing and optionally pin electrical features.
112  *
113  */
114 void BOARD_InitLEDsPins(void);
115 
116 /*! @name PORTB7 (number 15), Y1[1]/EXTAL
117   @{ */
118 #define BOARD_EXTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
119 #define BOARD_EXTAL_PIN 7U     /*!<@brief PORTB pin index: 7 */
120                                /* @} */
121 
122 /*! @name PORTB6 (number 16), Y1[3]/XTAL
123   @{ */
124 #define BOARD_XTAL_PORT PORTB /*!<@brief PORT device name: PORTB */
125 #define BOARD_XTAL_PIN 6U     /*!<@brief PORTB pin index: 6 */
126                               /* @} */
127 
128 /*! @name PORTC3 (number 29), Y2[1]/EXTAL32
129   @{ */
130 #define BOARD_EXTAL32_PORT PORTC /*!<@brief PORT device name: PORTC */
131 #define BOARD_EXTAL32_PIN 3U     /*!<@brief PORTC pin index: 3 */
132                                  /* @} */
133 
134 /*! @name PORTC2 (number 30), Y2[2]/XTAL32
135   @{ */
136 #define BOARD_XTAL32_PORT PORTC /*!<@brief PORT device name: PORTC */
137 #define BOARD_XTAL32_PIN 2U     /*!<@brief PORTC pin index: 2 */
138                                 /* @} */
139 
140 /*!
141  * @brief Configures pin routing and optionally pin electrical features.
142  *
143  */
144 void BOARD_InitOSCPins(void);
145 
146 #define PORT_DFER_DFE_2_MASK 0x04u /*!<@brief Digital Filter Enable Mask for item 2. */
147 #define PORT_DFER_DFE_4_MASK 0x10u /*!<@brief Digital Filter Enable Mask for item 4. */
148 
149 /*! @name PORTD4 (number 69), THERM_1
150   @{ */
151 #define BOARD_THERM_1_PORT PORTD /*!<@brief PORT device name: PORTD */
152 #define BOARD_THERM_1_PIN 4U     /*!<@brief PORTD pin index: 4 */
153                                  /* @} */
154 
155 /*! @name PORTD2 (number 71), THERM_0
156   @{ */
157 #define BOARD_THERM_0_PORT PORTD /*!<@brief PORT device name: PORTD */
158 #define BOARD_THERM_0_PIN 2U     /*!<@brief PORTD pin index: 2 */
159                                  /* @} */
160 
161 /*!
162  * @brief Configures pin routing and optionally pin electrical features.
163  *
164  */
165 void BOARD_InitTHERMISTORPins(void);
166 
167 #define PORT_DFER_DFE_10_MASK 0x0400u /*!<@brief Digital Filter Enable Mask for item 10. */
168 #define PORT_DFER_DFE_2_MASK 0x04u    /*!<@brief Digital Filter Enable Mask for item 2. */
169 #define PORT_DFER_DFE_3_MASK 0x08u    /*!<@brief Digital Filter Enable Mask for item 3. */
170 #define PORT_DFER_DFE_9_MASK 0x0200u  /*!<@brief Digital Filter Enable Mask for item 9. */
171 
172 /*! @name PORTB10 (number 75), U1[2]/FXOS_INT
173   @{ */
174 #define BOARD_ACCEL_INT_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */
175 #define BOARD_ACCEL_INT_PORT PORTB /*!<@brief PORT device name: PORTB */
176 #define BOARD_ACCEL_INT_PIN 10U    /*!<@brief PORTB pin index: 10 */
177                                    /* @} */
178 
179 /*! @name PORTB9 (number 76), U1[3]/FXOS_RST
180   @{ */
181 #define BOARD_ACCEL_RST_GPIO GPIOB /*!<@brief GPIO device name: GPIOB */
182 #define BOARD_ACCEL_RST_PORT PORTB /*!<@brief PORT device name: PORTB */
183 #define BOARD_ACCEL_RST_PIN 9U     /*!<@brief PORTB pin index: 9 */
184                                    /* @} */
185 
186 /*! @name PORTA3 (number 72), J4[12]/Arduino_A5_ADC1_SE1/FXOS_SCL
187   @{ */
188 #define BOARD_ACCEL_I2C_SCL_PORT PORTA /*!<@brief PORT device name: PORTA */
189 #define BOARD_ACCEL_I2C_SCL_PIN 3U     /*!<@brief PORTA pin index: 3 */
190                                        /* @} */
191 
192 /*! @name PORTA2 (number 73), J4[10]/Arduino_A4_ADC1_SE0/FXOS_SDA
193   @{ */
194 #define BOARD_ACCEL_I2C_SDA_PORT PORTA /*!<@brief PORT device name: PORTA */
195 #define BOARD_ACCEL_I2C_SDA_PIN 2U     /*!<@brief PORTA pin index: 2 */
196                                        /* @} */
197 
198 /*!
199  * @brief Configures pin routing and optionally pin electrical features.
200  *
201  */
202 void BOARD_InitACCELPins(void);
203 
204 #define PORT_DFER_DFE_6_MASK 0x40u /*!<@brief Digital Filter Enable Mask for item 6. */
205 #define PORT_DFER_DFE_7_MASK 0x80u /*!<@brief Digital Filter Enable Mask for item 7. */
206 
207 /*! @name PORTC7 (number 80), UART1_TX_TGTMCU
208   @{ */
209 #define BOARD_DEBUG_UART_TX_PORT PORTC /*!<@brief PORT device name: PORTC */
210 #define BOARD_DEBUG_UART_TX_PIN 7U     /*!<@brief PORTC pin index: 7 */
211                                        /* @} */
212 
213 /*! @name PORTC6 (number 81), UART1_RX_TGTMCU
214   @{ */
215 #define BOARD_DEBUG_UART_RX_PORT PORTC /*!<@brief PORT device name: PORTC */
216 #define BOARD_DEBUG_UART_RX_PIN 6U     /*!<@brief PORTC pin index: 6 */
217                                        /* @} */
218 
219 /*!
220  * @brief Configures pin routing and optionally pin electrical features.
221  *
222  */
223 void BOARD_InitDEBUG_UARTPins(void);
224 
225 #if defined(__cplusplus)
226 }
227 #endif
228 
229 /*!
230  * @}
231  */
232 #endif /* _PIN_MUX_H_ */
233 
234 /***********************************************************************************************************************
235  * EOF
236  **********************************************************************************************************************/
237