aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54114/project_template/cm4/pin_mux.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54114/project_template/cm4/pin_mux.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54114/project_template/cm4/pin_mux.h321
1 files changed, 321 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54114/project_template/cm4/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54114/project_template/cm4/pin_mux.h
new file mode 100644
index 000000000..dc5f635c0
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54114/project_template/cm4/pin_mux.h
@@ -0,0 +1,321 @@
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)
26extern "C" {
27#endif
28
29/*!
30 * @brief Calls initialization functions.
31 *
32 */
33void BOARD_InitBootPins(void);
34
35/*!
36 * @brief Configures pin routing and optionally pin electrical features.
37 *
38 */
39void BOARD_InitPins_cm4(void); /* Function assigned for the Cortex-M4F */
40
41#define PIO023_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
42#define PIO023_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
43#define PIO023_I2CSLEW_I2C_MODE 0x00u /*!<@brief Controls slew rate of I2C pad.: I2C mode. */
44#define PIO024_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
45#define PIO024_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
46#define PIO024_I2CSLEW_I2C_MODE 0x00u /*!<@brief Controls slew rate of I2C pad.: I2C mode. */
47
48/*! @name FC1_RTS_SCL_SSEL1 (number 1), J4[9]/JS3[1]/JS4[3]/U10[7]/U12[D6]/BRIDGE_SCL
49 @{ */
50/* @} */
51
52/*! @name FC1_CTS_SDA_SSEL0 (number 2), J4[10]/JS2[1]/JS5[3]/U10[5]/U12[E6]/SW1/BRIDGE_SDA-WAKEUP
53 @{ */
54/* @} */
55
56/*!
57 * @brief Configures pin routing and optionally pin electrical features.
58 *
59 */
60void BOARD_InitLink2MCUPins(void); /* Function assigned for the Cortex-M4F */
61
62#define PIO024_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
63#define PIO024_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
64#define PIO031_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
65#define PIO031_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
66#define PIO04_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
67#define PIO04_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
68
69/*! @name PIO0_24 (number 2), J4[10]/JS2[1]/JS5[3]/U10[5]/U12[E6]/SW1/BRIDGE_SDA-WAKEUP
70 @{ */
71#define BOARD_SW1_GPIO GPIO /*!<@brief GPIO device name: GPIO */
72#define BOARD_SW1_PORT 0U /*!<@brief PORT device name: 0U */
73#define BOARD_SW1_PIN 24U /*!<@brief 0U pin index: 24 */
74 /* @} */
75
76/*! @name PIO0_31 (number 13), J2[17]/J3[2]/P1[7]/U3[4]/SW2/P0_31-PDM0_CLK-ISP0_EN
77 @{ */
78#define BOARD_SW2_GPIO GPIO /*!<@brief GPIO device name: GPIO */
79#define BOARD_SW2_PORT 0U /*!<@brief PORT device name: 0U */
80#define BOARD_SW2_PIN 31U /*!<@brief 0U pin index: 31 */
81 /* @} */
82
83/*! @name PIO0_4 (number 38), J4[7]/U9[12]/SW3/BRIDGE_T_INTR-ISP1
84 @{ */
85#define BOARD_SW3_GPIO GPIO /*!<@brief GPIO device name: GPIO */
86#define BOARD_SW3_PORT 0U /*!<@brief PORT device name: 0U */
87#define BOARD_SW3_PIN 4U /*!<@brief 0U pin index: 4 */
88 /* @} */
89
90/*!
91 * @brief Configures pin routing and optionally pin electrical features.
92 *
93 */
94void BOARD_InitBUTTONsPins(void); /* Function assigned for the Cortex-M4F */
95
96#define PIO029_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
97#define PIO029_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
98#define PIO110_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
99#define PIO110_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
100#define PIO19_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
101#define PIO19_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
102
103/*! @name PIO1_9 (number 29), J9[5]/D2[3]/P1_9-BLUE_LED
104 @{ */
105#define BOARD_LED_BLUE_GPIO GPIO /*!<@brief GPIO device name: GPIO */
106#define BOARD_LED_BLUE_PORT 1U /*!<@brief PORT device name: 1U */
107#define BOARD_LED_BLUE_PIN 9U /*!<@brief 1U pin index: 9 */
108 /* @} */
109
110/*! @name PIO1_10 (number 30), J9[8]/D2[4]/P1_10-SCT4-LED_GREEN
111 @{ */
112#define BOARD_LED_GREEN_GPIO GPIO /*!<@brief GPIO device name: GPIO */
113#define BOARD_LED_GREEN_PORT 1U /*!<@brief PORT device name: 1U */
114#define BOARD_LED_GREEN_PIN 10U /*!<@brief 1U pin index: 10 */
115 /* @} */
116
117/*! @name PIO0_29 (number 11), J2[5]/D2[1]/P0_29-CT32B0_MAT3-RED
118 @{ */
119#define BOARD_LED_RED_GPIO GPIO /*!<@brief GPIO device name: GPIO */
120#define BOARD_LED_RED_PORT 0U /*!<@brief PORT device name: 0U */
121#define BOARD_LED_RED_PIN 29U /*!<@brief 0U pin index: 29 */
122 /* @} */
123
124/*!
125 * @brief Configures pin routing and optionally pin electrical features.
126 *
127 */
128void BOARD_InitLEDsPins(void); /* Function assigned for the Cortex-M4F */
129
130#define PIO025_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
131#define PIO025_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
132#define PIO025_I2CSLEW_I2C_MODE 0x00u /*!<@brief Controls slew rate of I2C pad.: I2C mode. */
133#define PIO026_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
134#define PIO026_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
135#define PIO026_I2CSLEW_I2C_MODE 0x00u /*!<@brief Controls slew rate of I2C pad.: I2C mode. */
136
137/*! @name FC4_RTS_SCL_SSEL1 (number 3), J1[1]/JS4[1]/U10[7]/P0_25-FC4_SCLX
138 @{ */
139/* @} */
140
141/*! @name FC4_CTS_SDA_SSEL0 (number 4), J1[3]/JS5[1]/U10[5]/P0_26-FC4_SDAX
142 @{ */
143/* @} */
144
145/*!
146 * @brief Configures pin routing and optionally pin electrical features.
147 *
148 */
149void BOARD_InitSecureMCUPins(void); /* Function assigned for the Cortex-M4F */
150
151#define PIO018_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
152#define PIO018_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
153#define PIO019_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
154#define PIO019_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
155#define PIO020_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
156#define PIO020_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
157#define PIO12_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
158#define PIO12_FUNC_ALT4 0x04u /*!<@brief Selects pin function.: Alternative connection 4. */
159
160/*! @name FC5_TXD_SCL_MISO (number 58), J1[11]/U5[2]/P0_18-FC5_TXD_SCL_MISO
161 @{ */
162/* @} */
163
164/*! @name FC5_SCK (number 59), J1[9]/J2[8]/U5[6]/P0_19-FC5_SCK-SPIFI_CSn
165 @{ */
166/* @} */
167
168/*! @name FC5_RXD_SDA_MOSI (number 60), J1[13]/U5[5]/P0_20-FC5_RXD_SDA_MOSI
169 @{ */
170/* @} */
171
172/*! @name FC5_SSEL3 (number 16), J9[7]/JS8[1]/U5[1]/P1_2-FC5_SSEL3
173 @{ */
174/* @} */
175
176/*!
177 * @brief Configures pin routing and optionally pin electrical features.
178 *
179 */
180void BOARD_InitSPI_FLASHPins(void); /* Function assigned for the Cortex-M4F */
181
182#define PIO011_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
183#define PIO011_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
184#define PIO012_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
185#define PIO012_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
186#define PIO013_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
187#define PIO013_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
188#define PIO014_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
189#define PIO014_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
190#define PIO022_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
191#define PIO022_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
192#define PIO023_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
193#define PIO023_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
194#define PIO023_I2CSLEW_I2C_MODE 0x00u /*!<@brief Controls slew rate of I2C pad.: I2C mode. */
195#define PIO024_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
196#define PIO024_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
197#define PIO024_I2CSLEW_I2C_MODE 0x00u /*!<@brief Controls slew rate of I2C pad.: I2C mode. */
198#define PIO04_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
199#define PIO04_FUNC_ALT0 0x00u /*!<@brief Selects pin function.: Alternative connection 0. */
200
201/*! @name PIO0_4 (number 38), J4[7]/U9[12]/SW3/BRIDGE_T_INTR-ISP1
202 @{ */
203#define BOARD_BRIDGE_T_INTR_GPIO GPIO /*!<@brief GPIO device name: GPIO */
204#define BOARD_BRIDGE_T_INTR_PORT 0U /*!<@brief PORT device name: 0U */
205#define BOARD_BRIDGE_T_INTR_PIN 4U /*!<@brief 0U pin index: 4 */
206 /* @} */
207
208/*! @name FC3_SCK (number 46), J4[4]/U9[13]/BRIDGE_T_SCK
209 @{ */
210/* @} */
211
212/*! @name FC3_RXD_SDA_MOSI (number 47), J4[2]/U9[11]/BRIDGE_T_MOSI
213 @{ */
214/* @} */
215
216/*! @name FC3_TXD_SCL_MISO (number 48), J4[3]/U15[4]/BRIDGE_T_MISO
217 @{ */
218/* @} */
219
220/*! @name FC3_CTS_SDA_SSEL0 (number 49), J2[12]/J4[1]/U9[14]/BRIDGE_T_SSEL-SPIFI_IO3
221 @{ */
222/* @} */
223
224/*! @name PIO0_22 (number 63), J4[8]/P0_22-BRIDGE_GPIO
225 @{ */
226#define BOARD_BRIDGE_GPIO_GPIO GPIO /*!<@brief GPIO device name: GPIO */
227#define BOARD_BRIDGE_GPIO_PORT 0U /*!<@brief PORT device name: 0U */
228#define BOARD_BRIDGE_GPIO_PIN 22U /*!<@brief 0U pin index: 22 */
229 /* @} */
230
231/*! @name FC1_RTS_SCL_SSEL1 (number 1), J4[9]/JS3[1]/JS4[3]/U10[7]/U12[D6]/BRIDGE_SCL
232 @{ */
233/* @} */
234
235/*! @name FC1_CTS_SDA_SSEL0 (number 2), J4[10]/JS2[1]/JS5[3]/U10[5]/U12[E6]/SW1/BRIDGE_SDA-WAKEUP
236 @{ */
237/* @} */
238
239/*!
240 * @brief Configures pin routing and optionally pin electrical features.
241 *
242 */
243void BOARD_InitPMod_SPI_I2C_BRIDGEPins(void); /* Function assigned for the Cortex-M4F */
244
245#define PIO16_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
246#define PIO16_FUNC_ALT7 0x07u /*!<@brief Selects pin function.: Alternative connection 7. */
247
248/*! @name USB0_DP (number 5), J5[3]/U7[2]/USB_DP
249 @{ */
250/* @} */
251
252/*! @name USB0_DM (number 6), J5[2]/U7[3]/USB_DM
253 @{ */
254/* @} */
255
256/*! @name USB0_VBUS (number 26), J1[14]/J5[1]/JP10[2]/P1_6-FC7_SCK-USB_VBUS
257 @{ */
258/* @} */
259
260/*!
261 * @brief Configures pin routing and optionally pin electrical features.
262 *
263 */
264void BOARD_InitUSBPins(void); /* Function assigned for the Cortex-M4F */
265
266#define PIO00_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
267#define PIO00_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
268#define PIO01_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
269#define PIO01_FUNC_ALT1 0x01u /*!<@brief Selects pin function.: Alternative connection 1. */
270
271/*! @name FC0_TXD_SCL_MISO (number 32), U6[4]/U22[3]/P0_1-ISP_TX
272 @{ */
273/* @} */
274
275/*! @name FC0_RXD_SDA_MOSI (number 31), U18[4]/TO_MUX_P0_0-ISP_RX
276 @{ */
277/* @} */
278
279/*!
280 * @brief Configures pin routing and optionally pin electrical features.
281 *
282 */
283void BOARD_InitDEBUG_UARTPins(void); /* Function assigned for the Cortex-M4F */
284
285#define PIO015_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
286#define PIO015_FUNC_ALT2 0x02u /*!<@brief Selects pin function.: Alternative connection 2. */
287#define PIO016_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
288#define PIO016_FUNC_ALT5 0x05u /*!<@brief Selects pin function.: Alternative connection 5. */
289#define PIO017_DIGIMODE_DIGITAL 0x01u /*!<@brief Select Analog/Digital mode.: Digital mode. */
290#define PIO017_FUNC_ALT5 0x05u /*!<@brief Selects pin function.: Alternative connection 5. */
291
292/*! @name SWDIO (number 53), J2[6]/P1[2]/U2[5]/U14[4]/IF_TMS_SWDIO-SPIFI_IO0
293 @{ */
294/* @} */
295
296/*! @name SWCLK (number 52), J2[4]/JS28/U4[4]/TCK-SWDCLK_TRGT-SPIFI_IO1
297 @{ */
298/* @} */
299
300/*! @name SWO (number 50), J2[10]/JS30/U4[12]/TDO-SWO_TRGT-SPIFI_IO2
301 @{ */
302/* @} */
303
304/*!
305 * @brief Configures pin routing and optionally pin electrical features.
306 *
307 */
308void BOARD_InitSWD_DEBUGPins(void); /* Function assigned for the Cortex-M4F */
309
310#if defined(__cplusplus)
311}
312#endif
313
314/*!
315 * @}
316 */
317#endif /* _PIN_MUX_H_ */
318
319/***********************************************************************************************************************
320 * EOF
321 **********************************************************************************************************************/