1 /*
2 * Copyright 2017-2018 NXP
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 *
7 */
8
9 /***********************************************************************************************************************
10 * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
11 * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
12 **********************************************************************************************************************/
13
14 /* clang-format off */
15 /*
16 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
17 !!GlobalInfo
18 product: Pins v4.1
19 processor: LPC55S69
20 package_id: LPC55S69JBD100
21 mcu_data: ksdk2_0
22 processor_version: 0.0.0
23 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
24 */
25 /* clang-format on */
26
27 #include "fsl_common.h"
28 #include "fsl_iocon.h"
29 #include "pin_mux.h"
30
31 /* FUNCTION ************************************************************************************************************
32 *
33 * Function Name : BOARD_InitBootPins
34 * Description : Calls initialization functions.
35 *
36 * END ****************************************************************************************************************/
BOARD_InitBootPins(void)37 void BOARD_InitBootPins(void)
38 {
39 BOARD_InitPins();
40 I2C4_InitPins();
41 USART0_InitPins();
42 }
43
44 /* clang-format off */
45 /*
46 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
47 BOARD_InitPins:
48 - options: {callFromInitBoot: 'true', coreID: cm33_core0, enableClock: 'true'}
49 - pin_list:
50 - {pin_num: '94', peripheral: FLEXCOMM0, signal: TXD_SCL_MISO_WS, pin_signal: PIO0_30/FC0_TXD_SCL_MISO_WS/SD1_D3/CTIMER0_MAT0/SCT0_OUT9/SECURE_GPIO0_30, mode: inactive,
51 slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
52 - {pin_num: '92', peripheral: FLEXCOMM0, signal: RXD_SDA_MOSI_DATA, pin_signal: PIO0_29/FC0_RXD_SDA_MOSI_DATA/SD1_D2/CTIMER2_MAT3/SCT0_OUT8/CMP0_OUT/PLU_OUT2/SECURE_GPIO0_29,
53 mode: inactive, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
54 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
55 */
56 /* clang-format on */
57
58 /* FUNCTION ************************************************************************************************************
59 *
60 * Function Name : BOARD_InitPins
61 * Description : Configures pin routing and optionally pin electrical features.
62 *
63 * END ****************************************************************************************************************/
64 /* Function assigned for the Cortex-M33 (Core #0) */
BOARD_InitPins(void)65 void BOARD_InitPins(void)
66 {
67 /* Enables the clock for the I/O controller.: Enable Clock. */
68 CLOCK_EnableClock(kCLOCK_Iocon);
69
70 const uint32_t port0_pin29_config = (/* Pin is configured as FC0_RXD_SDA_MOSI_DATA */
71 IOCON_PIO_FUNC1 |
72 /* No addition pin function */
73 IOCON_PIO_MODE_INACT |
74 /* Standard mode, output slew rate control is enabled */
75 IOCON_PIO_SLEW_STANDARD |
76 /* Input function is not inverted */
77 IOCON_PIO_INV_DI |
78 /* Enables digital function */
79 IOCON_PIO_DIGITAL_EN |
80 /* Open drain is disabled */
81 IOCON_PIO_OPENDRAIN_DI);
82 /* PORT0 PIN29 (coords: 92) is configured as FC0_RXD_SDA_MOSI_DATA */
83 IOCON_PinMuxSet(IOCON, 0U, 29U, port0_pin29_config);
84
85 const uint32_t port0_pin30_config = (/* Pin is configured as FC0_TXD_SCL_MISO_WS */
86 IOCON_PIO_FUNC1 |
87 /* No addition pin function */
88 IOCON_PIO_MODE_INACT |
89 /* Standard mode, output slew rate control is enabled */
90 IOCON_PIO_SLEW_STANDARD |
91 /* Input function is not inverted */
92 IOCON_PIO_INV_DI |
93 /* Enables digital function */
94 IOCON_PIO_DIGITAL_EN |
95 /* Open drain is disabled */
96 IOCON_PIO_OPENDRAIN_DI);
97 /* PORT0 PIN30 (coords: 94) is configured as FC0_TXD_SCL_MISO_WS */
98 IOCON_PinMuxSet(IOCON, 0U, 30U, port0_pin30_config);
99 }
100
101 /* clang-format off */
102 /*
103 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
104 I2C4_InitPins:
105 - options: {callFromInitBoot: 'true', coreID: cm33_core0, enableClock: 'true'}
106 - pin_list:
107 - {pin_num: '30', peripheral: FLEXCOMM4, signal: RXD_SDA_MOSI_DATA, pin_signal: PIO1_21/FC7_CTS_SDA_SSEL0/CTIMER3_MAT2/FC4_RXD_SDA_MOSI_DATA/PLU_OUT3, mode: pullUp,
108 slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: enabled}
109 - {pin_num: '4', peripheral: FLEXCOMM4, signal: TXD_SCL_MISO_WS, pin_signal: PIO1_20/FC7_RTS_SCL_SSEL1/CT_INP14/FC4_TXD_SCL_MISO_WS/PLU_OUT2, mode: pullUp, slew_rate: standard,
110 invert: disabled, digi_mode: digital, open_drain: enabled}
111 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
112 */
113 /* clang-format on */
114
115 /* FUNCTION ************************************************************************************************************
116 *
117 * Function Name : I2C4_InitPins (PIO1_20, PIO1_21)
118 * Description : Configures pin routing and optionally pin electrical features.
119 *
120 * END ****************************************************************************************************************/
121 /* Function assigned for the Cortex-M33 (Core #0) */
I2C4_InitPins(void)122 void I2C4_InitPins(void)
123 {
124 /* Enables the clock for the I/O controller.: Enable Clock. */
125 CLOCK_EnableClock(kCLOCK_Iocon);
126
127 const uint32_t port1_pin20_config = (/* Pin is configured as FC4_TXD_SCL_MISO_WS */
128 IOCON_PIO_FUNC5 |
129 /* Selects pull-up function */
130 IOCON_PIO_MODE_PULLUP |
131 /* Standard mode, output slew rate control is enabled */
132 IOCON_PIO_SLEW_STANDARD |
133 /* Input function is not inverted */
134 IOCON_PIO_INV_DI |
135 /* Enables digital function */
136 IOCON_PIO_DIGITAL_EN |
137 /* Open drain is enabled */
138 IOCON_PIO_OPENDRAIN_EN);
139 /* PORT1 PIN20 [PIO1_20] (coords: 4) is configured as FC4_TXD_SCL_MISO_WS */
140 IOCON_PinMuxSet(IOCON, 1U, 20U, port1_pin20_config);
141
142 const uint32_t port1_pin21_config = (/* Pin is configured as FC4_RXD_SDA_MOSI_DATA */
143 IOCON_PIO_FUNC5 |
144 /* Selects pull-up function */
145 IOCON_PIO_MODE_PULLUP |
146 /* Standard mode, output slew rate control is enabled */
147 IOCON_PIO_SLEW_STANDARD |
148 /* Input function is not inverted */
149 IOCON_PIO_INV_DI |
150 /* Enables digital function */
151 IOCON_PIO_DIGITAL_EN |
152 /* Open drain is enabled */
153 IOCON_PIO_OPENDRAIN_EN);
154 /* PORT1 PIN21 [PIO1_21] (coords: 30) is configured as FC4_RXD_SDA_MOSI_DATA */
155 IOCON_PinMuxSet(IOCON, 1U, 21U, port1_pin21_config);
156 }
157
158 /* clang-format off */
159 /*
160 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
161 I2C4_DeinitPins:
162 - options: {callFromInitBoot: 'false', coreID: cm33_core0, enableClock: 'true'}
163 - pin_list:
164 - {pin_num: '4', peripheral: GPIO, signal: 'PIO1, 20', pin_signal: PIO1_20/FC7_RTS_SCL_SSEL1/CT_INP14/FC4_TXD_SCL_MISO_WS/PLU_OUT2, mode: inactive, slew_rate: standard,
165 invert: disabled, digi_mode: digital, open_drain: disabled}
166 - {pin_num: '30', peripheral: GPIO, signal: 'PIO1, 21', pin_signal: PIO1_21/FC7_CTS_SDA_SSEL0/CTIMER3_MAT2/FC4_RXD_SDA_MOSI_DATA/PLU_OUT3, mode: inactive, slew_rate: standard,
167 invert: disabled, digi_mode: digital, open_drain: disabled}
168 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
169 */
170 /* clang-format on */
171
172 /* FUNCTION ************************************************************************************************************
173 *
174 * Function Name : I2C4_DeinitPins
175 * Description : Configures pin routing and optionally pin electrical features.
176 *
177 * END ****************************************************************************************************************/
178 /* Function assigned for the Cortex-M33 (Core #0) */
I2C4_DeinitPins(void)179 void I2C4_DeinitPins(void)
180 {
181 /* Enables the clock for the I/O controller.: Enable Clock. */
182 CLOCK_EnableClock(kCLOCK_Iocon);
183
184 const uint32_t port1_pin20_config = (/* Pin is configured as PIO1_20 */
185 IOCON_PIO_FUNC0 |
186 /* No addition pin function */
187 IOCON_PIO_MODE_INACT |
188 /* Standard mode, output slew rate control is enabled */
189 IOCON_PIO_SLEW_STANDARD |
190 /* Input function is not inverted */
191 IOCON_PIO_INV_DI |
192 /* Enables digital function */
193 IOCON_PIO_DIGITAL_EN |
194 /* Open drain is disabled */
195 IOCON_PIO_OPENDRAIN_DI);
196 /* PORT1 PIN20 (coords: 4) is configured as PIO1_20 */
197 IOCON_PinMuxSet(IOCON, 1U, 20U, port1_pin20_config);
198
199 const uint32_t port1_pin21_config = (/* Pin is configured as PIO1_21 */
200 IOCON_PIO_FUNC0 |
201 /* No addition pin function */
202 IOCON_PIO_MODE_INACT |
203 /* Standard mode, output slew rate control is enabled */
204 IOCON_PIO_SLEW_STANDARD |
205 /* Input function is not inverted */
206 IOCON_PIO_INV_DI |
207 /* Enables digital function */
208 IOCON_PIO_DIGITAL_EN |
209 /* Open drain is disabled */
210 IOCON_PIO_OPENDRAIN_DI);
211 /* PORT1 PIN21 (coords: 30) is configured as PIO1_21 */
212 IOCON_PinMuxSet(IOCON, 1U, 21U, port1_pin21_config);
213 }
214
215 /* clang-format off */
216 /*
217 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
218 USART0_InitPins:
219 - options: {callFromInitBoot: 'true', coreID: cm33_core0, enableClock: 'true'}
220 - pin_list:
221 - {pin_num: '94', peripheral: FLEXCOMM0, signal: TXD_SCL_MISO_WS, pin_signal: PIO0_30/FC0_TXD_SCL_MISO_WS/SD1_D3/CTIMER0_MAT0/SCT0_OUT9/SECURE_GPIO0_30, mode: inactive,
222 slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
223 - {pin_num: '92', peripheral: FLEXCOMM0, signal: RXD_SDA_MOSI_DATA, pin_signal: PIO0_29/FC0_RXD_SDA_MOSI_DATA/SD1_D2/CTIMER2_MAT3/SCT0_OUT8/CMP0_OUT/PLU_OUT2/SECURE_GPIO0_29,
224 mode: inactive, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
225 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
226 */
227 /* clang-format on */
228
229 /* FUNCTION ************************************************************************************************************
230 *
231 * Function Name : USART0_InitPins
232 * Description : Configures pin routing and optionally pin electrical features.
233 *
234 * END ****************************************************************************************************************/
235 /* Function assigned for the Cortex-M33 (Core #0) */
USART0_InitPins(void)236 void USART0_InitPins(void)
237 {
238 /* Enables the clock for the I/O controller.: Enable Clock. */
239 CLOCK_EnableClock(kCLOCK_Iocon);
240
241 const uint32_t port0_pin29_config = (/* Pin is configured as FC0_RXD_SDA_MOSI_DATA */
242 IOCON_PIO_FUNC1 |
243 /* No addition pin function */
244 IOCON_PIO_MODE_INACT |
245 /* Standard mode, output slew rate control is enabled */
246 IOCON_PIO_SLEW_STANDARD |
247 /* Input function is not inverted */
248 IOCON_PIO_INV_DI |
249 /* Enables digital function */
250 IOCON_PIO_DIGITAL_EN |
251 /* Open drain is disabled */
252 IOCON_PIO_OPENDRAIN_DI);
253 /* PORT0 PIN29 (coords: 92) is configured as FC0_RXD_SDA_MOSI_DATA */
254 IOCON_PinMuxSet(IOCON, 0U, 29U, port0_pin29_config);
255
256 const uint32_t port0_pin30_config = (/* Pin is configured as FC0_TXD_SCL_MISO_WS */
257 IOCON_PIO_FUNC1 |
258 /* No addition pin function */
259 IOCON_PIO_MODE_INACT |
260 /* Standard mode, output slew rate control is enabled */
261 IOCON_PIO_SLEW_STANDARD |
262 /* Input function is not inverted */
263 IOCON_PIO_INV_DI |
264 /* Enables digital function */
265 IOCON_PIO_DIGITAL_EN |
266 /* Open drain is disabled */
267 IOCON_PIO_OPENDRAIN_DI);
268 /* PORT0 PIN30 (coords: 94) is configured as FC0_TXD_SCL_MISO_WS */
269 IOCON_PinMuxSet(IOCON, 0U, 30U, port0_pin30_config);
270 }
271
272 /* clang-format off */
273 /*
274 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
275 USART0_DeinitPins:
276 - options: {callFromInitBoot: 'false', coreID: cm33_core0, enableClock: 'true'}
277 - pin_list:
278 - {pin_num: '92', peripheral: GPIO, signal: 'PIO0, 29', pin_signal: PIO0_29/FC0_RXD_SDA_MOSI_DATA/SD1_D2/CTIMER2_MAT3/SCT0_OUT8/CMP0_OUT/PLU_OUT2/SECURE_GPIO0_29,
279 mode: inactive, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
280 - {pin_num: '94', peripheral: GPIO, signal: 'PIO0, 30', pin_signal: PIO0_30/FC0_TXD_SCL_MISO_WS/SD1_D3/CTIMER0_MAT0/SCT0_OUT9/SECURE_GPIO0_30, mode: inactive, slew_rate: standard,
281 invert: disabled, digi_mode: digital, open_drain: disabled}
282 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
283 */
284 /* clang-format on */
285
286 /* FUNCTION ************************************************************************************************************
287 *
288 * Function Name : USART0_DeinitPins
289 * Description : Configures pin routing and optionally pin electrical features.
290 *
291 * END ****************************************************************************************************************/
292 /* Function assigned for the Cortex-M33 (Core #0) */
USART0_DeinitPins(void)293 void USART0_DeinitPins(void)
294 {
295 /* Enables the clock for the I/O controller.: Enable Clock. */
296 CLOCK_EnableClock(kCLOCK_Iocon);
297
298 const uint32_t port0_pin29_config = (/* Pin is configured as PIO0_29 */
299 IOCON_PIO_FUNC0 |
300 /* No addition pin function */
301 IOCON_PIO_MODE_INACT |
302 /* Standard mode, output slew rate control is enabled */
303 IOCON_PIO_SLEW_STANDARD |
304 /* Input function is not inverted */
305 IOCON_PIO_INV_DI |
306 /* Enables digital function */
307 IOCON_PIO_DIGITAL_EN |
308 /* Open drain is disabled */
309 IOCON_PIO_OPENDRAIN_DI);
310 /* PORT0 PIN29 (coords: 92) is configured as PIO0_29 */
311 IOCON_PinMuxSet(IOCON, 0U, 29U, port0_pin29_config);
312
313 const uint32_t port0_pin30_config = (/* Pin is configured as PIO0_30 */
314 IOCON_PIO_FUNC0 |
315 /* No addition pin function */
316 IOCON_PIO_MODE_INACT |
317 /* Standard mode, output slew rate control is enabled */
318 IOCON_PIO_SLEW_STANDARD |
319 /* Input function is not inverted */
320 IOCON_PIO_INV_DI |
321 /* Enables digital function */
322 IOCON_PIO_DIGITAL_EN |
323 /* Open drain is disabled */
324 IOCON_PIO_OPENDRAIN_DI);
325 /* PORT0 PIN30 (coords: 94) is configured as PIO0_30 */
326 IOCON_PinMuxSet(IOCON, 0U, 30U, port0_pin30_config);
327 }
328
329 /* clang-format off */
330 /*
331 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
332 SPI7_InitPins:
333 - options: {callFromInitBoot: 'true', coreID: cm33_core0, enableClock: 'true'}
334 - pin_list:
335 - {pin_num: '90', peripheral: FLEXCOMM7, signal: TXD_SCL_MISO_WS, pin_signal: PIO0_19/FC4_RTS_SCL_SSEL1/UTICK_CAP0/CTIMER0_MAT2/SCT0_OUT2/FC7_TXD_SCL_MISO_WS/PLU_IN4/SECURE_GPIO0_19,
336 mode: pullUp, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
337 - {pin_num: '74', peripheral: FLEXCOMM7, signal: RXD_SDA_MOSI_DATA, pin_signal: PIO0_20/FC3_CTS_SDA_SSEL0/CTIMER1_MAT1/CT_INP15/SCT_GPI2/FC7_RXD_SDA_MOSI_DATA/LSPI_HS_SSEL0/PLU_IN5/SECURE_GPIO0_20/FC4_TXD_SCL_MISO_WS,
338 mode: pullUp, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
339 - {pin_num: '76', peripheral: FLEXCOMM7, signal: SCK, pin_signal: PIO0_21/FC3_RTS_SCL_SSEL1/UTICK_CAP3/CTIMER3_MAT3/SCT_GPI3/FC7_SCK/PLU_CLK/SECURE_GPIO0_21, mode: pullUp,
340 slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
341 - {pin_num: '4', peripheral: FLEXCOMM7, signal: RTS_SCL_SSEL1, pin_signal: PIO1_20/FC7_RTS_SCL_SSEL1/CT_INP14/FC4_TXD_SCL_MISO_WS/PLU_OUT2, mode: pullUp, slew_rate: standard,
342 invert: disabled, digi_mode: digital, open_drain: disabled}
343 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
344 */
345 /* clang-format on */
346
347 /* FUNCTION ************************************************************************************************************
348 *
349 * Function Name : SPI7_InitPins
350 * Description : Configures pin routing and optionally pin electrical features.
351 *
352 * END ****************************************************************************************************************/
353 /* Function assigned for the Cortex-M33 (Core #0) */
SPI7_InitPins(void)354 void SPI7_InitPins(void)
355 {
356 /* Enables the clock for the I/O controller.: Enable Clock. */
357 CLOCK_EnableClock(kCLOCK_Iocon);
358
359 const uint32_t port0_pin19_config = (/* Pin is configured as FC7_TXD_SCL_MISO_WS */
360 IOCON_PIO_FUNC7 |
361 /* Selects pull-up function */
362 IOCON_PIO_MODE_PULLUP |
363 /* Standard mode, output slew rate control is enabled */
364 IOCON_PIO_SLEW_STANDARD |
365 /* Input function is not inverted */
366 IOCON_PIO_INV_DI |
367 /* Enables digital function */
368 IOCON_PIO_DIGITAL_EN |
369 /* Open drain is disabled */
370 IOCON_PIO_OPENDRAIN_DI);
371 /* PORT0 PIN19 (coords: 90) is configured as FC7_TXD_SCL_MISO_WS */
372 IOCON_PinMuxSet(IOCON, 0U, 19U, port0_pin19_config);
373
374 const uint32_t port0_pin20_config = (/* Pin is configured as FC7_RXD_SDA_MOSI_DATA */
375 IOCON_PIO_FUNC7 |
376 /* Selects pull-up function */
377 IOCON_PIO_MODE_PULLUP |
378 /* Standard mode, output slew rate control is enabled */
379 IOCON_PIO_SLEW_STANDARD |
380 /* Input function is not inverted */
381 IOCON_PIO_INV_DI |
382 /* Enables digital function */
383 IOCON_PIO_DIGITAL_EN |
384 /* Open drain is disabled */
385 IOCON_PIO_OPENDRAIN_DI);
386 /* PORT0 PIN20 (coords: 74) is configured as FC7_RXD_SDA_MOSI_DATA */
387 IOCON_PinMuxSet(IOCON, 0U, 20U, port0_pin20_config);
388
389 const uint32_t port0_pin21_config = (/* Pin is configured as FC7_SCK */
390 IOCON_PIO_FUNC7 |
391 /* Selects pull-up function */
392 IOCON_PIO_MODE_PULLUP |
393 /* Standard mode, output slew rate control is enabled */
394 IOCON_PIO_SLEW_STANDARD |
395 /* Input function is not inverted */
396 IOCON_PIO_INV_DI |
397 /* Enables digital function */
398 IOCON_PIO_DIGITAL_EN |
399 /* Open drain is disabled */
400 IOCON_PIO_OPENDRAIN_DI);
401 /* PORT0 PIN21 (coords: 76) is configured as FC7_SCK */
402 IOCON_PinMuxSet(IOCON, 0U, 21U, port0_pin21_config);
403
404 const uint32_t port1_pin20_config = (/* Pin is configured as FC7_RTS_SCL_SSEL1 */
405 IOCON_PIO_FUNC1 |
406 /* Selects pull-up function */
407 IOCON_PIO_MODE_PULLUP |
408 /* Standard mode, output slew rate control is enabled */
409 IOCON_PIO_SLEW_STANDARD |
410 /* Input function is not inverted */
411 IOCON_PIO_INV_DI |
412 /* Enables digital function */
413 IOCON_PIO_DIGITAL_EN |
414 /* Open drain is disabled */
415 IOCON_PIO_OPENDRAIN_DI);
416 /* PORT1 PIN20 (coords: 4) is configured as FC7_RTS_SCL_SSEL1 */
417 IOCON_PinMuxSet(IOCON, 1U, 20U, port1_pin20_config);
418 }
419
420 /* clang-format off */
421 /*
422 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
423 SPI7_DeinitPins:
424 - options: {callFromInitBoot: 'false', coreID: cm33_core0, enableClock: 'true'}
425 - pin_list:
426 - {pin_num: '90', peripheral: GPIO, signal: 'PIO0, 19', pin_signal: PIO0_19/FC4_RTS_SCL_SSEL1/UTICK_CAP0/CTIMER0_MAT2/SCT0_OUT2/FC7_TXD_SCL_MISO_WS/PLU_IN4/SECURE_GPIO0_19,
427 mode: pullUp, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
428 - {pin_num: '74', peripheral: GPIO, signal: 'PIO0, 20', pin_signal: PIO0_20/FC3_CTS_SDA_SSEL0/CTIMER1_MAT1/CT_INP15/SCT_GPI2/FC7_RXD_SDA_MOSI_DATA/LSPI_HS_SSEL0/PLU_IN5/SECURE_GPIO0_20/FC4_TXD_SCL_MISO_WS,
429 mode: pullUp, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
430 - {pin_num: '76', peripheral: GPIO, signal: 'PIO0, 21', pin_signal: PIO0_21/FC3_RTS_SCL_SSEL1/UTICK_CAP3/CTIMER3_MAT3/SCT_GPI3/FC7_SCK/PLU_CLK/SECURE_GPIO0_21,
431 mode: pullUp, slew_rate: standard, invert: disabled, digi_mode: digital, open_drain: disabled}
432 - {pin_num: '4', peripheral: GPIO, signal: 'PIO1, 20', pin_signal: PIO1_20/FC7_RTS_SCL_SSEL1/CT_INP14/FC4_TXD_SCL_MISO_WS/PLU_OUT2, mode: pullUp, slew_rate: standard,
433 invert: disabled, digi_mode: digital, open_drain: disabled}
434 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
435 */
436 /* clang-format on */
437
438 /* FUNCTION ************************************************************************************************************
439 *
440 * Function Name : SPI7_DeinitPins
441 * Description : Configures pin routing and optionally pin electrical features.
442 *
443 * END ****************************************************************************************************************/
444 /* Function assigned for the Cortex-M33 (Core #0) */
SPI7_DeinitPins(void)445 void SPI7_DeinitPins(void)
446 {
447 /* Enables the clock for the I/O controller.: Enable Clock. */
448 CLOCK_EnableClock(kCLOCK_Iocon);
449
450 const uint32_t port0_pin19_config = (/* Pin is configured as PIO0_19 */
451 IOCON_PIO_FUNC0 |
452 /* Selects pull-up function */
453 IOCON_PIO_MODE_PULLUP |
454 /* Standard mode, output slew rate control is enabled */
455 IOCON_PIO_SLEW_STANDARD |
456 /* Input function is not inverted */
457 IOCON_PIO_INV_DI |
458 /* Enables digital function */
459 IOCON_PIO_DIGITAL_EN |
460 /* Open drain is disabled */
461 IOCON_PIO_OPENDRAIN_DI);
462 /* PORT0 PIN19 (coords: 90) is configured as PIO0_19 */
463 IOCON_PinMuxSet(IOCON, 0U, 19U, port0_pin19_config);
464
465 const uint32_t port0_pin20_config = (/* Pin is configured as PIO0_20 */
466 IOCON_PIO_FUNC0 |
467 /* Selects pull-up function */
468 IOCON_PIO_MODE_PULLUP |
469 /* Standard mode, output slew rate control is enabled */
470 IOCON_PIO_SLEW_STANDARD |
471 /* Input function is not inverted */
472 IOCON_PIO_INV_DI |
473 /* Enables digital function */
474 IOCON_PIO_DIGITAL_EN |
475 /* Open drain is disabled */
476 IOCON_PIO_OPENDRAIN_DI);
477 /* PORT0 PIN20 (coords: 74) is configured as PIO0_20 */
478 IOCON_PinMuxSet(IOCON, 0U, 20U, port0_pin20_config);
479
480 const uint32_t port0_pin21_config = (/* Pin is configured as PIO0_21 */
481 IOCON_PIO_FUNC0 |
482 /* Selects pull-up function */
483 IOCON_PIO_MODE_PULLUP |
484 /* Standard mode, output slew rate control is enabled */
485 IOCON_PIO_SLEW_STANDARD |
486 /* Input function is not inverted */
487 IOCON_PIO_INV_DI |
488 /* Enables digital function */
489 IOCON_PIO_DIGITAL_EN |
490 /* Open drain is disabled */
491 IOCON_PIO_OPENDRAIN_DI);
492 /* PORT0 PIN21 (coords: 76) is configured as PIO0_21 */
493 IOCON_PinMuxSet(IOCON, 0U, 21U, port0_pin21_config);
494
495 const uint32_t port1_pin20_config = (/* Pin is configured as PIO1_20 */
496 IOCON_PIO_FUNC0 |
497 /* Selects pull-up function */
498 IOCON_PIO_MODE_PULLUP |
499 /* Standard mode, output slew rate control is enabled */
500 IOCON_PIO_SLEW_STANDARD |
501 /* Input function is not inverted */
502 IOCON_PIO_INV_DI |
503 /* Enables digital function */
504 IOCON_PIO_DIGITAL_EN |
505 /* Open drain is disabled */
506 IOCON_PIO_OPENDRAIN_DI);
507 /* PORT1 PIN20 (coords: 4) is configured as PIO1_20 */
508 IOCON_PinMuxSet(IOCON, 1U, 20U, port1_pin20_config);
509 }
510 /***********************************************************************************************************************
511 * EOF
512 **********************************************************************************************************************/
513