249 lines
17 KiB
C
249 lines
17 KiB
C
/*
|
|
* Copyright 2019-2020 NXP
|
|
* All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/***********************************************************************************************************************
|
|
* This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
|
|
* will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
|
|
**********************************************************************************************************************/
|
|
|
|
/*
|
|
* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
|
|
!!GlobalInfo
|
|
product: Pins v7.0
|
|
processor: MIMXRT1052xxxxB
|
|
package_id: MIMXRT1052DVL6B
|
|
mcu_data: ksdk2_0
|
|
processor_version: 0.7.9
|
|
board: IMXRT1050-EVKB
|
|
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
|
|
*/
|
|
|
|
#include "fsl_common.h"
|
|
#include "fsl_iomuxc.h"
|
|
#include "pin_mux.h"
|
|
|
|
/* FUNCTION ************************************************************************************************************
|
|
*
|
|
* Function Name : BOARD_InitBootPins
|
|
* Description : Calls initialization functions.
|
|
*
|
|
* END ****************************************************************************************************************/
|
|
void BOARD_InitBootPins(void) {
|
|
BOARD_InitPins();
|
|
}
|
|
|
|
/*
|
|
* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
|
|
BOARD_InitPins:
|
|
- options: {callFromInitBoot: 'true', prefix: BOARD_, coreID: core0, enableClock: 'true'}
|
|
- pin_list:
|
|
- {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,
|
|
pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
|
|
- {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,
|
|
pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
|
|
- {pin_num: D10, peripheral: ARM, signal: arm_trace_swo, pin_signal: GPIO_B0_13, slew_rate: Slow}
|
|
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
|
|
*/
|
|
|
|
/* FUNCTION ************************************************************************************************************
|
|
*
|
|
* Function Name : BOARD_InitPins
|
|
* Description : Configures pin routing and optionally pin electrical features.
|
|
*
|
|
* END ****************************************************************************************************************/
|
|
void BOARD_InitPins(void) {
|
|
CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03u */
|
|
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_AD_B0_12_LPUART1_TXD, /* GPIO_AD_B0_12 is configured as LPUART1_TXD */
|
|
0U); /* Software Input On Field: Input Path is determined by functionality */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_AD_B0_13_LPUART1_RXD, /* GPIO_AD_B0_13 is configured as LPUART1_RXD */
|
|
0U); /* Software Input On Field: Input Path is determined by functionality */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_00_FLEXSPI_B_DATA3, /* GPIO_SD_B1_00 is configured as FLEXSPI_B_DATA3 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_00 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_01_FLEXSPI_B_DATA2, /* GPIO_SD_B1_01 is configured as FLEXSPI_B_DATA2 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_01 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_02_FLEXSPI_B_DATA1, /* GPIO_SD_B1_02 is configured as FLEXSPI_B_DATA1 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_02 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_03_FLEXSPI_B_DATA0, /* GPIO_SD_B1_03 is configured as FLEXSPI_B_DATA0 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_03 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_04_FLEXSPI_B_SCLK, /* GPIO_SD_B1_04 is configured as FLEXSPI_B_SCLK */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_04 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_05_FLEXSPI_A_DQS, /* GPIO_SD_B1_05 is configured as FLEXSPI_A_DQS */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_05 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_06_FLEXSPI_A_SS0_B, /* GPIO_SD_B1_06 is configured as FLEXSPI_A_SS0_B */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_06 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_07_FLEXSPI_A_SCLK, /* GPIO_SD_B1_07 is configured as FLEXSPI_A_SCLK */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_07 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_08_FLEXSPI_A_DATA00, /* GPIO_SD_B1_08 is configured as FLEXSPI_A_DATA00 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_08 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_09_FLEXSPI_A_DATA1, /* GPIO_SD_B1_09 is configured as FLEXSPI_A_DATA1 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_09 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_10_FLEXSPI_A_DATA2, /* GPIO_SD_B1_10 is configured as FLEXSPI_A_DATA2 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_10 */
|
|
IOMUXC_SetPinMux(
|
|
IOMUXC_GPIO_SD_B1_11_FLEXSPI_A_DATA3, /* GPIO_SD_B1_11 is configured as FLEXSPI_A_DATA3 */
|
|
1U); /* Software Input On Field: Force input path of pad GPIO_SD_B1_11 */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_AD_B0_12_LPUART1_TXD, /* GPIO_AD_B0_12 PAD functional properties : */
|
|
0x10B0u); /* Slew Rate Field: Slow Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: medium(100MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_AD_B0_13_LPUART1_RXD, /* GPIO_AD_B0_13 PAD functional properties : */
|
|
0x10B0u); /* Slew Rate Field: Slow Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: medium(100MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_00_FLEXSPI_B_DATA3, /* GPIO_SD_B1_00 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_01_FLEXSPI_B_DATA2, /* GPIO_SD_B1_01 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_02_FLEXSPI_B_DATA1, /* GPIO_SD_B1_02 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_03_FLEXSPI_B_DATA0, /* GPIO_SD_B1_03 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_04_FLEXSPI_B_SCLK, /* GPIO_SD_B1_04 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_05_FLEXSPI_A_DQS, /* GPIO_SD_B1_05 PAD functional properties : */
|
|
0x0130F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Pull
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Enabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_06_FLEXSPI_A_SS0_B, /* GPIO_SD_B1_06 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_07_FLEXSPI_A_SCLK, /* GPIO_SD_B1_07 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_08_FLEXSPI_A_DATA00, /* GPIO_SD_B1_08 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_09_FLEXSPI_A_DATA1, /* GPIO_SD_B1_09 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_10_FLEXSPI_A_DATA2, /* GPIO_SD_B1_10 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
IOMUXC_SetPinConfig(
|
|
IOMUXC_GPIO_SD_B1_11_FLEXSPI_A_DATA3, /* GPIO_SD_B1_11 PAD functional properties : */
|
|
0x10F1u); /* Slew Rate Field: Fast Slew Rate
|
|
Drive Strength Field: R0/6
|
|
Speed Field: max(200MHz)
|
|
Open Drain Enable Field: Open Drain Disabled
|
|
Pull / Keep Enable Field: Pull/Keeper Enabled
|
|
Pull / Keep Select Field: Keeper
|
|
Pull Up / Down Config. Field: 100K Ohm Pull Down
|
|
Hyst. Enable Field: Hysteresis Disabled */
|
|
}
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
* EOF
|
|
**********************************************************************************************************************/
|