ISSDK  1.8
IoT Sensing Software Development Kit
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  * Copyright 2017-2018 NXP
8  * All rights reserved.
9  *
10  * SPDX-License-Identifier: BSD-3-Clause
11  */
12 
13 /*
14  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
15 !!GlobalInfo
16 product: Pins v4.1
17 processor: MIMXRT1064xxxxA
18 package_id: MIMXRT1064DVL6A
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: 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,
44  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
45  - {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,
46  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
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_12_LPUART1_TX, /* GPIO_AD_B0_12 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_13_LPUART1_RX, /* GPIO_AD_B0_13 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_12_LPUART1_TX, /* GPIO_AD_B0_12 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_13_LPUART1_RX, /* GPIO_AD_B0_13 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  IOMUXC_SetPinMux(
86  IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 is configured as GPIO1_IO09 */
87  0U);
88  IOMUXC_SetPinConfig(
89  IOMUXC_GPIO_AD_B0_09_GPIO1_IO09, /* GPIO_AD_B0_09 PAD functional properties : */
90  0xB0A9u); /* Slew Rate Field: Slow Slew Rate
91  Drive Strength Field: R0/6
92  Speed Field: medium(100MHz)
93  Open Drain Enable Field: Open Drain Disabled
94  Pull / Keep Enable Field: Pull/Keeper Enabled
95  Pull / Keep Select Field: Keeper
96  Pull Up / Down Config. Field: 100K Ohm Pull Down
97  Hyst. Enable Field: Hysteresis Disabled */
98 
99  IOMUXC_SetPinMux(
100  IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 is configured as GPIO1_IO10 */
101  0U);
102  IOMUXC_SetPinConfig(
103  IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 PAD functional properties : */
104  0xB0A9u); /* Slew Rate Field: Fast Slew Rate
105  Drive Strength Field: R0/5
106  Speed Field: medium(100MHz)
107  Open Drain Enable Field: Open Drain Disabled
108  Pull / Keep Enable Field: Pull/Keeper Enabled
109  Pull / Keep Select Field: Pull
110  Pull Up / Down Config. Field: 100K Ohm Pull Up
111  Hyst. Enable Field: Hysteresis Disabled */
112 
113  IOMUXC_SetPinMux(
114  IOMUXC_GPIO_AD_B0_11_GPIO1_IO11, /* GPIO_AD_B0_11 is configured as GPIO1_IO11 */
115  0U);
116  IOMUXC_SetPinConfig(
117  IOMUXC_GPIO_AD_B0_11_GPIO1_IO11, /* GPIO_AD_B0_11 PAD functional properties : */
118  0x10B0u); /* Slew Rate Field: Slow Slew Rate
119  Drive Strength Field: R0/6
120  Speed Field: medium(100MHz)
121  Open Drain Enable Field: Open Drain Disabled
122  Pull / Keep Enable Field: Pull/Keeper Enabled
123  Pull / Keep Select Field: Keeper
124  Pull Up / Down Config. Field: 100K Ohm Pull Down
125  Hyst. Enable Field: Hysteresis Disabled */
126 
127  IOMUXC_SetPinMux(
128  IOMUXC_GPIO_SD_B0_01_GPIO3_IO13, /* GPIO_SD_B0_01 is configured as GPIO3_IO13 */
129  0U);
130 }
131 
132 
133 /*
134  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
135 LPI2C1_InitPins:
136 - options: {coreID: core0, enableClock: 'true'}
137 - pin_list:
138  - {pin_num: J11, peripheral: LPI2C1, signal: SCL, pin_signal: GPIO_AD_B1_00, software_input_on: Enable, hysteresis_enable: Disable, pull_up_down_config: Pull_Up_22K_Ohm,
139  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
140  - {pin_num: K11, peripheral: LPI2C1, signal: SDA, pin_signal: GPIO_AD_B1_01, software_input_on: Enable, hysteresis_enable: Disable, pull_up_down_config: Pull_Up_22K_Ohm,
141  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
142  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
143  */
144 
145 /* FUNCTION ************************************************************************************************************
146  *
147  * Function Name : LPI2C1_InitPins
148  * Description : Configures pin routing and optionally pin electrical features.
149  *
150  * END ****************************************************************************************************************/
151 void LPI2C1_InitPins(void) {
152  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
153 
154  IOMUXC_SetPinMux(
155  IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, /* GPIO_AD_B1_00 is configured as LPI2C1_SCL */
156  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_00 */
157  IOMUXC_SetPinMux(
158  IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, /* GPIO_AD_B1_01 is configured as LPI2C1_SDA */
159  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_01 */
160  IOMUXC_SetPinConfig(
161  IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, /* GPIO_AD_B1_00 PAD functional properties : */
162  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
163  Drive Strength Field: R0/6
164  Speed Field: medium(100MHz)
165  Open Drain Enable Field: Open Drain Enabled
166  Pull / Keep Enable Field: Pull/Keeper Enabled
167  Pull / Keep Select Field: Keeper
168  Pull Up / Down Config. Field: 22K Ohm Pull Up
169  Hyst. Enable Field: Hysteresis Disabled */
170  IOMUXC_SetPinConfig(
171  IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, /* GPIO_AD_B1_01 PAD functional properties : */
172  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
173  Drive Strength Field: R0/6
174  Speed Field: medium(100MHz)
175  Open Drain Enable Field: Open Drain Enabled
176  Pull / Keep Enable Field: Pull/Keeper Enabled
177  Pull / Keep Select Field: Keeper
178  Pull Up / Down Config. Field: 22K Ohm Pull Up
179  Hyst. Enable Field: Hysteresis Disabled */
180 }
181 
182 
183 /*
184  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
185 LPI2C1_DeinitPins:
186 - options: {coreID: core0, enableClock: 'true'}
187 - pin_list:
188  - {pin_num: J11, peripheral: GPIO1, signal: 'gpio_io, 16', pin_signal: GPIO_AD_B1_00}
189  - {pin_num: K11, peripheral: GPIO1, signal: 'gpio_io, 17', pin_signal: GPIO_AD_B1_01}
190  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
191  */
192 
193 /* FUNCTION ************************************************************************************************************
194  *
195  * Function Name : LPI2C1_DeinitPins
196  * Description : Configures pin routing and optionally pin electrical features.
197  *
198  * END ****************************************************************************************************************/
199 void LPI2C1_DeinitPins(void) {
200  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
201 
202  IOMUXC_SetPinMux(
203  IOMUXC_GPIO_AD_B1_00_GPIO1_IO16, /* GPIO_AD_B1_00 is configured as GPIO1_IO16 */
204  0U); /* Software Input On Field: Input Path is determined by functionality */
205  IOMUXC_SetPinMux(
206  IOMUXC_GPIO_AD_B1_01_GPIO1_IO17, /* GPIO_AD_B1_01 is configured as GPIO1_IO17 */
207  0U); /* Software Input On Field: Input Path is determined by functionality */
208 }
209 
210 /*FUNCTION**********************************************************************
211  *
212  * Function Name : LPSPI1_InitPins
213  * Description : Configures pin routing and optionally pin electrical features.
214  *
215  *END**************************************************************************/
216 void LPSPI1_InitPins(void) {
217  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
218 
219  IOMUXC_SetPinMux(
220  IOMUXC_GPIO_SD_B0_00_LPSPI1_SCK, /* GPIO_SD_B0_00 is configured as LPSPI1_SCK */
221  0U); /* Software Input On Field: Input Path is determined by functionality */
222  IOMUXC_SetPinMux(
223  IOMUXC_GPIO_SD_B0_01_LPSPI1_PCS0, /* GPIO_SD_B0_01 is configured as LPSPI1_PCS0 */
224  0U); /* Software Input On Field: Input Path is determined by functionality */
225  IOMUXC_SetPinMux(
226  IOMUXC_GPIO_SD_B0_02_LPSPI1_SDO, /* GPIO_SD_B0_02 is configured as LPSPI1_SDO */
227  0U); /* Software Input On Field: Input Path is determined by functionality */
228  IOMUXC_SetPinMux(
229  IOMUXC_GPIO_SD_B0_03_LPSPI1_SDI, /* GPIO_SD_B0_03 is configured as LPSPI1_SDI */
230  0U); /* Software Input On Field: Input Path is determined by functionality */
231  IOMUXC_SetPinConfig(
232  IOMUXC_GPIO_SD_B0_00_LPSPI1_SCK, /* GPIO_SD_B0_00 PAD functional properties : */
233  0x10B0u); /* Slew Rate Field: Slow Slew Rate
234  Drive Strength Field: R0/6
235  Speed Field: medium(100MHz)
236  Open Drain Enable Field: Open Drain Disabled
237  Pull / Keep Enable Field: Pull/Keeper Enabled
238  Pull / Keep Select Field: Keeper
239  Pull Up / Down Config. Field: 100K Ohm Pull Down
240  Hyst. Enable Field: Hysteresis Disabled */
241  IOMUXC_SetPinConfig(
242  IOMUXC_GPIO_SD_B0_01_LPSPI1_PCS0, /* GPIO_SD_B0_01 PAD functional properties : */
243  0x10B0u); /* Slew Rate Field: Slow Slew Rate
244  Drive Strength Field: R0/6
245  Speed Field: medium(100MHz)
246  Open Drain Enable Field: Open Drain Disabled
247  Pull / Keep Enable Field: Pull/Keeper Enabled
248  Pull / Keep Select Field: Keeper
249  Pull Up / Down Config. Field: 100K Ohm Pull Down
250  Hyst. Enable Field: Hysteresis Disabled */
251  IOMUXC_SetPinConfig(
252  IOMUXC_GPIO_SD_B0_02_LPSPI1_SDO, /* GPIO_SD_B0_02 PAD functional properties : */
253  0x10B0u); /* Slew Rate Field: Slow Slew Rate
254  Drive Strength Field: R0/6
255  Speed Field: medium(100MHz)
256  Open Drain Enable Field: Open Drain Disabled
257  Pull / Keep Enable Field: Pull/Keeper Enabled
258  Pull / Keep Select Field: Keeper
259  Pull Up / Down Config. Field: 100K Ohm Pull Down
260  Hyst. Enable Field: Hysteresis Disabled */
261  IOMUXC_SetPinConfig(
262  IOMUXC_GPIO_SD_B0_03_LPSPI1_SDI, /* GPIO_SD_B0_03 PAD functional properties : */
263  0x10B0u); /* Slew Rate Field: Slow Slew Rate
264  Drive Strength Field: R0/6
265  Speed Field: medium(100MHz)
266  Open Drain Enable Field: Open Drain Disabled
267  Pull / Keep Enable Field: Pull/Keeper Enabled
268  Pull / Keep Select Field: Keeper
269  Pull Up / Down Config. Field: 100K Ohm Pull Down
270  Hyst. Enable Field: Hysteresis Disabled */
271 }
272 
273 
274 /*
275  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
276 LPSPI1_DeinitPins:
277 - options: {coreID: core0, enableClock: 'true'}
278 - pin_list:
279  - {pin_num: J4, peripheral: GPIO3, signal: 'gpio_io, 12', pin_signal: GPIO_SD_B0_00}
280  - {pin_num: J3, peripheral: GPIO3, signal: 'gpio_io, 13', pin_signal: GPIO_SD_B0_01}
281  - {pin_num: J1, peripheral: GPIO3, signal: 'gpio_io, 14', pin_signal: GPIO_SD_B0_02}
282  - {pin_num: K1, peripheral: GPIO3, signal: 'gpio_io, 15', pin_signal: GPIO_SD_B0_03}
283  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
284  */
285 
286 /* FUNCTION ************************************************************************************************************
287  *
288  * Function Name : LPSPI1_DeinitPins
289  * Description : Configures pin routing and optionally pin electrical features.
290  *
291  * END ****************************************************************************************************************/
292 void LPSPI1_DeinitPins(void) {
293  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
294 
295  IOMUXC_SetPinMux(
296  IOMUXC_GPIO_SD_B0_00_GPIO3_IO12, /* GPIO_SD_B0_00 is configured as GPIO3_IO12 */
297  0U); /* Software Input On Field: Input Path is determined by functionality */
298  IOMUXC_SetPinMux(
299  IOMUXC_GPIO_SD_B0_01_GPIO3_IO13, /* GPIO_SD_B0_01 is configured as GPIO3_IO13 */
300  0U); /* Software Input On Field: Input Path is determined by functionality */
301  IOMUXC_SetPinMux(
302  IOMUXC_GPIO_SD_B0_02_GPIO3_IO14, /* GPIO_SD_B0_02 is configured as GPIO3_IO14 */
303  0U); /* Software Input On Field: Input Path is determined by functionality */
304  IOMUXC_SetPinMux(
305  IOMUXC_GPIO_SD_B0_03_GPIO3_IO15, /* GPIO_SD_B0_03 is configured as GPIO3_IO15 */
306  0U); /* Software Input On Field: Input Path is determined by functionality */
307 }
308 
309 /*FUNCTION**********************************************************************
310  *
311  * Function Name : LPUART1_InitPins
312  * Description : Configures pin routing and optionally pin electrical features.
313  *
314  *END**************************************************************************/
315 void LPUART1_InitPins(void) {
316  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
317 
318  IOMUXC_SetPinMux(
319  IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 is configured as LPUART1_TX */
320  0U); /* Software Input On Field: Input Path is determined by functionality */
321  IOMUXC_SetPinMux(
322  IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 is configured as LPUART1_RX */
323  0U); /* Software Input On Field: Input Path is determined by functionality */
324  IOMUXC_SetPinConfig(
325  IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 PAD functional properties : */
326  0x10B0u); /* Slew Rate Field: Slow Slew Rate
327  Drive Strength Field: R0/6
328  Speed Field: medium(100MHz)
329  Open Drain Enable Field: Open Drain Disabled
330  Pull / Keep Enable Field: Pull/Keeper Enabled
331  Pull / Keep Select Field: Keeper
332  Pull Up / Down Config. Field: 100K Ohm Pull Down
333  Hyst. Enable Field: Hysteresis Disabled */
334  IOMUXC_SetPinConfig(
335  IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 PAD functional properties : */
336  0x10B0u); /* Slew Rate Field: Slow Slew Rate
337  Drive Strength Field: R0/6
338  Speed Field: medium(100MHz)
339  Open Drain Enable Field: Open Drain Disabled
340  Pull / Keep Enable Field: Pull/Keeper Enabled
341  Pull / Keep Select Field: Keeper
342  Pull Up / Down Config. Field: 100K Ohm Pull Down
343  Hyst. Enable Field: Hysteresis Disabled */
344 }
345 
346 
347 /*
348  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
349 LPUART1_DeinitPins:
350 - options: {coreID: core0, enableClock: 'true'}
351 - pin_list:
352  - {pin_num: K14, peripheral: GPIO1, signal: 'gpio_io, 12', pin_signal: GPIO_AD_B0_12}
353  - {pin_num: L14, peripheral: GPIO1, signal: 'gpio_io, 13', pin_signal: GPIO_AD_B0_13}
354  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
355  */
356 
357 /* FUNCTION ************************************************************************************************************
358  *
359  * Function Name : LPUART1_DeinitPins
360  * Description : Configures pin routing and optionally pin electrical features.
361  *
362  * END ****************************************************************************************************************/
363 void LPUART1_DeinitPins(void) {
364  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
365 
366  IOMUXC_SetPinMux(
367  IOMUXC_GPIO_AD_B0_12_GPIO1_IO12, /* GPIO_AD_B0_12 is configured as GPIO1_IO12 */
368  0U); /* Software Input On Field: Input Path is determined by functionality */
369  IOMUXC_SetPinMux(
370  IOMUXC_GPIO_AD_B0_13_GPIO1_IO13, /* GPIO_AD_B0_13 is configured as GPIO1_IO13 */
371  0U); /* Software Input On Field: Input Path is determined by functionality */
372 }
373 
374 /***********************************************************************************************************************
375  * EOF
376  **********************************************************************************************************************/
void LPUART1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:387
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
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