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 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.0
17 processor: MIMXRT1021xxxxx
18 package_id: MIMXRT1021DAG5A
19 mcu_data: i_mx_1_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, software_input_on: Disable, open_drain: Disable}
44  - {pin_num: '105', peripheral: LPUART1, signal: TX, pin_signal: GPIO_AD_B0_06, software_input_on: Disable, open_drain: Disable}
45  - {pin_num: '30', peripheral: LPI2C4, signal: SCL, pin_signal: GPIO_SD_B1_02, software_input_on: Enable, open_drain: Enable, pull_up_down_config: Pull_Up_22K_Ohm}
46  - {pin_num: '28', peripheral: LPI2C4, signal: SDA, pin_signal: GPIO_SD_B1_03, software_input_on: Enable, open_drain: Enable, pull_up_down_config: Pull_Up_22K_Ohm}
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 
66  IOMUXC_SetPinConfig(
67  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 PAD functional properties : */
68  0x10B0u); /* Slew Rate Field: Slow Slew Rate
69  Drive Strength Field: R0/6
70  Speed Field: medium(100MHz)
71  Open Drain Enable Field: Open Drain Disabled
72  Pull / Keep Enable Field: Pull/Keeper Enabled
73  Pull / Keep Select Field: Keeper
74  Pull Up / Down Config. Field: 100K Ohm Pull Down
75  Hyst. Enable Field: Hysteresis Disabled */
76  IOMUXC_SetPinConfig(
77  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 PAD functional properties : */
78  0x10B0u); /* Slew Rate Field: Slow Slew Rate
79  Drive Strength Field: R0/6
80  Speed Field: medium(100MHz)
81  Open Drain Enable Field: Open Drain Disabled
82  Pull / Keep Enable Field: Pull/Keeper Enabled
83  Pull / Keep Select Field: Keeper
84  Pull Up / Down Config. Field: 100K Ohm Pull Down
85  Hyst. Enable Field: Hysteresis Disabled */
86 
87 }
88 
89 /*
90  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
91 LPI2C1_InitPins:
92 - options: {coreID: core0, enableClock: 'true'}
93 - pin_list:
94  - {pin_num: J11, peripheral: LPI2C1, signal: SCL, pin_signal: GPIO_AD_B1_00, slew_rate: Slow, software_input_on: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6,
95  pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Up_22K_Ohm, hysteresis_enable: Disable}
96  - {pin_num: K11, peripheral: LPI2C1, signal: SDA, pin_signal: GPIO_AD_B1_01, slew_rate: Slow, software_input_on: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6,
97  pull_keeper_select: Keeper, pull_keeper_enable: Enable, pull_up_down_config: Pull_Up_22K_Ohm, hysteresis_enable: Disable}
98  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
99  */
100 
101 /* FUNCTION ************************************************************************************************************
102  *
103  * Function Name : LPI2C1_InitPins
104  * Description : Configures pin routing and optionally pin electrical features.
105  *
106  * END ****************************************************************************************************************/
107 void LPI2C1_InitPins(void) {
108  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
109 
110  IOMUXC_SetPinMux(
111  IOMUXC_GPIO_AD_B1_14_LPI2C1_SCL, /* GPIO_AD_B1_14 is configured as LPI2C1_SCL */
112  1U); /* Software Input On Field: Input Path is determined by functionality */
113  IOMUXC_SetPinMux(
114  IOMUXC_GPIO_AD_B1_15_LPI2C1_SDA, /* GPIO_AD_B1_15 is configured as LPI2C1_SDA */
115  1U); /* Software Input On Field: Input Path is determined by functionality */
116  IOMUXC_SetPinConfig(
117  IOMUXC_GPIO_AD_B1_14_LPI2C1_SCL, /* GPIO_AD_B1_14 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  IOMUXC_SetPinConfig(
127  IOMUXC_GPIO_AD_B1_15_LPI2C1_SDA, /* GPIO_AD_B1_15 PAD functional properties : */
128  0x10B0u); /* Slew Rate Field: Slow Slew Rate
129  Drive Strength Field: R0/6
130  Speed Field: medium(100MHz)
131  Open Drain Enable Field: Open Drain Disabled
132  Pull / Keep Enable Field: Pull/Keeper Enabled
133  Pull / Keep Select Field: Keeper
134  Pull Up / Down Config. Field: 100K Ohm Pull Down
135  Hyst. Enable Field: Hysteresis Disabled */
136 }
137 
138 /*FUNCTION**********************************************************************
139  *
140  * Function Name : LPI2C4_InitPins
141  * Description : Configures pin routing and optionally pin electrical features.
142  *
143  *END**************************************************************************/
144 void LPI2C4_InitPins(void) {
145  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
146 
147  IOMUXC_SetPinMux(
148  IOMUXC_GPIO_SD_B1_02_LPI2C4_SCL, /* GPIO_SD_B1_02 is configured as LPI2C4_SCL */
149  1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_02 */
150  IOMUXC_SetPinMux(
151  IOMUXC_GPIO_SD_B1_03_LPI2C4_SDA, /* GPIO_SD_B1_03 is configured as LPI2C4_SDA */
152  1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_03 */ /* Software Input On Field: Force input path of pad GPIO_AD_B1_01 */
153  IOMUXC_SetPinConfig(
154  IOMUXC_GPIO_SD_B1_02_LPI2C4_SCL, /* GPIO_SD_B1_02 PAD functional properties : */
155  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
156  Drive Strength Field: R0/6
157  Speed Field: medium(100MHz)
158  Open Drain Enable Field: Open Drain Enabled
159  Pull / Keep Enable Field: Pull/Keeper Enabled
160  Pull / Keep Select Field: Keeper
161  Pull Up / Down Config. Field: 22K Ohm Pull Up
162  Hyst. Enable Field: Hysteresis Disabled */
163  IOMUXC_SetPinConfig(
164  IOMUXC_GPIO_SD_B1_03_LPI2C4_SDA, /* GPIO_SD_B1_03 PAD functional properties : */
165  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
166  Drive Strength Field: R0/6
167  Speed Field: medium(100MHz)
168  Open Drain Enable Field: Open Drain Enabled
169  Pull / Keep Enable Field: Pull/Keeper Enabled
170  Pull / Keep Select Field: Keeper
171  Pull Up / Down Config. Field: 22K Ohm Pull Up
172  Hyst. Enable Field: Hysteresis Disabled */
173 }
174 
175 
176 /*
177  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
178 LPI2C1_DeinitPins:
179 - options: {coreID: core0, enableClock: 'true'}
180 - pin_list:
181  - {pin_num: J11, peripheral: GPIO1, signal: 'gpio_io, 16', pin_signal: GPIO_AD_B1_00}
182  - {pin_num: K11, peripheral: GPIO1, signal: 'gpio_io, 17', pin_signal: GPIO_AD_B1_01}
183  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
184  */
185 /*
186  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
187 LPI2C1_DeinitPins:
188 - options: {coreID: core0, enableClock: 'true'}
189 - pin_list:
190  - {pin_num: '75', peripheral: GPIO1, signal: 'gpio_io, 30', pin_signal: GPIO_AD_B1_14}
191  - {pin_num: '74', peripheral: GPIO1, signal: 'gpio_io, 31', pin_signal: GPIO_AD_B1_15}
192  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
193  */
194 
195 /* FUNCTION ************************************************************************************************************
196  *
197  * Function Name : LPI2C1_DeinitPins
198  * Description : Configures pin routing and optionally pin electrical features.
199  *
200  * END ****************************************************************************************************************/
201 void LPI2C1_DeinitPins(void) {
202  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
203 
204  IOMUXC_SetPinMux(
205  IOMUXC_GPIO_AD_B1_14_GPIO1_IO30, /* GPIO_AD_B1_14 is configured as GPIO1_IO30 */
206  0U); /* Software Input On Field: Input Path is determined by functionality */
207  IOMUXC_SetPinMux(
208  IOMUXC_GPIO_AD_B1_15_GPIO1_IO31, /* GPIO_AD_B1_15 is configured as GPIO1_IO31 */
209  0U); /* Software Input On Field: Input Path is determined by functionality */
210 }
211 
212 /*FUNCTION**********************************************************************
213  *
214  * Function Name : LPI2C4_DeinitPins
215  * Description : Configures pin routing and optionally pin electrical features.
216  *
217  *END**************************************************************************/
218 void LPI2C4_DeinitPins(void) {
219  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
220 
221  IOMUXC_SetPinMux(
222  IOMUXC_GPIO_SD_B1_02_LPI2C4_SCL, /* GPIO_SD_B1_02 is configured as LPI2C4_SCL */
223  0U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_02 */
224  IOMUXC_SetPinMux(
225  IOMUXC_GPIO_SD_B1_03_LPI2C4_SDA, /* GPIO_SD_B1_03 is configured as LPI2C4_SDA */
226  0U);
227 }
228 
229 /*FUNCTION**********************************************************************
230  *
231  * Function Name : LPUART1_InitPins
232  * Description : Configures pin routing and optionally pin electrical features.
233  *
234  *END**************************************************************************/
235 void LPUART1_InitPins(void) {
236  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
237 
238  IOMUXC_SetPinMux(
239  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 is configured as LPUART1_TX */
240  0U); /* Software Input On Field: Input Path is determined by functionality */
241  IOMUXC_SetPinMux(
242  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 is configured as LPUART1_RX */
243  0U); /* Software Input On Field: Input Path is determined by functionality */
244 
245  IOMUXC_SetPinConfig(
246  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 PAD functional properties : */
247  0x10B0u); /* Slew Rate Field: Slow Slew Rate
248  Drive Strength Field: R0/6
249  Speed Field: medium(100MHz)
250  Open Drain Enable Field: Open Drain Disabled
251  Pull / Keep Enable Field: Pull/Keeper Enabled
252  Pull / Keep Select Field: Keeper
253  Pull Up / Down Config. Field: 100K Ohm Pull Down
254  Hyst. Enable Field: Hysteresis Disabled */
255  IOMUXC_SetPinConfig(
256  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 PAD functional properties : */
257  0x10B0u); /* Slew Rate Field: Slow Slew Rate
258  Drive Strength Field: R0/6
259  Speed Field: medium(100MHz)
260  Open Drain Enable Field: Open Drain Disabled
261  Pull / Keep Enable Field: Pull/Keeper Enabled
262  Pull / Keep Select Field: Keeper
263  Pull Up / Down Config. Field: 100K Ohm Pull Down
264  Hyst. Enable Field: Hysteresis Disabled */
265 }
266 
267 
268 /*
269  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
270 LPUART1_DeinitPins:
271 - options: {coreID: core0, enableClock: 'true'}
272 - pin_list:
273  - {pin_num: K14, peripheral: GPIO1, signal: 'gpio_io, 12', pin_signal: GPIO_AD_B0_12}
274  - {pin_num: L14, peripheral: GPIO1, signal: 'gpio_io, 13', pin_signal: GPIO_AD_B0_13}
275  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
276  */
277 
278 /*FUNCTION**********************************************************************
279  *
280  * Function Name : LPUART1_DeinitPins
281  * Description : Configures pin routing and optionally pin electrical features.
282  *
283  *END**************************************************************************/
284 void LPUART1_DeinitPins(void) {
285  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
286 
287  IOMUXC_SetPinMux(
288  IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 is configured as LPUART1_TX */
289  0U); /* Software Input On Field: Input Path is determined by functionality */
290  IOMUXC_SetPinMux(
291  IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 is configured as LPUART1_RX */
292  0U); /* Software Input On Field: Input Path is determined by functionality */
293 }
294 
295 /*******************************************************************************
296  * EOF
297  ******************************************************************************/
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
void LPI2C1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:311
void LPUART1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:421
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