ISSDK  1.8
IoT Sensing Software Development Kit
pin_mux.c
Go to the documentation of this file.
1 /*
2  * Copyright 2020 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 /*
14  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
15 !!GlobalInfo
16 product: Pins v7.0
17 processor: MIMXRT1024xxxxx
18 package_id: MIMXRT1024DAG5A
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 
24 #include "fsl_common.h"
25 #include "fsl_iomuxc.h"
26 #include "pin_mux.h"
27 
28 /* FUNCTION ************************************************************************************************************
29  *
30  * Function Name : BOARD_InitBootPins
31  * Description : Calls initialization functions.
32  *
33  * END ****************************************************************************************************************/
34 void BOARD_InitBootPins(void) {
36 }
37 
38 /*
39  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
40 BOARD_InitPins:
41 - options: {callFromInitBoot: 'true', coreID: core0, enableClock: 'true'}
42 - pin_list:
43  - {pin_num: '101', peripheral: LPUART1, signal: RX, pin_signal: GPIO_AD_B0_07, slew_rate: Slow, software_input_on: Disable, open_drain: Disable, speed: MHZ_100,
44  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
45  - {pin_num: '105', peripheral: LPUART1, signal: TX, pin_signal: GPIO_AD_B0_06, slew_rate: Slow, software_input_on: Disable, open_drain: Disable, speed: MHZ_100,
46  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
47  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
48  */
49 
50 /* FUNCTION ************************************************************************************************************
51  *
52  * Function Name : BOARD_InitPins
53  * Description : Configures pin routing and optionally pin electrical features.
54  *
55  * END ****************************************************************************************************************/
56 void BOARD_InitPins(void) {
57  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
58 
59  IOMUXC_SetPinMux(
60  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 is configured as LPUART1_TX */
61  0U); /* Software Input On Field: Input Path is determined by functionality */
62  IOMUXC_SetPinMux(
63  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 is configured as LPUART1_RX */
64  0U); /* Software Input On Field: Input Path is determined by functionality */
65  IOMUXC_SetPinConfig(
66  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 PAD functional properties : */
67  0x10B0u); /* Slew Rate Field: Slow Slew Rate
68  Drive Strength Field: R0/6
69  Speed Field: medium(100MHz)
70  Open Drain Enable Field: Open Drain Disabled
71  Pull / Keep Enable Field: Pull/Keeper Enabled
72  Pull / Keep Select Field: Keeper
73  Pull Up / Down Config. Field: 100K Ohm Pull Down
74  Hyst. Enable Field: Hysteresis Disabled */
75  IOMUXC_SetPinConfig(
76  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 PAD functional properties : */
77  0x10B0u); /* Slew Rate Field: Slow Slew Rate
78  Drive Strength Field: R0/6
79  Speed Field: medium(100MHz)
80  Open Drain Enable Field: Open Drain Disabled
81  Pull / Keep Enable Field: Pull/Keeper Enabled
82  Pull / Keep Select Field: Keeper
83  Pull Up / Down Config. Field: 100K Ohm Pull Down
84  Hyst. Enable Field: Hysteresis Disabled */
85 }
86 
87 
88 /*
89  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
90 LPI2C1_InitPins:
91 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
92 - pin_list:
93  - {pin_num: '75', peripheral: LPI2C1, signal: SCL, pin_signal: GPIO_AD_B1_14, slew_rate: Slow, software_input_on: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6,
94  pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
95  - {pin_num: '74', peripheral: LPI2C1, signal: SDA, pin_signal: GPIO_AD_B1_15, slew_rate: Slow, software_input_on: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6,
96  pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
97  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
98  */
99 
100 /* FUNCTION ************************************************************************************************************
101  *
102  * Function Name : LPI2C1_InitPins
103  * Description : Configures pin routing and optionally pin electrical features.
104  *
105  * END ****************************************************************************************************************/
106 void LPI2C1_InitPins(void) {
107  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
108 
109  IOMUXC_SetPinMux(
110  IOMUXC_GPIO_AD_B1_14_LPI2C1_SCL, /* GPIO_AD_B1_14 is configured as LPI2C1_SCL */
111  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_14 */
112  IOMUXC_SetPinMux(
113  IOMUXC_GPIO_AD_B1_15_LPI2C1_SDA, /* GPIO_AD_B1_15 is configured as LPI2C1_SDA */
114  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_15 */
115  IOMUXC_SetPinConfig(
116  IOMUXC_GPIO_AD_B1_14_LPI2C1_SCL, /* GPIO_AD_B1_14 PAD functional properties : */
117  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
118  Drive Strength Field: R0/6
119  Speed Field: medium(100MHz)
120  Open Drain Enable Field: Open Drain Disabled
121  Pull / Keep Enable Field: Pull/Keeper Enabled
122  Pull / Keep Select Field: Keeper
123  Pull Up / Down Config. Field: 100K Ohm Pull Down
124  Hyst. Enable Field: Hysteresis Disabled */
125  IOMUXC_SetPinConfig(
126  IOMUXC_GPIO_AD_B1_15_LPI2C1_SDA, /* GPIO_AD_B1_15 PAD functional properties : */
127  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
128  Drive Strength Field: R0/6
129  Speed Field: medium(100MHz)
130  Open Drain Enable Field: Open Drain Disabled
131  Pull / Keep Enable Field: Pull/Keeper Enabled
132  Pull / Keep Select Field: Keeper
133  Pull Up / Down Config. Field: 100K Ohm Pull Down
134  Hyst. Enable Field: Hysteresis Disabled */
135 
136 
137  /*Clock setting for LPI2C*/
138  CLOCK_SetMux(kCLOCK_Lpi2cMux, LPI2C_CLOCK_SOURCE_SELECT);
139  CLOCK_SetDiv(kCLOCK_Lpi2cDiv, LPI2C_CLOCK_SOURCE_DIVIDER);
140 }
141 
142 
143 /*
144  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
145 LPI2C1_DeinitPins:
146 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
147 - pin_list:
148  - {pin_num: '75', peripheral: GPIO1, signal: 'gpio_io, 30', pin_signal: GPIO_AD_B1_14}
149  - {pin_num: '74', peripheral: GPIO1, signal: 'gpio_io, 31', pin_signal: GPIO_AD_B1_15}
150  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
151  */
152 
153 /* FUNCTION ************************************************************************************************************
154  *
155  * Function Name : LPI2C1_DeinitPins
156  * Description : Configures pin routing and optionally pin electrical features.
157  *
158  * END ****************************************************************************************************************/
159 void LPI2C1_DeinitPins(void) {
160  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
161 
162  IOMUXC_SetPinMux(
163  IOMUXC_GPIO_AD_B1_14_GPIO1_IO30, /* GPIO_AD_B1_14 is configured as GPIO1_IO30 */
164  0U); /* Software Input On Field: Input Path is determined by functionality */
165  IOMUXC_SetPinMux(
166  IOMUXC_GPIO_AD_B1_15_GPIO1_IO31, /* GPIO_AD_B1_15 is configured as GPIO1_IO31 */
167  0U); /* Software Input On Field: Input Path is determined by functionality */
168 }
169 
170 
171 /*
172  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
173 LPI2C4_InitPins:
174 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
175 - pin_list:
176  - {pin_num: '30', peripheral: LPI2C4, signal: SCL, pin_signal: GPIO_SD_B1_02, slew_rate: Slow, software_input_on: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6,
177  pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Up_22K_Ohm, hysteresis_enable: Disable}
178  - {pin_num: '28', peripheral: LPI2C4, signal: SDA, pin_signal: GPIO_SD_B1_03, slew_rate: Slow, software_input_on: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6,
179  pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Up_22K_Ohm, hysteresis_enable: Disable}
180  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
181  */
182 
183 /* FUNCTION ************************************************************************************************************
184  *
185  * Function Name : LPI2C4_InitPins
186  * Description : Configures pin routing and optionally pin electrical features.
187  *
188  * END ****************************************************************************************************************/
189 void LPI2C4_InitPins(void) {
190  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
191 
192  IOMUXC_SetPinMux(
193  IOMUXC_GPIO_SD_B1_02_LPI2C4_SCL, /* GPIO_SD_B1_02 is configured as LPI2C4_SCL */
194  1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_02 */
195  IOMUXC_SetPinMux(
196  IOMUXC_GPIO_SD_B1_03_LPI2C4_SDA, /* GPIO_SD_B1_03 is configured as LPI2C4_SDA */
197  1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_03 */
198  IOMUXC_SetPinConfig(
199  IOMUXC_GPIO_SD_B1_02_LPI2C4_SCL, /* GPIO_SD_B1_02 PAD functional properties : */
200  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
201  Drive Strength Field: R0/6
202  Speed Field: medium(100MHz)
203  Open Drain Enable Field: Open Drain Enabled
204  Pull / Keep Enable Field: Pull/Keeper Enabled
205  Pull / Keep Select Field: Keeper
206  Pull Up / Down Config. Field: 22K Ohm Pull Up
207  Hyst. Enable Field: Hysteresis Disabled */
208  IOMUXC_SetPinConfig(
209  IOMUXC_GPIO_SD_B1_03_LPI2C4_SDA, /* GPIO_SD_B1_03 PAD functional properties : */
210  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
211  Drive Strength Field: R0/6
212  Speed Field: medium(100MHz)
213  Open Drain Enable Field: Open Drain Enabled
214  Pull / Keep Enable Field: Pull/Keeper Enabled
215  Pull / Keep Select Field: Keeper
216  Pull Up / Down Config. Field: 22K Ohm Pull Up
217  Hyst. Enable Field: Hysteresis Disabled */
218 }
219 
220 
221 /*
222  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
223 LPI2C4_DeinitPins:
224 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
225 - pin_list:
226  - {pin_num: '30', peripheral: GPIO3, signal: 'gpio_io, 22', pin_signal: GPIO_SD_B1_02}
227  - {pin_num: '28', peripheral: GPIO3, signal: 'gpio_io, 23', pin_signal: GPIO_SD_B1_03}
228  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
229  */
230 
231 /* FUNCTION ************************************************************************************************************
232  *
233  * Function Name : LPI2C4_DeinitPins
234  * Description : Configures pin routing and optionally pin electrical features.
235  *
236  * END ****************************************************************************************************************/
237 void LPI2C4_DeinitPins(void) {
238  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
239 
240  IOMUXC_SetPinMux(
241  IOMUXC_GPIO_SD_B1_02_GPIO3_IO22, /* GPIO_SD_B1_02 is configured as GPIO3_IO22 */
242  0U); /* Software Input On Field: Input Path is determined by functionality */
243  IOMUXC_SetPinMux(
244  IOMUXC_GPIO_SD_B1_03_GPIO3_IO23, /* GPIO_SD_B1_03 is configured as GPIO3_IO23 */
245  0U); /* Software Input On Field: Input Path is determined by functionality */
246 }
247 
248 
249 /*
250  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
251 LPSPI1_InitPins:
252 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
253 - pin_list:
254  - {pin_num: '97', peripheral: LPSPI1, signal: PCS0, pin_signal: GPIO_AD_B0_11, slew_rate: Slow, software_input_on: Disable, open_drain: Disable, speed: MHZ_100,
255  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
256  - {pin_num: '98', peripheral: LPSPI1, signal: SCK, pin_signal: GPIO_AD_B0_10, slew_rate: Slow, software_input_on: Disable, open_drain: Disable, speed: MHZ_100,
257  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
258  - {pin_num: '96', peripheral: LPSPI1, signal: SDO, pin_signal: GPIO_AD_B0_12, slew_rate: Slow, software_input_on: Disable, open_drain: Disable, speed: MHZ_100,
259  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
260  - {pin_num: '95', peripheral: LPSPI1, signal: SDI, pin_signal: GPIO_AD_B0_13, slew_rate: Slow, software_input_on: Disable, open_drain: Disable, speed: MHZ_100,
261  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
262  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
263  */
264 
265 /* FUNCTION ************************************************************************************************************
266  *
267  * Function Name : LPSPI1_InitPins
268  * Description : Configures pin routing and optionally pin electrical features.
269  *
270  * END ****************************************************************************************************************/
271 void LPSPI1_InitPins(void) {
272  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
273 
274  IOMUXC_SetPinMux(
275  IOMUXC_GPIO_AD_B0_10_LPSPI1_SCK, /* GPIO_AD_B0_10 is configured as LPSPI1_SCK */
276  0U); /* Software Input On Field: Input Path is determined by functionality */
277  IOMUXC_SetPinMux(
278  IOMUXC_GPIO_AD_B0_11_LPSPI1_PCS0, /* GPIO_AD_B0_11 is configured as LPSPI1_PCS0 */
279  0U); /* Software Input On Field: Input Path is determined by functionality */
280  IOMUXC_SetPinMux(
281  IOMUXC_GPIO_AD_B0_12_LPSPI1_SDO, /* GPIO_AD_B0_12 is configured as LPSPI1_SDO */
282  0U); /* Software Input On Field: Input Path is determined by functionality */
283  IOMUXC_SetPinMux(
284  IOMUXC_GPIO_AD_B0_13_LPSPI1_SDI, /* GPIO_AD_B0_13 is configured as LPSPI1_SDI */
285  0U); /* Software Input On Field: Input Path is determined by functionality */
286  IOMUXC_SetPinConfig(
287  IOMUXC_GPIO_AD_B0_10_LPSPI1_SCK, /* GPIO_AD_B0_10 PAD functional properties : */
288  0x10B0u); /* Slew Rate Field: Slow Slew Rate
289  Drive Strength Field: R0/6
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: Keeper
294  Pull Up / Down Config. Field: 100K Ohm Pull Down
295  Hyst. Enable Field: Hysteresis Disabled */
296  IOMUXC_SetPinConfig(
297  IOMUXC_GPIO_AD_B0_11_LPSPI1_PCS0, /* GPIO_AD_B0_11 PAD functional properties : */
298  0x10B0u); /* Slew Rate Field: Slow Slew Rate
299  Drive Strength Field: R0/6
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: Keeper
304  Pull Up / Down Config. Field: 100K Ohm Pull Down
305  Hyst. Enable Field: Hysteresis Disabled */
306  IOMUXC_SetPinConfig(
307  IOMUXC_GPIO_AD_B0_12_LPSPI1_SDO, /* GPIO_AD_B0_12 PAD functional properties : */
308  0x10B0u); /* Slew Rate Field: Slow Slew Rate
309  Drive Strength Field: R0/6
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: Keeper
314  Pull Up / Down Config. Field: 100K Ohm Pull Down
315  Hyst. Enable Field: Hysteresis Disabled */
316  IOMUXC_SetPinConfig(
317  IOMUXC_GPIO_AD_B0_13_LPSPI1_SDI, /* GPIO_AD_B0_13 PAD functional properties : */
318  0x10B0u); /* Slew Rate Field: Slow Slew Rate
319  Drive Strength Field: R0/6
320  Speed Field: medium(100MHz)
321  Open Drain Enable Field: Open Drain Disabled
322  Pull / Keep Enable Field: Pull/Keeper Enabled
323  Pull / Keep Select Field: Keeper
324  Pull Up / Down Config. Field: 100K Ohm Pull Down
325  Hyst. Enable Field: Hysteresis Disabled */
326 
327  /*Set clock source for LPSPI*/
328  CLOCK_SetMux(kCLOCK_LpspiMux, LPSPI_CLOCK_SOURCE_SELECT);
329  CLOCK_SetDiv(kCLOCK_LpspiDiv, LPSPI_CLOCK_SOURCE_DIVIDER);
330 }
331 
332 
333 /*
334  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
335 LPSPI1_DeinitPins:
336 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
337 - pin_list:
338  - {pin_num: '97', peripheral: GPIO1, signal: 'gpio_io, 11', pin_signal: GPIO_AD_B0_11}
339  - {pin_num: '98', peripheral: GPIO1, signal: 'gpio_io, 10', pin_signal: GPIO_AD_B0_10}
340  - {pin_num: '96', peripheral: GPIO1, signal: 'gpio_io, 12', pin_signal: GPIO_AD_B0_12}
341  - {pin_num: '95', peripheral: GPIO1, signal: 'gpio_io, 13', pin_signal: GPIO_AD_B0_13}
342  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
343  */
344 
345 /* FUNCTION ************************************************************************************************************
346  *
347  * Function Name : LPSPI1_DeinitPins
348  * Description : Configures pin routing and optionally pin electrical features.
349  *
350  * END ****************************************************************************************************************/
351 void LPSPI1_DeinitPins(void) {
352  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
353 
354  IOMUXC_SetPinMux(
355  IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 is configured as GPIO1_IO10 */
356  0U); /* Software Input On Field: Input Path is determined by functionality */
357  IOMUXC_SetPinMux(
358  IOMUXC_GPIO_AD_B0_11_GPIO1_IO11, /* GPIO_AD_B0_11 is configured as GPIO1_IO11 */
359  0U); /* Software Input On Field: Input Path is determined by functionality */
360  IOMUXC_SetPinMux(
361  IOMUXC_GPIO_AD_B0_12_GPIO1_IO12, /* GPIO_AD_B0_12 is configured as GPIO1_IO12 */
362  0U); /* Software Input On Field: Input Path is determined by functionality */
363  IOMUXC_SetPinMux(
364  IOMUXC_GPIO_AD_B0_13_GPIO1_IO13, /* GPIO_AD_B0_13 is configured as GPIO1_IO13 */
365  0U); /* Software Input On Field: Input Path is determined by functionality */
366 }
367 
368 
369 
370 /*
371  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
372 LPUART1_InitPins:
373 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
374 - pin_list:
375  - {pin_num: '101', peripheral: LPUART1, signal: RX, pin_signal: GPIO_AD_B0_07, software_input_on: Disable, open_drain: Disable}
376  - {pin_num: '105', peripheral: LPUART1, signal: TX, pin_signal: GPIO_AD_B0_06, software_input_on: Disable, open_drain: Disable}
377  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
378  */
379 
380 /* FUNCTION ************************************************************************************************************
381  *
382  * Function Name : LPUART1_InitPins
383  * Description : Configures pin routing and optionally pin electrical features.
384  *
385  * END ****************************************************************************************************************/
386 void LPUART1_InitPins(void) {
387  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
388 
389  IOMUXC_SetPinMux(
390  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 is configured as LPUART1_TX */
391  0U); /* Software Input On Field: Input Path is determined by functionality */
392  IOMUXC_SetPinMux(
393  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 is configured as LPUART1_RX */
394  0U); /* Software Input On Field: Input Path is determined by functionality */
395  IOMUXC_SetPinConfig(
396  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 PAD functional properties : */
397  0x10B0u); /* Slew Rate Field: Slow Slew Rate
398  Drive Strength Field: R0/6
399  Speed Field: medium(100MHz)
400  Open Drain Enable Field: Open Drain Disabled
401  Pull / Keep Enable Field: Pull/Keeper Enabled
402  Pull / Keep Select Field: Keeper
403  Pull Up / Down Config. Field: 100K Ohm Pull Down
404  Hyst. Enable Field: Hysteresis Disabled */
405  IOMUXC_SetPinConfig(
406  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 PAD functional properties : */
407  0x10B0u); /* Slew Rate Field: Slow Slew Rate
408  Drive Strength Field: R0/6
409  Speed Field: medium(100MHz)
410  Open Drain Enable Field: Open Drain Disabled
411  Pull / Keep Enable Field: Pull/Keeper Enabled
412  Pull / Keep Select Field: Keeper
413  Pull Up / Down Config. Field: 100K Ohm Pull Down
414  Hyst. Enable Field: Hysteresis Disabled */
415 }
416 
417 
418 /*
419  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
420 LPUART1_DeinitPins:
421 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
422 - pin_list:
423  - {pin_num: '105', peripheral: GPIO1, signal: 'gpio_io, 06', pin_signal: GPIO_AD_B0_06}
424  - {pin_num: '101', peripheral: GPIO1, signal: 'gpio_io, 07', pin_signal: GPIO_AD_B0_07}
425  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
426  */
427 
428 /* FUNCTION ************************************************************************************************************
429  *
430  * Function Name : LPUART1_DeinitPins
431  * Description : Configures pin routing and optionally pin electrical features.
432  *
433  * END ****************************************************************************************************************/
434 void LPUART1_DeinitPins(void) {
435  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
436 
437  IOMUXC_SetPinMux(
438  IOMUXC_GPIO_AD_B0_06_GPIO1_IO06, /* GPIO_AD_B0_06 is configured as GPIO1_IO06 */
439  0U); /* Software Input On Field: Input Path is determined by functionality */
440  IOMUXC_SetPinMux(
441  IOMUXC_GPIO_AD_B0_07_GPIO1_IO07, /* GPIO_AD_B0_07 is configured as GPIO1_IO07 */
442  0U); /* Software Input On Field: Input Path is determined by functionality */
443 }
444 
445 /***********************************************************************************************************************
446  * EOF
447  **********************************************************************************************************************/
#define LPI2C_CLOCK_SOURCE_SELECT
Definition: evkmimxrt1010.c:19
void LPI2C4_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:218
void LPUART1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:387
void LPI2C4_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:144
#define LPI2C_CLOCK_SOURCE_DIVIDER
Definition: evkmimxrt1010.c:21
void LPI2C1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:311
void LPSPI1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:440
void LPUART1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:421
#define LPSPI_CLOCK_SOURCE_DIVIDER
Definition: pin_mux.h:30
void LPSPI1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:469
void BOARD_InitBootPins(void)
Calls initialization functions.
Definition: pin_mux.c:36
void LPI2C1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:351
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:47
#define LPSPI_CLOCK_SOURCE_SELECT
Definition: pin_mux.h:28