Callisto4Bootloader: board/pin_mux.c Source File

Callisto4Bootloader

pin_mux.c
Go to the documentation of this file.
1 /***********************************************************************************************************************
2 * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
3 * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
4 **********************************************************************************************************************/
5
6 /*
7 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
8 !!GlobalInfo
9 product: Pins v7.0
10 processor: MIMXRT1062xxxxA
11 package_id: MIMXRT1062DVL6A
12 mcu_data: ksdk2_0
13 processor_version: 7.0.1
14 board: MIMXRT1060-EVK
15 pin_labels:
16 - {pin_num: C9, pin_signal: GPIO_B0_09, label: USER_LED_RED, identifier: LCDIF_D5;USER_LED_RED}
17 - {pin_num: D9, pin_signal: GPIO_B0_10, label: USER_LED_GREEN, identifier: LCDIF_D6;USER_LED_GREEN}
18 - {pin_num: A10, pin_signal: GPIO_B0_11, label: USER_LED_BLUE, identifier: LCDIF_D7;USER_LED_BLUE}
19 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
20 */
21
22 #include "fsl_common.h"
23 #include "fsl_iomuxc.h"
24 #include "fsl_gpio.h"
25 #include "pin_mux.h"
26
27 /* FUNCTION ************************************************************************************************************
28 *
29 * Function Name : BOARD_InitBootPins
30 * Description : Calls initialization functions.
31 *
32 * END ****************************************************************************************************************/
33 void BOARD_InitBootPins(void) {
34 BOARD_InitPins();
35 }
36
37 /*
38 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
39 BOARD_InitPins:
40 - options: {callFromInitBoot: 'true', prefix: BOARD_, coreID: core0, enableClock: 'true'}
41 - pin_list:
42 - {pin_num: L14, peripheral: LPUART1, signal: RX, pin_signal: GPIO_AD_B0_13, software_input_on: Disable, hysteresis_enable: Disable, pull_up_down_config: Pull_Down_100K_Ohm,
43 pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
44 - {pin_num: K14, peripheral: LPUART1, signal: TX, pin_signal: GPIO_AD_B0_12, software_input_on: Disable, hysteresis_enable: Disable, pull_up_down_config: Pull_Down_100K_Ohm,
45 pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
46 - {pin_num: C9, peripheral: GPIO2, signal: 'gpio_io, 09', pin_signal: GPIO_B0_09, identifier: USER_LED_RED, direction: OUTPUT, pull_up_down_config: Pull_Up_100K_Ohm,
47 pull_keeper_select: Pull, drive_strength: R0_5, slew_rate: Fast}
48 - {pin_num: D9, peripheral: GPIO2, signal: 'gpio_io, 10', pin_signal: GPIO_B0_10, identifier: USER_LED_GREEN, direction: OUTPUT, pull_up_down_config: Pull_Up_100K_Ohm,
49 pull_keeper_select: Pull, drive_strength: R0_5, slew_rate: Fast}
50 - {pin_num: A10, peripheral: GPIO2, signal: 'gpio_io, 11', pin_signal: GPIO_B0_11, identifier: USER_LED_BLUE, direction: OUTPUT, pull_up_down_config: Pull_Up_100K_Ohm,
51 pull_keeper_select: Pull, drive_strength: R0_5, slew_rate: Fast}
52 - {pin_num: E12, peripheral: ENET, signal: 'enet_rx_data, 0', pin_signal: GPIO_B1_04, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
53 drive_strength: R0_5, slew_rate: Fast}
54 - {pin_num: D12, peripheral: ENET, signal: 'enet_rx_data, 1', pin_signal: GPIO_B1_05, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
55 drive_strength: R0_5, slew_rate: Fast}
56 - {pin_num: C12, peripheral: ENET, signal: enet_rx_en, pin_signal: GPIO_B1_06, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
57 drive_strength: R0_5, slew_rate: Fast}
58 - {pin_num: B12, peripheral: ENET, signal: 'enet_tx_data, 0', pin_signal: GPIO_B1_07, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
59 drive_strength: R0_5, slew_rate: Fast}
60 - {pin_num: A12, peripheral: ENET, signal: 'enet_tx_data, 1', pin_signal: GPIO_B1_08, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
61 drive_strength: R0_5, slew_rate: Fast}
62 - {pin_num: A13, peripheral: ENET, signal: enet_tx_en, pin_signal: GPIO_B1_09, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
63 drive_strength: R0_5, slew_rate: Fast}
64 - {pin_num: B13, peripheral: ENET, signal: enet_ref_clk, pin_signal: GPIO_B1_10, software_input_on: Enable, pull_keeper_enable: Disable, speed: MHZ_50, drive_strength: R0_6,
65 slew_rate: Fast}
66 - {pin_num: C13, peripheral: ENET, signal: enet_rx_er, pin_signal: GPIO_B1_11, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
67 drive_strength: R0_5, slew_rate: Fast}
68 - {pin_num: A7, peripheral: ENET, signal: enet_mdc, pin_signal: GPIO_EMC_40, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200, drive_strength: R0_5,
69 slew_rate: Fast}
70 - {pin_num: C7, peripheral: ENET, signal: enet_mdio, pin_signal: GPIO_EMC_41, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, open_drain: Enable,
71 speed: MHZ_50, drive_strength: R0_5, slew_rate: Fast}
72 - {pin_num: L11, peripheral: ENET, signal: 1588_EVENT2_OUT, pin_signal: GPIO_AD_B1_02}
73 - {pin_num: B11, peripheral: ENET2, signal: 'enet_rx_data, 0', pin_signal: GPIO_B1_01, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
74 drive_strength: R0_5, slew_rate: Fast}
75 - {pin_num: C11, peripheral: ENET2, signal: 'enet_rx_data, 1', pin_signal: GPIO_B1_02, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
76 drive_strength: R0_5, slew_rate: Fast}
77 - {pin_num: D11, peripheral: ENET2, signal: enet_rx_en, pin_signal: GPIO_B1_03, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
78 drive_strength: R0_5, slew_rate: Fast}
79 - {pin_num: C10, peripheral: ENET2, signal: 'enet_tx_data, 0', pin_signal: GPIO_B0_12, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
80 drive_strength: R0_5, slew_rate: Fast}
81 - {pin_num: D10, peripheral: ENET2, signal: 'enet_tx_data, 1', pin_signal: GPIO_B0_13, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
82 drive_strength: R0_5, slew_rate: Fast}
83 - {pin_num: E10, peripheral: ENET2, signal: enet_tx_en, pin_signal: GPIO_B0_14, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull, speed: MHZ_200,
84 drive_strength: R0_5, slew_rate: Fast}
85 - {pin_num: E11, peripheral: ENET2, signal: enet_ref_clk, pin_signal: GPIO_B0_15, software_input_on: Enable, pull_keeper_enable: Disable, speed: MHZ_50, drive_strength: R0_6,
86 slew_rate: Fast}
87 - {pin_num: A11, peripheral: ENET2, signal: enet_rx_er, pin_signal: GPIO_B1_00, software_input_on: Disable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull,
88 speed: MHZ_200, drive_strength: R0_5, slew_rate: Fast}
89 - {pin_num: J4, peripheral: LPSPI1, signal: SCK, pin_signal: GPIO_SD_B0_00, direction: OUTPUT}
90 - {pin_num: J3, peripheral: LPSPI1, signal: PCS0, pin_signal: GPIO_SD_B0_01, direction: OUTPUT}
91 - {pin_num: J1, peripheral: LPSPI1, signal: SDO, pin_signal: GPIO_SD_B0_02, direction: OUTPUT}
92 - {pin_num: K1, peripheral: LPSPI1, signal: SDI, pin_signal: GPIO_SD_B0_03, direction: INPUT}
93 - {pin_num: J14, peripheral: LPSPI3, signal: SCK, pin_signal: GPIO_AD_B1_15, direction: OUTPUT}
94 - {pin_num: H12, peripheral: LPSPI3, signal: PCS0, pin_signal: GPIO_AD_B1_12, direction: OUTPUT}
95 - {pin_num: H11, peripheral: LPSPI3, signal: SDI, pin_signal: GPIO_AD_B1_13, direction: INPUT}
96 - {pin_num: G12, peripheral: LPSPI3, signal: SDO, pin_signal: GPIO_AD_B1_14, direction: OUTPUT}
97 - {pin_num: J2, peripheral: GPIO3, signal: 'gpio_io, 17', pin_signal: GPIO_SD_B0_05, direction: OUTPUT, gpio_init_state: 'true'}
98 - {pin_num: B7, peripheral: GPIO3, signal: 'gpio_io, 25', pin_signal: GPIO_EMC_39, direction: OUTPUT, gpio_init_state: 'false'}
99 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
100 */
101
102 /* FUNCTION ************************************************************************************************************
103 *
104 * Function Name : BOARD_InitPins
105 * Description : Configures pin routing and optionally pin electrical features.
106 *
107 * END ****************************************************************************************************************/
108 void BOARD_InitPins(void) {
109 CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03U */
110
111 /* GPIO configuration of USER_LED_RED on GPIO_B0_09 (pin C9) */
112 gpio_pin_config_t USER_LED_RED_config = {
113 .direction = kGPIO_DigitalOutput,
114 .outputLogic = 0U,
115 .interruptMode = kGPIO_NoIntmode
116 };
117 /* Initialize GPIO functionality on GPIO_B0_09 (pin C9) */
118 GPIO_PinInit(GPIO2, 9U, &USER_LED_RED_config);
119
120 /* GPIO configuration of USER_LED_GREEN on GPIO_B0_10 (pin D9) */
121 gpio_pin_config_t USER_LED_GREEN_config = {
122 .direction = kGPIO_DigitalOutput,
123 .outputLogic = 0U,
124 .interruptMode = kGPIO_NoIntmode
125 };
126 /* Initialize GPIO functionality on GPIO_B0_10 (pin D9) */
127 GPIO_PinInit(GPIO2, 10U, &USER_LED_GREEN_config);
128
129 /* GPIO configuration of USER_LED_BLUE on GPIO_B0_11 (pin A10) */
130 gpio_pin_config_t USER_LED_BLUE_config = {
131 .direction = kGPIO_DigitalOutput,
132 .outputLogic = 0U,
133 .interruptMode = kGPIO_NoIntmode
134 };
135 /* Initialize GPIO functionality on GPIO_B0_11 (pin A10) */
136 GPIO_PinInit(GPIO2, 11U, &USER_LED_BLUE_config);
137
138 /* GPIO configuration of SD1_D3 on GPIO_SD_B0_05 (pin J2) */
139 gpio_pin_config_t SD1_D3_config = {
140 .direction = kGPIO_DigitalOutput,
141 .outputLogic = 1U,
142 .interruptMode = kGPIO_NoIntmode
143 };
144 /* Initialize GPIO functionality on GPIO_SD_B0_05 (pin J2) */
145 GPIO_PinInit(GPIO3, 17U, &SD1_D3_config);
146
147 /* GPIO configuration of SEMC_DQS on GPIO_EMC_39 (pin B7) */
148 gpio_pin_config_t SEMC_DQS_config = {
149 .direction = kGPIO_DigitalOutput,
150 .outputLogic = 0U,
151 .interruptMode = kGPIO_NoIntmode
152 };
153 /* Initialize GPIO functionality on GPIO_EMC_39 (pin B7) */
154 GPIO_PinInit(GPIO3, 25U, &SEMC_DQS_config);
155
156 IOMUXC_SetPinMux(
157 IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 is configured as LPUART1_TX */
158 0U); /* Software Input On Field: Input Path is determined by functionality */
159 IOMUXC_SetPinMux(
160 IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 is configured as LPUART1_RX */
161 0U); /* Software Input On Field: Input Path is determined by functionality */
162 IOMUXC_SetPinMux(
163 IOMUXC_GPIO_AD_B1_02_ENET_1588_EVENT2_OUT, /* GPIO_AD_B1_02 is configured as ENET_1588_EVENT2_OUT */
164 0U); /* Software Input On Field: Input Path is determined by functionality */
165 IOMUXC_SetPinMux(
166 IOMUXC_GPIO_AD_B1_12_LPSPI3_PCS0, /* GPIO_AD_B1_12 is configured as LPSPI3_PCS0 */
167 0U); /* Software Input On Field: Input Path is determined by functionality */
168 IOMUXC_SetPinMux(
169 IOMUXC_GPIO_AD_B1_13_LPSPI3_SDI, /* GPIO_AD_B1_13 is configured as LPSPI3_SDI */
170 0U); /* Software Input On Field: Input Path is determined by functionality */
171 IOMUXC_SetPinMux(
172 IOMUXC_GPIO_AD_B1_14_LPSPI3_SDO, /* GPIO_AD_B1_14 is configured as LPSPI3_SDO */
173 0U); /* Software Input On Field: Input Path is determined by functionality */
174 IOMUXC_SetPinMux(
175 IOMUXC_GPIO_AD_B1_15_LPSPI3_SCK, /* GPIO_AD_B1_15 is configured as LPSPI3_SCK */
176 0U); /* Software Input On Field: Input Path is determined by functionality */
177 IOMUXC_SetPinMux(
178 IOMUXC_GPIO_B0_09_GPIO2_IO09, /* GPIO_B0_09 is configured as GPIO2_IO09 */
179 0U); /* Software Input On Field: Input Path is determined by functionality */
180 IOMUXC_SetPinMux(
181 IOMUXC_GPIO_B0_10_GPIO2_IO10, /* GPIO_B0_10 is configured as GPIO2_IO10 */
182 0U); /* Software Input On Field: Input Path is determined by functionality */
183 IOMUXC_SetPinMux(
184 IOMUXC_GPIO_B0_11_GPIO2_IO11, /* GPIO_B0_11 is configured as GPIO2_IO11 */
185 0U); /* Software Input On Field: Input Path is determined by functionality */
186 IOMUXC_SetPinMux(
187 IOMUXC_GPIO_B0_12_ENET2_TDATA00, /* GPIO_B0_12 is configured as ENET2_TDATA00 */
188 0U); /* Software Input On Field: Input Path is determined by functionality */
189 IOMUXC_SetPinMux(
190 IOMUXC_GPIO_B0_13_ENET2_TDATA01, /* GPIO_B0_13 is configured as ENET2_TDATA01 */
191 0U); /* Software Input On Field: Input Path is determined by functionality */
192 IOMUXC_SetPinMux(
193 IOMUXC_GPIO_B0_14_ENET2_TX_EN, /* GPIO_B0_14 is configured as ENET2_TX_EN */
194 0U); /* Software Input On Field: Input Path is determined by functionality */
195 IOMUXC_SetPinMux(
196 IOMUXC_GPIO_B0_15_ENET2_REF_CLK2, /* GPIO_B0_15 is configured as ENET2_REF_CLK2 */
197 1U); /* Software Input On Field: Force input path of pad GPIO_B0_15 */
198 IOMUXC_SetPinMux(
199 IOMUXC_GPIO_B1_00_ENET2_RX_ER, /* GPIO_B1_00 is configured as ENET2_RX_ER */
200 0U); /* Software Input On Field: Input Path is determined by functionality */
201 IOMUXC_SetPinMux(
202 IOMUXC_GPIO_B1_01_ENET2_RDATA00, /* GPIO_B1_01 is configured as ENET2_RDATA00 */
203 0U); /* Software Input On Field: Input Path is determined by functionality */
204 IOMUXC_SetPinMux(
205 IOMUXC_GPIO_B1_02_ENET2_RDATA01, /* GPIO_B1_02 is configured as ENET2_RDATA01 */
206 0U); /* Software Input On Field: Input Path is determined by functionality */
207 IOMUXC_SetPinMux(
208 IOMUXC_GPIO_B1_03_ENET2_RX_EN, /* GPIO_B1_03 is configured as ENET2_RX_EN */
209 0U); /* Software Input On Field: Input Path is determined by functionality */
210 IOMUXC_SetPinMux(
211 IOMUXC_GPIO_B1_04_ENET_RX_DATA00, /* GPIO_B1_04 is configured as ENET_RX_DATA00 */
212 0U); /* Software Input On Field: Input Path is determined by functionality */
213 IOMUXC_SetPinMux(
214 IOMUXC_GPIO_B1_05_ENET_RX_DATA01, /* GPIO_B1_05 is configured as ENET_RX_DATA01 */
215 0U); /* Software Input On Field: Input Path is determined by functionality */
216 IOMUXC_SetPinMux(
217 IOMUXC_GPIO_B1_06_ENET_RX_EN, /* GPIO_B1_06 is configured as ENET_RX_EN */
218 0U); /* Software Input On Field: Input Path is determined by functionality */
219 IOMUXC_SetPinMux(
220 IOMUXC_GPIO_B1_07_ENET_TX_DATA00, /* GPIO_B1_07 is configured as ENET_TX_DATA00 */
221 0U); /* Software Input On Field: Input Path is determined by functionality */
222 IOMUXC_SetPinMux(
223 IOMUXC_GPIO_B1_08_ENET_TX_DATA01, /* GPIO_B1_08 is configured as ENET_TX_DATA01 */
224 0U); /* Software Input On Field: Input Path is determined by functionality */
225 IOMUXC_SetPinMux(
226 IOMUXC_GPIO_B1_09_ENET_TX_EN, /* GPIO_B1_09 is configured as ENET_TX_EN */
227 0U); /* Software Input On Field: Input Path is determined by functionality */
228 IOMUXC_SetPinMux(
229 IOMUXC_GPIO_B1_10_ENET_REF_CLK, /* GPIO_B1_10 is configured as ENET_REF_CLK */
230 1U); /* Software Input On Field: Force input path of pad GPIO_B1_10 */
231 IOMUXC_SetPinMux(
232 IOMUXC_GPIO_B1_11_ENET_RX_ER, /* GPIO_B1_11 is configured as ENET_RX_ER */
233 0U); /* Software Input On Field: Input Path is determined by functionality */
234 IOMUXC_SetPinMux(
235 IOMUXC_GPIO_EMC_39_GPIO3_IO25, /* GPIO_EMC_39 is configured as GPIO3_IO25 */
236 0U); /* Software Input On Field: Input Path is determined by functionality */
237 IOMUXC_SetPinMux(
238 IOMUXC_GPIO_EMC_40_ENET_MDC, /* GPIO_EMC_40 is configured as ENET_MDC */
239 0U); /* Software Input On Field: Input Path is determined by functionality */
240 IOMUXC_SetPinMux(
241 IOMUXC_GPIO_EMC_41_ENET_MDIO, /* GPIO_EMC_41 is configured as ENET_MDIO */
242 0U); /* Software Input On Field: Input Path is determined by functionality */
243 IOMUXC_SetPinMux(
244 IOMUXC_GPIO_SD_B0_00_LPSPI1_SCK, /* GPIO_SD_B0_00 is configured as LPSPI1_SCK */
245 0U); /* Software Input On Field: Input Path is determined by functionality */
246 IOMUXC_SetPinMux(
247 IOMUXC_GPIO_SD_B0_01_LPSPI1_PCS0, /* GPIO_SD_B0_01 is configured as LPSPI1_PCS0 */
248 0U); /* Software Input On Field: Input Path is determined by functionality */
249 IOMUXC_SetPinMux(
250 IOMUXC_GPIO_SD_B0_02_LPSPI1_SDO, /* GPIO_SD_B0_02 is configured as LPSPI1_SDO */
251 0U); /* Software Input On Field: Input Path is determined by functionality */
252 IOMUXC_SetPinMux(
253 IOMUXC_GPIO_SD_B0_03_LPSPI1_SDI, /* GPIO_SD_B0_03 is configured as LPSPI1_SDI */
254 0U); /* Software Input On Field: Input Path is determined by functionality */
255 IOMUXC_SetPinMux(
256 IOMUXC_GPIO_SD_B0_05_GPIO3_IO17, /* GPIO_SD_B0_05 is configured as GPIO3_IO17 */
257 0U); /* Software Input On Field: Input Path is determined by functionality */
258 IOMUXC_GPR->GPR27 = ((IOMUXC_GPR->GPR27 &
259 (~(IOMUXC_GPR_GPR27_GPIO_MUX2_GPIO_SEL_MASK))) /* Mask bits to zero which are setting */
260 | IOMUXC_GPR_GPR27_GPIO_MUX2_GPIO_SEL(0x00U) /* GPIO2 and GPIO7 share same IO MUX function, GPIO_MUX2 selects one GPIO function: 0x00U */
261 );
262 IOMUXC_GPR->GPR28 = ((IOMUXC_GPR->GPR28 &
263 (~(IOMUXC_GPR_GPR28_GPIO_MUX3_GPIO_SEL_MASK))) /* Mask bits to zero which are setting */
264 | IOMUXC_GPR_GPR28_GPIO_MUX3_GPIO_SEL(0x00U) /* GPIO3 and GPIO8 share same IO MUX function, GPIO_MUX3 selects one GPIO function: 0x00U */
265 );
266 IOMUXC_SetPinConfig(
267 IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 PAD functional properties : */
268 0x10B0U); /* Slew Rate Field: Slow Slew Rate
269 Drive Strength Field: R0/6
270 Speed Field: medium(100MHz)
271 Open Drain Enable Field: Open Drain Disabled
272 Pull / Keep Enable Field: Pull/Keeper Enabled
273 Pull / Keep Select Field: Keeper
274 Pull Up / Down Config. Field: 100K Ohm Pull Down
275 Hyst. Enable Field: Hysteresis Disabled */
276 IOMUXC_SetPinConfig(
277 IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 PAD functional properties : */
278 0x10B0U); /* Slew Rate Field: Slow Slew Rate
279 Drive Strength Field: R0/6
280 Speed Field: medium(100MHz)
281 Open Drain Enable Field: Open Drain Disabled
282 Pull / Keep Enable Field: Pull/Keeper Enabled
283 Pull / Keep Select Field: Keeper
284 Pull Up / Down Config. Field: 100K Ohm Pull Down
285 Hyst. Enable Field: Hysteresis Disabled */
286 IOMUXC_SetPinConfig(
287 IOMUXC_GPIO_B0_09_GPIO2_IO09, /* GPIO_B0_09 PAD functional properties : */
288 0xB0A9U); /* Slew Rate Field: Fast Slew Rate
289 Drive Strength Field: R0/5
290 Speed Field: medium(100MHz)
291 Open Drain Enable Field: Open Drain Disabled
292 Pull / Keep Enable Field: Pull/Keeper Enabled
293 Pull / Keep Select Field: Pull
294 Pull Up / Down Config. Field: 100K Ohm Pull Up
295 Hyst. Enable Field: Hysteresis Disabled */
296 IOMUXC_SetPinConfig(
297 IOMUXC_GPIO_B0_10_GPIO2_IO10, /* GPIO_B0_10 PAD functional properties : */
298 0xB0A9U); /* Slew Rate Field: Fast Slew Rate
299 Drive Strength Field: R0/5
300 Speed Field: medium(100MHz)
301 Open Drain Enable Field: Open Drain Disabled
302 Pull / Keep Enable Field: Pull/Keeper Enabled
303 Pull / Keep Select Field: Pull
304 Pull Up / Down Config. Field: 100K Ohm Pull Up
305 Hyst. Enable Field: Hysteresis Disabled */
306 IOMUXC_SetPinConfig(
307 IOMUXC_GPIO_B0_11_GPIO2_IO11, /* GPIO_B0_11 PAD functional properties : */
308 0xB0A9U); /* Slew Rate Field: Fast Slew Rate
309 Drive Strength Field: R0/5
310 Speed Field: medium(100MHz)
311 Open Drain Enable Field: Open Drain Disabled
312 Pull / Keep Enable Field: Pull/Keeper Enabled
313 Pull / Keep Select Field: Pull
314 Pull Up / Down Config. Field: 100K Ohm Pull Up
315 Hyst. Enable Field: Hysteresis Disabled */
316 IOMUXC_SetPinConfig(
317 IOMUXC_GPIO_B0_12_ENET2_TDATA00, /* GPIO_B0_12 PAD functional properties : */
318 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
319 Drive Strength Field: R0/5
320 Speed Field: max(200MHz)
321 Open Drain Enable Field: Open Drain Disabled
322 Pull / Keep Enable Field: Pull/Keeper Enabled
323 Pull / Keep Select Field: Pull
324 Pull Up / Down Config. Field: 100K Ohm Pull Up
325 Hyst. Enable Field: Hysteresis Disabled */
326 IOMUXC_SetPinConfig(
327 IOMUXC_GPIO_B0_13_ENET2_TDATA01, /* GPIO_B0_13 PAD functional properties : */
328 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
329 Drive Strength Field: R0/5
330 Speed Field: max(200MHz)
331 Open Drain Enable Field: Open Drain Disabled
332 Pull / Keep Enable Field: Pull/Keeper Enabled
333 Pull / Keep Select Field: Pull
334 Pull Up / Down Config. Field: 100K Ohm Pull Up
335 Hyst. Enable Field: Hysteresis Disabled */
336 IOMUXC_SetPinConfig(
337 IOMUXC_GPIO_B0_14_ENET2_TX_EN, /* GPIO_B0_14 PAD functional properties : */
338 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
339 Drive Strength Field: R0/5
340 Speed Field: max(200MHz)
341 Open Drain Enable Field: Open Drain Disabled
342 Pull / Keep Enable Field: Pull/Keeper Enabled
343 Pull / Keep Select Field: Pull
344 Pull Up / Down Config. Field: 100K Ohm Pull Up
345 Hyst. Enable Field: Hysteresis Disabled */
346 IOMUXC_SetPinConfig(
347 IOMUXC_GPIO_B0_15_ENET2_REF_CLK2, /* GPIO_B0_15 PAD functional properties : */
348 0x31U); /* Slew Rate Field: Fast Slew Rate
349 Drive Strength Field: R0/6
350 Speed Field: low(50MHz)
351 Open Drain Enable Field: Open Drain Disabled
352 Pull / Keep Enable Field: Pull/Keeper Disabled
353 Pull / Keep Select Field: Keeper
354 Pull Up / Down Config. Field: 100K Ohm Pull Down
355 Hyst. Enable Field: Hysteresis Disabled */
356 IOMUXC_SetPinConfig(
357 IOMUXC_GPIO_B1_00_ENET2_RX_ER, /* GPIO_B1_00 PAD functional properties : */
358 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
359 Drive Strength Field: R0/5
360 Speed Field: max(200MHz)
361 Open Drain Enable Field: Open Drain Disabled
362 Pull / Keep Enable Field: Pull/Keeper Enabled
363 Pull / Keep Select Field: Pull
364 Pull Up / Down Config. Field: 100K Ohm Pull Up
365 Hyst. Enable Field: Hysteresis Disabled */
366 IOMUXC_SetPinConfig(
367 IOMUXC_GPIO_B1_01_ENET2_RDATA00, /* GPIO_B1_01 PAD functional properties : */
368 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
369 Drive Strength Field: R0/5
370 Speed Field: max(200MHz)
371 Open Drain Enable Field: Open Drain Disabled
372 Pull / Keep Enable Field: Pull/Keeper Enabled
373 Pull / Keep Select Field: Pull
374 Pull Up / Down Config. Field: 100K Ohm Pull Up
375 Hyst. Enable Field: Hysteresis Disabled */
376 IOMUXC_SetPinConfig(
377 IOMUXC_GPIO_B1_02_ENET2_RDATA01, /* GPIO_B1_02 PAD functional properties : */
378 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
379 Drive Strength Field: R0/5
380 Speed Field: max(200MHz)
381 Open Drain Enable Field: Open Drain Disabled
382 Pull / Keep Enable Field: Pull/Keeper Enabled
383 Pull / Keep Select Field: Pull
384 Pull Up / Down Config. Field: 100K Ohm Pull Up
385 Hyst. Enable Field: Hysteresis Disabled */
386 IOMUXC_SetPinConfig(
387 IOMUXC_GPIO_B1_03_ENET2_RX_EN, /* GPIO_B1_03 PAD functional properties : */
388 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
389 Drive Strength Field: R0/5
390 Speed Field: max(200MHz)
391 Open Drain Enable Field: Open Drain Disabled
392 Pull / Keep Enable Field: Pull/Keeper Enabled
393 Pull / Keep Select Field: Pull
394 Pull Up / Down Config. Field: 100K Ohm Pull Up
395 Hyst. Enable Field: Hysteresis Disabled */
396 IOMUXC_SetPinConfig(
397 IOMUXC_GPIO_B1_04_ENET_RX_DATA00, /* GPIO_B1_04 PAD functional properties : */
398 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
399 Drive Strength Field: R0/5
400 Speed Field: max(200MHz)
401 Open Drain Enable Field: Open Drain Disabled
402 Pull / Keep Enable Field: Pull/Keeper Enabled
403 Pull / Keep Select Field: Pull
404 Pull Up / Down Config. Field: 100K Ohm Pull Up
405 Hyst. Enable Field: Hysteresis Disabled */
406 IOMUXC_SetPinConfig(
407 IOMUXC_GPIO_B1_05_ENET_RX_DATA01, /* GPIO_B1_05 PAD functional properties : */
408 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
409 Drive Strength Field: R0/5
410 Speed Field: max(200MHz)
411 Open Drain Enable Field: Open Drain Disabled
412 Pull / Keep Enable Field: Pull/Keeper Enabled
413 Pull / Keep Select Field: Pull
414 Pull Up / Down Config. Field: 100K Ohm Pull Up
415 Hyst. Enable Field: Hysteresis Disabled */
416 IOMUXC_SetPinConfig(
417 IOMUXC_GPIO_B1_06_ENET_RX_EN, /* GPIO_B1_06 PAD functional properties : */
418 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
419 Drive Strength Field: R0/5
420 Speed Field: max(200MHz)
421 Open Drain Enable Field: Open Drain Disabled
422 Pull / Keep Enable Field: Pull/Keeper Enabled
423 Pull / Keep Select Field: Pull
424 Pull Up / Down Config. Field: 100K Ohm Pull Up
425 Hyst. Enable Field: Hysteresis Disabled */
426 IOMUXC_SetPinConfig(
427 IOMUXC_GPIO_B1_07_ENET_TX_DATA00, /* GPIO_B1_07 PAD functional properties : */
428 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
429 Drive Strength Field: R0/5
430 Speed Field: max(200MHz)
431 Open Drain Enable Field: Open Drain Disabled
432 Pull / Keep Enable Field: Pull/Keeper Enabled
433 Pull / Keep Select Field: Pull
434 Pull Up / Down Config. Field: 100K Ohm Pull Up
435 Hyst. Enable Field: Hysteresis Disabled */
436 IOMUXC_SetPinConfig(
437 IOMUXC_GPIO_B1_08_ENET_TX_DATA01, /* GPIO_B1_08 PAD functional properties : */
438 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
439 Drive Strength Field: R0/5
440 Speed Field: max(200MHz)
441 Open Drain Enable Field: Open Drain Disabled
442 Pull / Keep Enable Field: Pull/Keeper Enabled
443 Pull / Keep Select Field: Pull
444 Pull Up / Down Config. Field: 100K Ohm Pull Up
445 Hyst. Enable Field: Hysteresis Disabled */
446 IOMUXC_SetPinConfig(
447 IOMUXC_GPIO_B1_09_ENET_TX_EN, /* GPIO_B1_09 PAD functional properties : */
448 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
449 Drive Strength Field: R0/5
450 Speed Field: max(200MHz)
451 Open Drain Enable Field: Open Drain Disabled
452 Pull / Keep Enable Field: Pull/Keeper Enabled
453 Pull / Keep Select Field: Pull
454 Pull Up / Down Config. Field: 100K Ohm Pull Up
455 Hyst. Enable Field: Hysteresis Disabled */
456 IOMUXC_SetPinConfig(
457 IOMUXC_GPIO_B1_10_ENET_REF_CLK, /* GPIO_B1_10 PAD functional properties : */
458 0x31U); /* Slew Rate Field: Fast Slew Rate
459 Drive Strength Field: R0/6
460 Speed Field: low(50MHz)
461 Open Drain Enable Field: Open Drain Disabled
462 Pull / Keep Enable Field: Pull/Keeper Disabled
463 Pull / Keep Select Field: Keeper
464 Pull Up / Down Config. Field: 100K Ohm Pull Down
465 Hyst. Enable Field: Hysteresis Disabled */
466 IOMUXC_SetPinConfig(
467 IOMUXC_GPIO_B1_11_ENET_RX_ER, /* GPIO_B1_11 PAD functional properties : */
468 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
469 Drive Strength Field: R0/5
470 Speed Field: max(200MHz)
471 Open Drain Enable Field: Open Drain Disabled
472 Pull / Keep Enable Field: Pull/Keeper Enabled
473 Pull / Keep Select Field: Pull
474 Pull Up / Down Config. Field: 100K Ohm Pull Up
475 Hyst. Enable Field: Hysteresis Disabled */
476 IOMUXC_SetPinConfig(
477 IOMUXC_GPIO_EMC_40_ENET_MDC, /* GPIO_EMC_40 PAD functional properties : */
478 0xB0E9U); /* Slew Rate Field: Fast Slew Rate
479 Drive Strength Field: R0/5
480 Speed Field: max(200MHz)
481 Open Drain Enable Field: Open Drain Disabled
482 Pull / Keep Enable Field: Pull/Keeper Enabled
483 Pull / Keep Select Field: Pull
484 Pull Up / Down Config. Field: 100K Ohm Pull Up
485 Hyst. Enable Field: Hysteresis Disabled */
486 IOMUXC_SetPinConfig(
487 IOMUXC_GPIO_EMC_41_ENET_MDIO, /* GPIO_EMC_41 PAD functional properties : */
488 0xB829U); /* Slew Rate Field: Fast Slew Rate
489 Drive Strength Field: R0/5
490 Speed Field: low(50MHz)
491 Open Drain Enable Field: Open Drain Enabled
492 Pull / Keep Enable Field: Pull/Keeper Enabled
493 Pull / Keep Select Field: Pull
494 Pull Up / Down Config. Field: 100K Ohm Pull Up
495 Hyst. Enable Field: Hysteresis Disabled */
496 /*
497 IOMUXC_SetPinConfig(
498 IOMUXC_GPIO_AD_B1_15_LPSPI3_SCK, // GPIO_SD_B0_00 PAD functional properties :
499 0x10B0u); // Slew Rate Field: Slow Slew Rate
500 // Drive Strength Field: R0/6
501 // Speed Field: medium(100MHz)
502 // Open Drain Enable Field: Open Drain Disabled
503 // Pull / Keep Enable Field: Pull/Keeper Enabled
504 // Pull / Keep Select Field: Keeper
505 // Pull Up / Down Config. Field: 100K Ohm Pull Down
506 // Hyst. Enable Field: Hysteresis Disabled
507 IOMUXC_SetPinConfig(
508 IOMUXC_GPIO_AD_B1_12_LPSPI3_PCS0, // GPIO_SD_B0_01 PAD functional properties :
509 0x10B0u); // Slew Rate Field: Slow Slew Rate
510 // Drive Strength Field: R0/6
511 // Speed Field: medium(100MHz)
512 // Open Drain Enable Field: Open Drain Disabled
513 // Pull / Keep Enable Field: Pull/Keeper Enabled
514 // Pull / Keep Select Field: Keeper
515 // Pull Up / Down Config. Field: 100K Ohm Pull Down
516 // Hyst. Enable Field: Hysteresis Disabled
517 IOMUXC_SetPinConfig(
518 IOMUXC_GPIO_AD_B1_14_LPSPI3_SDO, // GPIO_SD_B0_02 PAD functional properties :
519 0x10B0u); // Slew Rate Field: Slow Slew Rate
520 // Drive Strength Field: R0/6
521 // Speed Field: medium(100MHz)
522 // Open Drain Enable Field: Open Drain Disabled
523 // Pull / Keep Enable Field: Pull/Keeper Enabled
524 // Pull / Keep Select Field: Keeper
525 // Pull Up / Down Config. Field: 100K Ohm Pull Down
526 // Hyst. Enable Field: Hysteresis Disabled
527 IOMUXC_SetPinConfig(
528 IOMUXC_GPIO_AD_B1_13_LPSPI3_SDI, // GPIO_SD_B0_03 PAD functional properties :
529 0x10B0u); // Slew Rate Field: Slow Slew Rate
530 // Drive Strength Field: R0/6
531 // Speed Field: medium(100MHz)
532 // Open Drain Enable Field: Open Drain Disabled
533 // Pull / Keep Enable Field: Pull/Keeper Enabled
534 // Pull / Keep Select Field: Keeper
535 // Pull Up / Down Config. Field: 100K Ohm Pull Down
536 // Hyst. Enable Field: Hysteresis Disabled
537 */
538
539 // Pin configure for TJA1102
540 IOMUXC_SetPinConfig(
541 IOMUXC_GPIO_SD_B0_05_GPIO3_IO17, // GPIO_SD_B0_05 PAD functional properties :
542 0x10B0u); // Slew Rate Field: Slow Slew Rate
543 // Drive Strength Field: R0/6
544 // Speed Field: medium(100MHz)
545 // Open Drain Enable Field: Open Drain Disabled
546 // Pull / Keep Enable Field: Pull/Keeper Enabled
547 // Pull / Keep Select Field: Keeper
548 // Pull Up / Down Config. Field: 100K Ohm Pull Down
549 // Hyst. Enable Field: Hysteresis Disabled
550 IOMUXC_SetPinConfig(
551 IOMUXC_GPIO_EMC_39_GPIO3_IO25, // GPIO_EMC_39 PAD functional properties :
552 0x10B0u); // Slew Rate Field: Slow Slew Rate
553 // Drive Strength Field: R0/6
554 // Speed Field: medium(100MHz)
555 // Open Drain Enable Field: Open Drain Disabled
556 // Pull / Keep Enable Field: Pull/Keeper Enabled
557 // Pull / Keep Select Field: Keeper
558 // Pull Up / Down Config. Field: 100K Ohm Pull Down
559 // Hyst. Enable Field: Hysteresis Disabled
560
561
562 }
563
564 /***********************************************************************************************************************
565 * EOF
566 **********************************************************************************************************************/
IOMUXC_GPR_GPR28_GPIO_MUX3_GPIO_SEL
#define IOMUXC_GPR_GPR28_GPIO_MUX3_GPIO_SEL(x)
Definition: MIMXRT1062.h:24284
IOMUXC_GPR_GPR27_GPIO_MUX2_GPIO_SEL_MASK
#define IOMUXC_GPR_GPR27_GPIO_MUX2_GPIO_SEL_MASK
Definition: MIMXRT1062.h:24271
pin_mux.h
GPIO2
#define GPIO2
Definition: MIMXRT1062.h:20744
IOMUXC_GPR_GPR27_GPIO_MUX2_GPIO_SEL
#define IOMUXC_GPR_GPR27_GPIO_MUX2_GPIO_SEL(x)
Definition: MIMXRT1062.h:24275
GPIO3
#define GPIO3
Definition: MIMXRT1062.h:20748
IOMUXC_GPR
#define IOMUXC_GPR
Definition: MIMXRT1062.h:24372
BOARD_InitBootPins
void BOARD_InitBootPins(void)
Calls initialization functions.
Definition: pin_mux.c:33
BOARD_InitPins
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:108
IOMUXC_GPR_GPR28_GPIO_MUX3_GPIO_SEL_MASK
#define IOMUXC_GPR_GPR28_GPIO_MUX3_GPIO_SEL_MASK
Definition: MIMXRT1062.h:24280