pin_mux.c
Go to the documentation of this file.
1 /*
2  * Copyright 2017-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: MIMXRT1052xxxxB
18 package_id: MIMXRT1052DVL6B
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  - {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,
48  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
49  - {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,
50  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
51  - {pin_num: M13, peripheral: SAI1, signal: sai_mclk, pin_signal: GPIO_AD_B1_09, software_input_on: Enable, hysteresis_enable: Disable, pull_up_down_config: Pull_Down_100K_Ohm,
52  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
53  - {pin_num: G12, peripheral: SAI1, signal: sai_tx_bclk, pin_signal: GPIO_AD_B1_14, software_input_on: Enable, hysteresis_enable: Disable, pull_up_down_config: Pull_Down_100K_Ohm,
54  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
55  - {pin_num: H11, peripheral: SAI1, signal: sai_tx_data0, pin_signal: GPIO_AD_B1_13, software_input_on: Enable, hysteresis_enable: Disable, pull_up_down_config: Pull_Down_100K_Ohm,
56  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
57  - {pin_num: J14, peripheral: SAI1, signal: sai_tx_sync, pin_signal: GPIO_AD_B1_15, software_input_on: Enable, hysteresis_enable: Disable, pull_up_down_config: Pull_Down_100K_Ohm,
58  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
59  - {pin_num: H12, peripheral: SAI1, signal: sai_rx_data0, pin_signal: GPIO_AD_B1_12, software_input_on: Enable, hysteresis_enable: Disable, pull_up_down_config: Pull_Down_100K_Ohm,
60  pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
61  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
62  */
63 
64 /* FUNCTION ************************************************************************************************************
65  *
66  * Function Name : BOARD_InitPins
67  * Description : Configures pin routing and optionally pin electrical features.
68  *
69  * END ****************************************************************************************************************/
70 void BOARD_InitPins(void) {
71  CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
72 
74  IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 is configured as LPUART1_TX */
75  0U); /* Software Input On Field: Input Path is determined by functionality */
77  IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 is configured as LPUART1_RX */
78  0U); /* Software Input On Field: Input Path is determined by functionality */
80  IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, /* GPIO_AD_B1_00 is configured as LPI2C1_SCL */
81  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_00 */
83  IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, /* GPIO_AD_B1_01 is configured as LPI2C1_SDA */
84  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_01 */
86  IOMUXC_GPIO_AD_B1_09_SAI1_MCLK, /* GPIO_AD_B1_09 is configured as SAI1_MCLK */
87  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_09 */
89  IOMUXC_GPIO_AD_B1_12_SAI1_RX_DATA00, /* GPIO_AD_B1_12 is configured as SAI1_RX_DATA00 */
90  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_12 */
92  IOMUXC_GPIO_AD_B1_13_SAI1_TX_DATA00, /* GPIO_AD_B1_13 is configured as SAI1_TX_DATA00 */
93  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_13 */
95  IOMUXC_GPIO_AD_B1_14_SAI1_TX_BCLK, /* GPIO_AD_B1_14 is configured as SAI1_TX_BCLK */
96  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_14 */
98  IOMUXC_GPIO_AD_B1_15_SAI1_TX_SYNC, /* GPIO_AD_B1_15 is configured as SAI1_TX_SYNC */
99  1U); /* Software Input On Field: Force input path of pad GPIO_AD_B1_15 */
101  IOMUXC_GPIO_AD_B0_12_LPUART1_TX, /* GPIO_AD_B0_12 PAD functional properties : */
102  0x10B0u); /* Slew Rate Field: Slow Slew Rate
103  Drive Strength Field: R0/6
104  Speed Field: medium(100MHz)
105  Open Drain Enable Field: Open Drain Disabled
106  Pull / Keep Enable Field: Pull/Keeper Enabled
107  Pull / Keep Select Field: Keeper
108  Pull Up / Down Config. Field: 100K Ohm Pull Down
109  Hyst. Enable Field: Hysteresis Disabled */
111  IOMUXC_GPIO_AD_B0_13_LPUART1_RX, /* GPIO_AD_B0_13 PAD functional properties : */
112  0x10B0u); /* Slew Rate Field: Slow Slew Rate
113  Drive Strength Field: R0/6
114  Speed Field: medium(100MHz)
115  Open Drain Enable Field: Open Drain Disabled
116  Pull / Keep Enable Field: Pull/Keeper Enabled
117  Pull / Keep Select Field: Keeper
118  Pull Up / Down Config. Field: 100K Ohm Pull Down
119  Hyst. Enable Field: Hysteresis Disabled */
121  IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL, /* GPIO_AD_B1_00 PAD functional properties : */
122  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
123  Drive Strength Field: R0/6
124  Speed Field: medium(100MHz)
125  Open Drain Enable Field: Open Drain Enabled
126  Pull / Keep Enable Field: Pull/Keeper Enabled
127  Pull / Keep Select Field: Keeper
128  Pull Up / Down Config. Field: 22K Ohm Pull Up
129  Hyst. Enable Field: Hysteresis Disabled */
131  IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA, /* GPIO_AD_B1_01 PAD functional properties : */
132  0xD8B0u); /* Slew Rate Field: Slow Slew Rate
133  Drive Strength Field: R0/6
134  Speed Field: medium(100MHz)
135  Open Drain Enable Field: Open Drain Enabled
136  Pull / Keep Enable Field: Pull/Keeper Enabled
137  Pull / Keep Select Field: Keeper
138  Pull Up / Down Config. Field: 22K Ohm Pull Up
139  Hyst. Enable Field: Hysteresis Disabled */
141  IOMUXC_GPIO_AD_B1_09_SAI1_MCLK, /* GPIO_AD_B1_09 PAD functional properties : */
142  0x10B0u); /* Slew Rate Field: Slow Slew Rate
143  Drive Strength Field: R0/6
144  Speed Field: medium(100MHz)
145  Open Drain Enable Field: Open Drain Disabled
146  Pull / Keep Enable Field: Pull/Keeper Enabled
147  Pull / Keep Select Field: Keeper
148  Pull Up / Down Config. Field: 100K Ohm Pull Down
149  Hyst. Enable Field: Hysteresis Disabled */
151  IOMUXC_GPIO_AD_B1_12_SAI1_RX_DATA00, /* GPIO_AD_B1_12 PAD functional properties : */
152  0x10B0u); /* Slew Rate Field: Slow Slew Rate
153  Drive Strength Field: R0/6
154  Speed Field: medium(100MHz)
155  Open Drain Enable Field: Open Drain Disabled
156  Pull / Keep Enable Field: Pull/Keeper Enabled
157  Pull / Keep Select Field: Keeper
158  Pull Up / Down Config. Field: 100K Ohm Pull Down
159  Hyst. Enable Field: Hysteresis Disabled */
161  IOMUXC_GPIO_AD_B1_13_SAI1_TX_DATA00, /* GPIO_AD_B1_13 PAD functional properties : */
162  0x10B0u); /* Slew Rate Field: Slow Slew Rate
163  Drive Strength Field: R0/6
164  Speed Field: medium(100MHz)
165  Open Drain Enable Field: Open Drain Disabled
166  Pull / Keep Enable Field: Pull/Keeper Enabled
167  Pull / Keep Select Field: Keeper
168  Pull Up / Down Config. Field: 100K Ohm Pull Down
169  Hyst. Enable Field: Hysteresis Disabled */
171  IOMUXC_GPIO_AD_B1_14_SAI1_TX_BCLK, /* GPIO_AD_B1_14 PAD functional properties : */
172  0x10B0u); /* Slew Rate Field: Slow Slew Rate
173  Drive Strength Field: R0/6
174  Speed Field: medium(100MHz)
175  Open Drain Enable Field: Open Drain Disabled
176  Pull / Keep Enable Field: Pull/Keeper Enabled
177  Pull / Keep Select Field: Keeper
178  Pull Up / Down Config. Field: 100K Ohm Pull Down
179  Hyst. Enable Field: Hysteresis Disabled */
181  IOMUXC_GPIO_AD_B1_15_SAI1_TX_SYNC, /* GPIO_AD_B1_15 PAD functional properties : */
182  0x10B0u); /* Slew Rate Field: Slow Slew Rate
183  Drive Strength Field: R0/6
184  Speed Field: medium(100MHz)
185  Open Drain Enable Field: Open Drain Disabled
186  Pull / Keep Enable Field: Pull/Keeper Enabled
187  Pull / Keep Select Field: Keeper
188  Pull Up / Down Config. Field: 100K Ohm Pull Down
189  Hyst. Enable Field: Hysteresis Disabled */
190 }
191 
192 /***********************************************************************************************************************
193  * EOF
194  **********************************************************************************************************************/
IOMUXC_GPIO_AD_B1_14_SAI1_TX_BCLK
#define IOMUXC_GPIO_AD_B1_14_SAI1_TX_BCLK
Definition: fsl_iomuxc.h:631
fsl_common.h
IOMUXC_GPIO_AD_B0_12_LPUART1_TX
#define IOMUXC_GPIO_AD_B0_12_LPUART1_TX
Definition: fsl_iomuxc.h:469
IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA
#define IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA
Definition: fsl_iomuxc.h:514
IOMUXC_GPIO_AD_B1_09_SAI1_MCLK
#define IOMUXC_GPIO_AD_B1_09_SAI1_MCLK
Definition: fsl_iomuxc.h:586
IOMUXC_GPIO_AD_B0_13_LPUART1_RX
#define IOMUXC_GPIO_AD_B0_13_LPUART1_RX
Definition: fsl_iomuxc.h:478
IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL
#define IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL
Definition: fsl_iomuxc.h:505
IOMUXC_SetPinConfig
static void IOMUXC_SetPinConfig(uint32_t muxRegister, uint32_t muxMode, uint32_t inputRegister, uint32_t inputDaisy, uint32_t configRegister, uint32_t configValue)
Sets the IOMUXC pin configuration.
Definition: fsl_iomuxc.h:1125
IOMUXC_GPIO_AD_B1_13_SAI1_TX_DATA00
#define IOMUXC_GPIO_AD_B1_13_SAI1_TX_DATA00
Definition: fsl_iomuxc.h:622
IOMUXC_SetPinMux
static void IOMUXC_SetPinMux(uint32_t muxRegister, uint32_t muxMode, uint32_t inputRegister, uint32_t inputDaisy, uint32_t configRegister, uint32_t inputOnfield)
Sets the IOMUXC pin mux mode.
Definition: fsl_iomuxc.h:1093
CLOCK_EnableClock
static void CLOCK_EnableClock(clock_ip_name_t name)
Enable the clock for specific IP.
Definition: fsl_clock.h:1059
pin_mux.h
IOMUXC_GPIO_AD_B1_15_SAI1_TX_SYNC
#define IOMUXC_GPIO_AD_B1_15_SAI1_TX_SYNC
Definition: fsl_iomuxc.h:640
kCLOCK_Iomuxc
@ kCLOCK_Iomuxc
Definition: fsl_clock.h:521
BOARD_InitBootPins
void BOARD_InitBootPins(void)
Calls initialization functions.
Definition: pin_mux.c:34
fsl_iomuxc.h
IOMUXC_GPIO_AD_B1_12_SAI1_RX_DATA00
#define IOMUXC_GPIO_AD_B1_12_SAI1_RX_DATA00
Definition: fsl_iomuxc.h:613
BOARD_InitPins
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:70


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:50