1 /*
2 * Copyright 2018-2019 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 v5.0
17 processor: MIMXRT1015xxxxx
18 package_id: MIMXRT1015DAF5A
19 mcu_data: ksdk2_0
20 processor_version: 0.0.2
21 board: MIMXRT1015-EVK
22 power_domains: {NVCC_GPIO: '3.3'}
23 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
24 */
25
26 #include "fsl_common.h"
27 #include "fsl_iomuxc.h"
28 #include "pin_mux.h"
29
30 /* FUNCTION ************************************************************************************************************
31 *
32 * Function Name : BOARD_InitBootPins
33 * Description : Calls initialization functions.
34 *
35 * END ****************************************************************************************************************/
BOARD_InitBootPins(void)36 void BOARD_InitBootPins(void) {
37 BOARD_InitPins();
38 BOARD_InitDEBUG_UARTPins();
39 }
40
41 /*
42 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
43 BOARD_InitPins:
44 - options: {callFromInitBoot: 'true', coreID: core0, enableClock: 'true'}
45 - pin_list: []
46 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
47 */
48
49 /* FUNCTION ************************************************************************************************************
50 *
51 * Function Name : BOARD_InitPins
52 * Description : Configures pin routing and optionally pin electrical features.
53 *
54 * END ****************************************************************************************************************/
BOARD_InitPins(void)55 void BOARD_InitPins(void) {
56 }
57
58
59 /*
60 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
61 BOARD_InitDEBUG_UARTPins:
62 - options: {callFromInitBoot: 'true', coreID: core0, enableClock: 'true'}
63 - pin_list:
64 - {pin_num: '68', peripheral: LPUART1, signal: RX, pin_signal: GPIO_AD_B0_07}
65 - {pin_num: '72', peripheral: LPUART1, signal: TX, pin_signal: GPIO_AD_B0_06}
66 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
67 */
68
69 /* FUNCTION ************************************************************************************************************
70 *
71 * Function Name : BOARD_InitDEBUG_UARTPins
72 * Description : Configures pin routing and optionally pin electrical features.
73 *
74 * END ****************************************************************************************************************/
BOARD_InitDEBUG_UARTPins(void)75 void BOARD_InitDEBUG_UARTPins(void) {
76 CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03U */
77
78 IOMUXC_SetPinMux(
79 IOMUXC_GPIO_AD_B0_06_LPUART1_TX, /* GPIO_AD_B0_06 is configured as LPUART1_TX */
80 0U); /* Software Input On Field: Input Path is determined by functionality */
81 IOMUXC_SetPinMux(
82 IOMUXC_GPIO_AD_B0_07_LPUART1_RX, /* GPIO_AD_B0_07 is configured as LPUART1_RX */
83 0U); /* Software Input On Field: Input Path is determined by functionality */
84 }
85
86
87 /*
88 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
89 BOARD_InitQSPIPins:
90 - options: {coreID: core0, enableClock: 'true'}
91 - pin_list:
92 - {pin_num: '12', peripheral: FLEXSPI, signal: FLEXSPI_A_SCLK, pin_signal: GPIO_SD_B1_07}
93 - {pin_num: '11', peripheral: FLEXSPI, signal: FLEXSPI_A_DATA0, pin_signal: GPIO_SD_B1_08}
94 - {pin_num: '9', peripheral: FLEXSPI, signal: FLEXSPI_A_DATA1, pin_signal: GPIO_SD_B1_10}
95 - {pin_num: '10', peripheral: FLEXSPI, signal: FLEXSPI_A_DATA2, pin_signal: GPIO_SD_B1_09}
96 - {pin_num: '13', peripheral: FLEXSPI, signal: FLEXSPI_A_DATA3, pin_signal: GPIO_SD_B1_06}
97 - {pin_num: '8', peripheral: FLEXSPI, signal: FLEXSPI_A_SS0_B, pin_signal: GPIO_SD_B1_11}
98 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
99 */
100
101 /* FUNCTION ************************************************************************************************************
102 *
103 * Function Name : BOARD_InitQSPIPins
104 * Description : Configures pin routing and optionally pin electrical features.
105 *
106 * END ****************************************************************************************************************/
BOARD_InitQSPIPins(void)107 void BOARD_InitQSPIPins(void) {
108 CLOCK_EnableClock(kCLOCK_Iomuxc); /* iomuxc clock (iomuxc_clk_enable): 0x03U */
109
110 IOMUXC_SetPinMux(
111 IOMUXC_GPIO_SD_B1_06_FLEXSPI_A_DATA03, /* GPIO_SD_B1_06 is configured as FLEXSPI_A_DATA03 */
112 0U); /* Software Input On Field: Input Path is determined by functionality */
113 IOMUXC_SetPinMux(
114 IOMUXC_GPIO_SD_B1_07_FLEXSPI_A_SCLK, /* GPIO_SD_B1_07 is configured as FLEXSPI_A_SCLK */
115 0U); /* Software Input On Field: Input Path is determined by functionality */
116 IOMUXC_SetPinMux(
117 IOMUXC_GPIO_SD_B1_08_FLEXSPI_A_DATA00, /* GPIO_SD_B1_08 is configured as FLEXSPI_A_DATA00 */
118 0U); /* Software Input On Field: Input Path is determined by functionality */
119 IOMUXC_SetPinMux(
120 IOMUXC_GPIO_SD_B1_09_FLEXSPI_A_DATA02, /* GPIO_SD_B1_09 is configured as FLEXSPI_A_DATA02 */
121 0U); /* Software Input On Field: Input Path is determined by functionality */
122 IOMUXC_SetPinMux(
123 IOMUXC_GPIO_SD_B1_10_FLEXSPI_A_DATA01, /* GPIO_SD_B1_10 is configured as FLEXSPI_A_DATA01 */
124 0U); /* Software Input On Field: Input Path is determined by functionality */
125 IOMUXC_SetPinMux(
126 IOMUXC_GPIO_SD_B1_11_FLEXSPI_A_SS0_B, /* GPIO_SD_B1_11 is configured as FLEXSPI_A_SS0_B */
127 0U); /* Software Input On Field: Input Path is determined by functionality */
128 }
129
130 /***********************************************************************************************************************
131 * EOF
132 **********************************************************************************************************************/
133