1 /*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 /***********************************************************************************************************************
8 * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
9 * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
10 **********************************************************************************************************************/
11
12 /* clang-format off */
13 /*
14 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
15 !!GlobalInfo
16 product: Pins v15.0
17 processor: MIMXRT798S
18 package_id: MIMXRT798SGFOA
19 mcu_data: ksdk2_0
20 processor_version: 0.0.0
21 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
22 */
23 /* clang-format on */
24
25 #include "fsl_common.h"
26 #include "fsl_iopctl.h"
27 #include "pin_mux.h"
28
29 /* FUNCTION ************************************************************************************************************
30 *
31 * Function Name : BOARD_InitBootPins
32 * Description : Calls initialization functions.
33 *
34 * END ****************************************************************************************************************/
BOARD_InitBootPins(void)35 void BOARD_InitBootPins(void)
36 {
37 BOARD_InitPins();
38 }
39
40 /* clang-format off */
41 /*
42 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
43 BOARD_InitPins:
44 - options: {callFromInitBoot: 'true', coreID: cm33_core1, enableClock: 'true'}
45 - pin_list:
46 - {pin_num: R10, peripheral: LP_FLEXCOMM19, signal: P0, pin_signal: PIO8_14/LP_FLEXCOMM19_P0/CTIMER7_MAT2/SAI3_TX_SYNC/I3C2_SDA, input_buffer: enable}
47 - {pin_num: T10, peripheral: LP_FLEXCOMM19, signal: P1, pin_signal: PIO8_15/LP_FLEXCOMM19_P1/CTIMER7_MAT3/SAI3_TX_BCLK/I3C2_SCL}
48 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
49 */
50 /* clang-format on */
51
52 /* FUNCTION ************************************************************************************************************
53 *
54 * Function Name : BOARD_InitPins
55 * Description : Configures pin routing and optionally pin electrical features.
56 *
57 * END ****************************************************************************************************************/
58 /* Function assigned for the Cortex-M33 (Core #1) */
BOARD_InitPins(void)59 void BOARD_InitPins(void)
60 {
61 /* Reset IOPCTL1 module */
62 RESET_ClearPeripheralReset(kIOPCTL1_RST_SHIFT_RSTn);
63
64 const uint32_t port8_pin14_config = (/* Pin is configured as LP_FLEXCOMM19_P0 */
65 IOPCTL_PIO_FUNC1 |
66 /* Disable pull-up / pull-down function */
67 IOPCTL_PIO_PUPD_DI |
68 /* Enable pull-down function */
69 IOPCTL_PIO_PULLDOWN_EN |
70 /* Enables input buffer function */
71 IOPCTL_PIO_INBUF_EN |
72 /* Normal mode */
73 IOPCTL_PIO_SLEW_RATE_NORMAL |
74 /* Normal drive */
75 IOPCTL_PIO_FULLDRIVE_DI |
76 /* Analog mux is disabled */
77 IOPCTL_PIO_ANAMUX_DI |
78 /* Pseudo Output Drain is disabled */
79 IOPCTL_PIO_PSEDRAIN_DI |
80 /* Input function is not inverted */
81 IOPCTL_PIO_INV_DI);
82 /* PORT8 PIN14 (coords: R10) is configured as LP_FLEXCOMM19_P0 */
83 IOPCTL_PinMuxSet(8U, 14U, port8_pin14_config);
84
85 const uint32_t port8_pin15_config = (/* Pin is configured as LP_FLEXCOMM19_P1 */
86 IOPCTL_PIO_FUNC1 |
87 /* Disable pull-up / pull-down function */
88 IOPCTL_PIO_PUPD_DI |
89 /* Enable pull-down function */
90 IOPCTL_PIO_PULLDOWN_EN |
91 /* Disable input buffer function */
92 IOPCTL_PIO_INBUF_DI |
93 /* Normal mode */
94 IOPCTL_PIO_SLEW_RATE_NORMAL |
95 /* Normal drive */
96 IOPCTL_PIO_FULLDRIVE_DI |
97 /* Analog mux is disabled */
98 IOPCTL_PIO_ANAMUX_DI |
99 /* Pseudo Output Drain is disabled */
100 IOPCTL_PIO_PSEDRAIN_DI |
101 /* Input function is not inverted */
102 IOPCTL_PIO_INV_DI);
103 /* PORT8 PIN15 (coords: T10) is configured as LP_FLEXCOMM19_P1 */
104 IOPCTL_PinMuxSet(8U, 15U, port8_pin15_config);
105 }
106 /***********************************************************************************************************************
107 * EOF
108 **********************************************************************************************************************/
109