ISSDK  1.8
IoT Sensing Software Development Kit
pin_mux.c
Go to the documentation of this file.
1 /*
2  * Copyright 2018 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 v4.1
17 processor: MIMXRT1021xxxxx
18 package_id: MIMXRT1021DAF5A
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  0x10B0u); /* 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  0x10B0u); /* 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 
138 /*
139  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
140 LPI2C1_DeinitPins:
141 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
142 - pin_list:
143  - {pin_num: '75', peripheral: GPIO1, signal: 'gpio_io, 30', pin_signal: GPIO_AD_B1_14}
144  - {pin_num: '74', peripheral: GPIO1, signal: 'gpio_io, 31', pin_signal: GPIO_AD_B1_15}
145  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
146  */
147 
148 /* FUNCTION ************************************************************************************************************
149  *
150  * Function Name : LPI2C1_DeinitPins
151  * Description : Configures pin routing and optionally pin electrical features.
152  *
153  * END ****************************************************************************************************************/
154 void LPI2C1_DeinitPins(void) {
155  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
156 
157  IOMUXC_SetPinMux(
158  IOMUXC_GPIO_AD_B1_14_GPIO1_IO30, /* GPIO_AD_B1_14 is configured as GPIO1_IO30 */
159  0U); /* Software Input On Field: Input Path is determined by functionality */
160  IOMUXC_SetPinMux(
161  IOMUXC_GPIO_AD_B1_15_GPIO1_IO31, /* GPIO_AD_B1_15 is configured as GPIO1_IO31 */
162  0U); /* Software Input On Field: Input Path is determined by functionality */
163 }
164 
165 /*
166  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
167 LPSPI1_InitPins:
168 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
169 - pin_list:
170  - {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,
171  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
172  - {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,
173  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
174  - {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,
175  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
176  - {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,
177  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
178  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
179  */
180 
181 /* FUNCTION ************************************************************************************************************
182  *
183  * Function Name : LPSPI1_InitPins
184  * Description : Configures pin routing and optionally pin electrical features.
185  *
186  * END ****************************************************************************************************************/
187 void LPSPI1_InitPins(void) {
188  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
189 
190  IOMUXC_SetPinMux(
191  IOMUXC_GPIO_AD_B0_10_LPSPI1_SCK, /* GPIO_AD_B0_10 is configured as LPSPI1_SCK */
192  0U); /* Software Input On Field: Input Path is determined by functionality */
193  IOMUXC_SetPinMux(
194  IOMUXC_GPIO_AD_B0_11_LPSPI1_PCS0, /* GPIO_AD_B0_11 is configured as LPSPI1_PCS0 */
195  0U); /* Software Input On Field: Input Path is determined by functionality */
196  IOMUXC_SetPinMux(
197  IOMUXC_GPIO_AD_B0_12_LPSPI1_SDO, /* GPIO_AD_B0_12 is configured as LPSPI1_SDO */
198  0U); /* Software Input On Field: Input Path is determined by functionality */
199  IOMUXC_SetPinMux(
200  IOMUXC_GPIO_AD_B0_13_LPSPI1_SDI, /* GPIO_AD_B0_13 is configured as LPSPI1_SDI */
201  0U); /* Software Input On Field: Input Path is determined by functionality */
202  IOMUXC_SetPinConfig(
203  IOMUXC_GPIO_AD_B0_10_LPSPI1_SCK, /* GPIO_AD_B0_10 PAD functional properties : */
204  0x10B0u); /* Slew Rate Field: Slow Slew Rate
205  Drive Strength Field: R0/6
206  Speed Field: medium(100MHz)
207  Open Drain Enable Field: Open Drain Disabled
208  Pull / Keep Enable Field: Pull/Keeper Enabled
209  Pull / Keep Select Field: Keeper
210  Pull Up / Down Config. Field: 100K Ohm Pull Down
211  Hyst. Enable Field: Hysteresis Disabled */
212  IOMUXC_SetPinConfig(
213  IOMUXC_GPIO_AD_B0_11_LPSPI1_PCS0, /* GPIO_AD_B0_11 PAD functional properties : */
214  0x10B0u); /* Slew Rate Field: Slow Slew Rate
215  Drive Strength Field: R0/6
216  Speed Field: medium(100MHz)
217  Open Drain Enable Field: Open Drain Disabled
218  Pull / Keep Enable Field: Pull/Keeper Enabled
219  Pull / Keep Select Field: Keeper
220  Pull Up / Down Config. Field: 100K Ohm Pull Down
221  Hyst. Enable Field: Hysteresis Disabled */
222  IOMUXC_SetPinConfig(
223  IOMUXC_GPIO_AD_B0_12_LPSPI1_SDO, /* GPIO_AD_B0_12 PAD functional properties : */
224  0x10B0u); /* Slew Rate Field: Slow Slew Rate
225  Drive Strength Field: R0/6
226  Speed Field: medium(100MHz)
227  Open Drain Enable Field: Open Drain Disabled
228  Pull / Keep Enable Field: Pull/Keeper Enabled
229  Pull / Keep Select Field: Keeper
230  Pull Up / Down Config. Field: 100K Ohm Pull Down
231  Hyst. Enable Field: Hysteresis Disabled */
232  IOMUXC_SetPinConfig(
233  IOMUXC_GPIO_AD_B0_13_LPSPI1_SDI, /* GPIO_AD_B0_13 PAD functional properties : */
234  0x10B0u); /* Slew Rate Field: Slow Slew Rate
235  Drive Strength Field: R0/6
236  Speed Field: medium(100MHz)
237  Open Drain Enable Field: Open Drain Disabled
238  Pull / Keep Enable Field: Pull/Keeper Enabled
239  Pull / Keep Select Field: Keeper
240  Pull Up / Down Config. Field: 100K Ohm Pull Down
241  Hyst. Enable Field: Hysteresis Disabled */
242 }
243 
244 
245 /*
246  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
247 LPSPI1_DeinitPins:
248 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
249 - pin_list:
250  - {pin_num: '97', peripheral: GPIO1, signal: 'gpio_io, 11', pin_signal: GPIO_AD_B0_11}
251  - {pin_num: '98', peripheral: GPIO1, signal: 'gpio_io, 10', pin_signal: GPIO_AD_B0_10}
252  - {pin_num: '96', peripheral: GPIO1, signal: 'gpio_io, 12', pin_signal: GPIO_AD_B0_12}
253  - {pin_num: '95', peripheral: GPIO1, signal: 'gpio_io, 13', pin_signal: GPIO_AD_B0_13}
254  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
255  */
256 
257 /* FUNCTION ************************************************************************************************************
258  *
259  * Function Name : LPSPI1_DeinitPins
260  * Description : Configures pin routing and optionally pin electrical features.
261  *
262  * END ****************************************************************************************************************/
263 void LPSPI1_DeinitPins(void) {
264  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
265 
266  IOMUXC_SetPinMux(
267  IOMUXC_GPIO_AD_B0_10_GPIO1_IO10, /* GPIO_AD_B0_10 is configured as GPIO1_IO10 */
268  0U); /* Software Input On Field: Input Path is determined by functionality */
269  IOMUXC_SetPinMux(
270  IOMUXC_GPIO_AD_B0_11_GPIO1_IO11, /* GPIO_AD_B0_11 is configured as GPIO1_IO11 */
271  0U); /* Software Input On Field: Input Path is determined by functionality */
272  IOMUXC_SetPinMux(
273  IOMUXC_GPIO_AD_B0_12_GPIO1_IO12, /* GPIO_AD_B0_12 is configured as GPIO1_IO12 */
274  0U); /* Software Input On Field: Input Path is determined by functionality */
275  IOMUXC_SetPinMux(
276  IOMUXC_GPIO_AD_B0_13_GPIO1_IO13, /* GPIO_AD_B0_13 is configured as GPIO1_IO13 */
277  0U); /* Software Input On Field: Input Path is determined by functionality */
278 }
279 
280 
281 /*
282  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
283 LPUART1_DeinitPins:
284 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
285 - pin_list:
286  - {pin_num: '105', peripheral: GPIO1, signal: 'gpio_io, 06', pin_signal: GPIO_AD_B0_06}
287  - {pin_num: '101', peripheral: GPIO1, signal: 'gpio_io, 07', pin_signal: GPIO_AD_B0_07}
288  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
289  */
290 
291 /* FUNCTION ************************************************************************************************************
292  *
293  * Function Name : LPUART1_DeinitPins
294  * Description : Configures pin routing and optionally pin electrical features.
295  *
296  * END ****************************************************************************************************************/
297 void LPUART1_DeinitPins(void) {
298  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
299 
300  IOMUXC_SetPinMux(
301  IOMUXC_GPIO_AD_B0_06_GPIO1_IO06, /* GPIO_AD_B0_06 is configured as GPIO1_IO06 */
302  0U); /* Software Input On Field: Input Path is determined by functionality */
303  IOMUXC_SetPinMux(
304  IOMUXC_GPIO_AD_B0_07_GPIO1_IO07, /* GPIO_AD_B0_07 is configured as GPIO1_IO07 */
305  0U); /* Software Input On Field: Input Path is determined by functionality */
306 }
307 
308 
309 /*
310  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
311 LPUART1_InitPins:
312 - options: {callFromInitBoot: 'false', coreID: core0, enableClock: 'true'}
313 - pin_list:
314  - {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,
315  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
316  - {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,
317  drive_strength: R0_6, pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Down_100K_Ohm, hysteresis_enable: Disable}
318  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
319  */
320 
321 /* FUNCTION ************************************************************************************************************
322  *
323  * Function Name : LPUART1_InitPins
324  * Description : Configures pin routing and optionally pin electrical features.
325  *
326  * END ****************************************************************************************************************/
327 void LPUART1_InitPins(void) {
328  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
329 
330  IOMUXC_SetPinMux(
331  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 is configured as LPUART1_TX */
332  0U); /* Software Input On Field: Input Path is determined by functionality */
333  IOMUXC_SetPinMux(
334  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 is configured as LPUART1_RX */
335  0U); /* Software Input On Field: Input Path is determined by functionality */
336  IOMUXC_SetPinConfig(
337  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 PAD functional properties : */
338  0x10B0u); /* Slew Rate Field: Slow Slew Rate
339  Drive Strength Field: R0/6
340  Speed Field: medium(100MHz)
341  Open Drain Enable Field: Open Drain Disabled
342  Pull / Keep Enable Field: Pull/Keeper Enabled
343  Pull / Keep Select Field: Keeper
344  Pull Up / Down Config. Field: 100K Ohm Pull Down
345  Hyst. Enable Field: Hysteresis Disabled */
346  IOMUXC_SetPinConfig(
347  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 PAD functional properties : */
348  0x10B0u); /* Slew Rate Field: Slow Slew Rate
349  Drive Strength Field: R0/6
350  Speed Field: medium(100MHz)
351  Open Drain Enable Field: Open Drain Disabled
352  Pull / Keep Enable Field: Pull/Keeper Enabled
353  Pull / Keep Select Field: Keeper
354  Pull Up / Down Config. Field: 100K Ohm Pull Down
355  Hyst. Enable Field: Hysteresis Disabled */
356 }
357 
358 /***********************************************************************************************************************
359  * EOF
360  **********************************************************************************************************************/
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