diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2b/project_template/pin_mux.h')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2b/project_template/pin_mux.h | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2b/project_template/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2b/project_template/pin_mux.h new file mode 100644 index 000000000..bdbf301f1 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/frdmk32l2b/project_template/pin_mux.h | |||
@@ -0,0 +1,271 @@ | |||
1 | /* | ||
2 | * Copyright 2019 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 PORTB18 (number 41), J1[1]/LCD_P14 | ||
42 | @{ */ | ||
43 | #define BOARD_LCD_P14_PORT PORTB /*!<@brief PORT device name: PORTB */ | ||
44 | #define BOARD_LCD_P14_PIN 18U /*!<@brief PORTB pin index: 18 */ | ||
45 | /* @} */ | ||
46 | |||
47 | /*! @name PORTB19 (number 42), J1[3]/LCD_P15 | ||
48 | @{ */ | ||
49 | #define BOARD_LCD_P15_PORT PORTB /*!<@brief PORT device name: PORTB */ | ||
50 | #define BOARD_LCD_P15_PIN 19U /*!<@brief PORTB pin index: 19 */ | ||
51 | /* @} */ | ||
52 | |||
53 | /*! @name PORTC0 (number 43), J1[5]/LCD_P20/USB_SOF_OUT | ||
54 | @{ */ | ||
55 | #define BOARD_LCD_P20_PORT PORTC /*!<@brief PORT device name: PORTC */ | ||
56 | #define BOARD_LCD_P20_PIN 0U /*!<@brief PORTC pin index: 0 */ | ||
57 | /* @} */ | ||
58 | |||
59 | /*! @name PORTC4 (number 53), J1[7]/LCD_P24 | ||
60 | @{ */ | ||
61 | #define BOARD_LCD_P24_PORT PORTC /*!<@brief PORT device name: PORTC */ | ||
62 | #define BOARD_LCD_P24_PIN 4U /*!<@brief PORTC pin index: 4 */ | ||
63 | /* @} */ | ||
64 | |||
65 | /*! @name PORTC6 (number 55), J1[9]/LCD_P26 | ||
66 | @{ */ | ||
67 | #define BOARD_LCD_P26_PORT PORTC /*!<@brief PORT device name: PORTC */ | ||
68 | #define BOARD_LCD_P26_PIN 6U /*!<@brief PORTC pin index: 6 */ | ||
69 | /* @} */ | ||
70 | |||
71 | /*! @name PORTC7 (number 56), J1[11]/USB_SOF_OUT/LCD_P27 | ||
72 | @{ */ | ||
73 | #define BOARD_LCD_P27_PORT PORTC /*!<@brief PORT device name: PORTC */ | ||
74 | #define BOARD_LCD_P27_PIN 7U /*!<@brief PORTC pin index: 7 */ | ||
75 | /* @} */ | ||
76 | |||
77 | /*! @name PORTD0 (number 57), LCD-09_P40 | ||
78 | @{ */ | ||
79 | #define BOARD_LCD_P40_PORT PORTD /*!<@brief PORT device name: PORTD */ | ||
80 | #define BOARD_LCD_P40_PIN 0U /*!<@brief PORTD pin index: 0 */ | ||
81 | /* @} */ | ||
82 | |||
83 | /*! @name PORTD2 (number 59), J2[4]/D9/LCD_P42 | ||
84 | @{ */ | ||
85 | #define BOARD_LCD_P42_PORT PORTD /*!<@brief PORT device name: PORTD */ | ||
86 | #define BOARD_LCD_P42_PIN 2U /*!<@brief PORTD pin index: 2 */ | ||
87 | /* @} */ | ||
88 | |||
89 | /*! @name PORTD3 (number 60), J1[6]/D2/LCD_P43 | ||
90 | @{ */ | ||
91 | #define BOARD_LCD_P43_PORT PORTD /*!<@brief PORT device name: PORTD */ | ||
92 | #define BOARD_LCD_P43_PIN 3U /*!<@brief PORTD pin index: 3 */ | ||
93 | /* @} */ | ||
94 | |||
95 | /*! @name PORTD4 (number 61), J2[6]/D10/SPI1_PCS0/LCD_P44 | ||
96 | @{ */ | ||
97 | #define BOARD_LCD_P44_PORT PORTD /*!<@brief PORT device name: PORTD */ | ||
98 | #define BOARD_LCD_P44_PIN 4U /*!<@brief PORTD pin index: 4 */ | ||
99 | /* @} */ | ||
100 | |||
101 | /*! @name PORTE20 (number 9), J4[1]/DIFF_ADC0_DP/LCD_P59 | ||
102 | @{ */ | ||
103 | #define BOARD_LCD_P59_PORT PORTE /*!<@brief PORT device name: PORTE */ | ||
104 | #define BOARD_LCD_P59_PIN 20U /*!<@brief PORTE pin index: 20 */ | ||
105 | /* @} */ | ||
106 | |||
107 | /*! @name PORTE21 (number 10), J4[3]/DIFF_ADC0_DM/LCD_P60 | ||
108 | @{ */ | ||
109 | #define BOARD_LCD_P60_PORT PORTE /*!<@brief PORT device name: PORTE */ | ||
110 | #define BOARD_LCD_P60_PIN 21U /*!<@brief PORTE pin index: 21 */ | ||
111 | /* @} */ | ||
112 | |||
113 | /*! | ||
114 | * @brief Configures pin routing and optionally pin electrical features. | ||
115 | * | ||
116 | */ | ||
117 | void BOARD_InitLCDPins(void); | ||
118 | |||
119 | /*! @name PORTA4 (number 26), J1[10]/D4/SW1 | ||
120 | @{ */ | ||
121 | #define BOARD_SW1_GPIO GPIOA /*!<@brief GPIO device name: GPIOA */ | ||
122 | #define BOARD_SW1_PORT PORTA /*!<@brief PORT device name: PORTA */ | ||
123 | #define BOARD_SW1_PIN 4U /*!<@brief PORTA pin index: 4 */ | ||
124 | /* @} */ | ||
125 | |||
126 | /*! @name PORTC3 (number 46), SW3/LLWU_P7/LCD_P23 | ||
127 | @{ */ | ||
128 | #define BOARD_SW3_GPIO GPIOC /*!<@brief GPIO device name: GPIOC */ | ||
129 | #define BOARD_SW3_PORT PORTC /*!<@brief PORT device name: PORTC */ | ||
130 | #define BOARD_SW3_PIN 3U /*!<@brief PORTC pin index: 3 */ | ||
131 | /* @} */ | ||
132 | |||
133 | /*! | ||
134 | * @brief Configures pin routing and optionally pin electrical features. | ||
135 | * | ||
136 | */ | ||
137 | void BOARD_InitBUTTONSPins(void); | ||
138 | |||
139 | /*! @name PORTE31 (number 19), LED2 | ||
140 | @{ */ | ||
141 | #define BOARD_LED2_GPIO GPIOE /*!<@brief GPIO device name: GPIOE */ | ||
142 | #define BOARD_LED2_PORT PORTE /*!<@brief PORT device name: PORTE */ | ||
143 | #define BOARD_LED2_PIN 31U /*!<@brief PORTE pin index: 31 */ | ||
144 | /* @} */ | ||
145 | |||
146 | /*! @name PORTD5 (number 62), J2[12]/D13/SPI1_SCK/LED1/LCD_P45 | ||
147 | @{ */ | ||
148 | #define BOARD_LED1_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */ | ||
149 | #define BOARD_LED1_PORT PORTD /*!<@brief PORT device name: PORTD */ | ||
150 | #define BOARD_LED1_PIN 5U /*!<@brief PORTD pin index: 5 */ | ||
151 | /* @} */ | ||
152 | |||
153 | /*! | ||
154 | * @brief Configures pin routing and optionally pin electrical features. | ||
155 | * | ||
156 | */ | ||
157 | void BOARD_InitLEDsPins(void); | ||
158 | |||
159 | #define SOPT5_LPUART0RXSRC_LPUART_RX 0x00u /*!<@brief LPUART0 Receive Data Source Select: LPUART_RX pin */ | ||
160 | #define SOPT5_LPUART0TXSRC_LPUART_TX 0x00u /*!<@brief LPUART0 Transmit Data Source Select: LPUART0_TX pin */ | ||
161 | |||
162 | /*! @name PORTA1 (number 23), J1[2]/D0/UART0_RX | ||
163 | @{ */ | ||
164 | #define BOARD_DEBUG_UART0_RX_PORT PORTA /*!<@brief PORT device name: PORTA */ | ||
165 | #define BOARD_DEBUG_UART0_RX_PIN 1U /*!<@brief PORTA pin index: 1 */ | ||
166 | /* @} */ | ||
167 | |||
168 | /*! @name PORTA2 (number 24), J1[4]/D1/UART0_TX | ||
169 | @{ */ | ||
170 | #define BOARD_DEBUG_UART0_TX_PORT PORTA /*!<@brief PORT device name: PORTA */ | ||
171 | #define BOARD_DEBUG_UART0_TX_PIN 2U /*!<@brief PORTA pin index: 2 */ | ||
172 | /* @} */ | ||
173 | |||
174 | /*! | ||
175 | * @brief Configures pin routing and optionally pin electrical features. | ||
176 | * | ||
177 | */ | ||
178 | void BOARD_InitDEBUG_UARTPins(void); | ||
179 | |||
180 | /*! @name USB0_DP (number 5), J10[3]/USB_DP | ||
181 | @{ */ | ||
182 | /* @} */ | ||
183 | |||
184 | /*! @name USB0_DM (number 6), J10[2]/USB_DM | ||
185 | @{ */ | ||
186 | /* @} */ | ||
187 | |||
188 | /*! @name VREGIN (number 8), USB_REGIN | ||
189 | @{ */ | ||
190 | /* @} */ | ||
191 | |||
192 | /*! @name PORTC0 (number 43), J1[5]/LCD_P20/USB_SOF_OUT | ||
193 | @{ */ | ||
194 | #define BOARD_USB_SOF_OUT_PORT PORTC /*!<@brief PORT device name: PORTC */ | ||
195 | #define BOARD_USB_SOF_OUT_PIN 0U /*!<@brief PORTC pin index: 0 */ | ||
196 | /* @} */ | ||
197 | |||
198 | /*! @name PORTA5 (number 27), J1[12]/D5/USB_CLKIN | ||
199 | @{ */ | ||
200 | #define BOARD_USB0_CLKIN_PORT PORTA /*!<@brief PORT device name: PORTA */ | ||
201 | #define BOARD_USB0_CLKIN_PIN 5U /*!<@brief PORTA pin index: 5 */ | ||
202 | /* @} */ | ||
203 | |||
204 | /*! | ||
205 | * @brief Configures pin routing and optionally pin electrical features. | ||
206 | * | ||
207 | */ | ||
208 | void BOARD_InitUSBPins(void); | ||
209 | |||
210 | /*! @name PORTE24 (number 20), U2[7]/U10[4]/I2C0_SCL | ||
211 | @{ */ | ||
212 | #define BOARD_I2C0_SCL_PORT PORTE /*!<@brief PORT device name: PORTE */ | ||
213 | #define BOARD_I2C0_SCL_PIN 24U /*!<@brief PORTE pin index: 24 */ | ||
214 | /* @} */ | ||
215 | |||
216 | /*! @name PORTE25 (number 21), U2[6]/U10[6]/I2C0_SDA | ||
217 | @{ */ | ||
218 | #define BOARD_I2C0_SDA_PORT PORTE /*!<@brief PORT device name: PORTE */ | ||
219 | #define BOARD_I2C0_SDA_PIN 25U /*!<@brief PORTE pin index: 25 */ | ||
220 | /* @} */ | ||
221 | |||
222 | /*! @name PORTD1 (number 58), U2[9]/U10[9]/INT2_ACCEL/INT1_MAG/LCD_P41 | ||
223 | @{ */ | ||
224 | #define BOARD_INT2_ACCEL_GPIO GPIOD /*!<@brief GPIO device name: GPIOD */ | ||
225 | #define BOARD_INT2_ACCEL_PORT PORTD /*!<@brief PORT device name: PORTD */ | ||
226 | #define BOARD_INT2_ACCEL_PIN 1U /*!<@brief PORTD pin index: 1 */ | ||
227 | /* @} */ | ||
228 | |||
229 | /*! @name PORTC5 (number 54), J1[15]/INT1_ACCEL/LCD_P25 | ||
230 | @{ */ | ||
231 | #define BOARD_INT1_ACCEL_GPIO GPIOC /*!<@brief GPIO device name: GPIOC */ | ||
232 | #define BOARD_INT1_ACCEL_PORT PORTC /*!<@brief PORT device name: PORTC */ | ||
233 | #define BOARD_INT1_ACCEL_PIN 5U /*!<@brief PORTC pin index: 5 */ | ||
234 | /* @} */ | ||
235 | |||
236 | /*! | ||
237 | * @brief Configures pin routing and optionally pin electrical features. | ||
238 | * | ||
239 | */ | ||
240 | void BOARD_InitACCEL_I2CPins(void); | ||
241 | |||
242 | /*! @name PORTA18 (number 32), EXTAL_32KHZ | ||
243 | @{ */ | ||
244 | #define BOARD_EXTAL_32KHZ_PORT PORTA /*!<@brief PORT device name: PORTA */ | ||
245 | #define BOARD_EXTAL_32KHZ_PIN 18U /*!<@brief PORTA pin index: 18 */ | ||
246 | /* @} */ | ||
247 | |||
248 | /*! @name PORTA19 (number 33), XTAL_32KHZ | ||
249 | @{ */ | ||
250 | #define BOARD_XTAL_32KHZ_PORT PORTA /*!<@brief PORT device name: PORTA */ | ||
251 | #define BOARD_XTAL_32KHZ_PIN 19U /*!<@brief PORTA pin index: 19 */ | ||
252 | /* @} */ | ||
253 | |||
254 | /*! | ||
255 | * @brief Configures pin routing and optionally pin electrical features. | ||
256 | * | ||
257 | */ | ||
258 | void BOARD_InitOSCPins(void); | ||
259 | |||
260 | #if defined(__cplusplus) | ||
261 | } | ||
262 | #endif | ||
263 | |||
264 | /*! | ||
265 | * @} | ||
266 | */ | ||
267 | #endif /* _PIN_MUX_H_ */ | ||
268 | |||
269 | /*********************************************************************************************************************** | ||
270 | * EOF | ||
271 | **********************************************************************************************************************/ | ||