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: MIMXRT1064xxxxA
18 package_id: MIMXRT1064DVL6A
19 mcu_data: ksdk2_0
20 processor_version: 0.0.0
21 board: MIMXRT1064-EVK
22 pin_labels:
23 - {pin_num: E3, pin_signal: GPIO_EMC_00, label: SEMC_D0, identifier: SEMC_D0}
24 - {pin_num: F3, pin_signal: GPIO_EMC_01, label: SEMC_D1, identifier: SEMC_D1}
25 - {pin_num: F4, pin_signal: GPIO_EMC_02, label: SEMC_D2, identifier: SEMC_D2}
26 - {pin_num: F2, pin_signal: GPIO_EMC_04, label: SEMC_D4, identifier: SEMC_D4}
27 - {pin_num: G4, pin_signal: GPIO_EMC_03, label: SEMC_D3, identifier: SEMC_D3}
28 - {pin_num: G5, pin_signal: GPIO_EMC_05, label: SEMC_D5, identifier: SEMC_D5}
29 - {pin_num: H5, pin_signal: GPIO_EMC_06, label: SEMC_D6, identifier: SEMC_D6}
30 - {pin_num: H4, pin_signal: GPIO_EMC_07, label: SEMC_D7, identifier: SEMC_D7}
31 - {pin_num: H3, pin_signal: GPIO_EMC_08, label: SEMC_DM0, identifier: SEMC_DM0}
32 - {pin_num: C2, pin_signal: GPIO_EMC_09, label: SEMC_A0, identifier: SEMC_A0}
33 - {pin_num: G1, pin_signal: GPIO_EMC_10, label: SEMC_A1, identifier: SEMC_A1}
34 - {pin_num: G3, pin_signal: GPIO_EMC_11, label: SEMC_A2, identifier: SEMC_A2}
35 - {pin_num: H1, pin_signal: GPIO_EMC_12, label: SEMC_A3, identifier: SEMC_A3}
36 - {pin_num: A6, pin_signal: GPIO_EMC_13, label: SEMC_A4, identifier: SEMC_A4}
37 - {pin_num: B6, pin_signal: GPIO_EMC_14, label: SEMC_A5, identifier: SEMC_A5}
38 - {pin_num: B1, pin_signal: GPIO_EMC_15, label: SEMC_A6, identifier: SEMC_A6}
39 - {pin_num: A5, pin_signal: GPIO_EMC_16, label: SEMC_A7, identifier: SEMC_A7}
40 - {pin_num: A4, pin_signal: GPIO_EMC_17, label: SEMC_A8, identifier: SEMC_A8}
41 - {pin_num: B2, pin_signal: GPIO_EMC_18, label: SEMC_A9, identifier: SEMC_A9}
42 - {pin_num: B4, pin_signal: GPIO_EMC_19, label: SEMC_A11, identifier: SEMC_A11}
43 - {pin_num: G2, pin_signal: GPIO_EMC_23, label: SEMC_A10, identifier: SEMC_A10}
44 - {pin_num: A3, pin_signal: GPIO_EMC_20, label: SEMC_A12, identifier: SEMC_A12}
45 - {pin_num: C1, pin_signal: GPIO_EMC_21, label: SEMC_BA0, identifier: SEMC_BA0}
46 - {pin_num: F1, pin_signal: GPIO_EMC_22, label: SEMC_BA1, identifier: SEMC_BA1}
47 - {pin_num: D3, pin_signal: GPIO_EMC_24, label: SEMC_CAS, identifier: SEMC_CAS}
48 - {pin_num: D2, pin_signal: GPIO_EMC_25, label: SEMC_RAS, identifier: SEMC_RAS}
49 - {pin_num: B3, pin_signal: GPIO_EMC_26, label: SEMC_CLK, identifier: SEMC_CLK}
50 - {pin_num: A2, pin_signal: GPIO_EMC_27, label: SEMC_CKE, identifier: SEMC_CKE}
51 - {pin_num: D1, pin_signal: GPIO_EMC_28, label: SEMC_WE, identifier: SEMC_WE}
52 - {pin_num: E1, pin_signal: GPIO_EMC_29, label: SEMC_CS0, identifier: SEMC_CS0}
53 - {pin_num: C6, pin_signal: GPIO_EMC_30, label: SEMC_D8, identifier: SEMC_D8}
54 - {pin_num: C5, pin_signal: GPIO_EMC_31, label: SEMC_D9, identifier: SEMC_D9}
55 - {pin_num: D5, pin_signal: GPIO_EMC_32, label: SEMC_D10, identifier: SEMC_D10}
56 - {pin_num: C4, pin_signal: GPIO_EMC_33, label: SEMC_D11, identifier: SEMC_D11}
57 - {pin_num: D4, pin_signal: GPIO_EMC_34, label: SEMC_D12, identifier: SEMC_D12}
58 - {pin_num: E5, pin_signal: GPIO_EMC_35, label: SEMC_D13, identifier: SEMC_D13}
59 - {pin_num: C3, pin_signal: GPIO_EMC_36, label: SEMC_D14, identifier: SEMC_D14}
60 - {pin_num: E4, pin_signal: GPIO_EMC_37, label: SEMC_D15, identifier: SEMC_D15}
61 - {pin_num: D6, pin_signal: GPIO_EMC_38, label: SEMC_DM1, identifier: SEMC_DM1}
62 - {pin_num: B7, pin_signal: GPIO_EMC_39, label: SEMC_DQS, identifier: SEMC_DQS}
63 - {pin_num: A7, pin_signal: GPIO_EMC_40, label: ENET_MDC, identifier: ENET_MDC}
64 - {pin_num: C7, pin_signal: GPIO_EMC_41, label: ENET_MDIO, identifier: ENET_MDIO}
65 - {pin_num: D7, pin_signal: GPIO_B0_00, label: LCDIF_CLK, identifier: LCDIF_CLK}
66 - {pin_num: E7, pin_signal: GPIO_B0_01, label: LCDIF_ENABLE, identifier: LCDIF_ENABLE}
67 - {pin_num: E8, pin_signal: GPIO_B0_02, label: LCDIF_HSYNC, identifier: LCDIF_HSYNC}
68 - {pin_num: D8, pin_signal: GPIO_B0_03, label: LCDIF_VSYNC, identifier: LCDIF_VSYNC}
69 - {pin_num: C8, pin_signal: GPIO_B0_04, label: 'LCDIF_D0/BT_CFG[0]', identifier: LCDIF_D0}
70 - {pin_num: B8, pin_signal: GPIO_B0_05, label: 'LCDIF_D1/BT_CFG[1]', identifier: LCDIF_D1}
71 - {pin_num: A8, pin_signal: GPIO_B0_06, label: 'LCDIF_D2/BT_CFG[2]', identifier: LCDIF_D2}
72 - {pin_num: A9, pin_signal: GPIO_B0_07, label: 'LCDIF_D3/BT_CFG[3]', identifier: LCDIF_D3}
73 - {pin_num: B9, pin_signal: GPIO_B0_08, label: 'LCDIF_D4/BT_CFG[4]', identifier: LCDIF_D4}
74 - {pin_num: C9, pin_signal: GPIO_B0_09, label: 'LCDIF_D5/BT_CFG[5]', identifier: LCDIF_D5}
75 - {pin_num: D9, pin_signal: GPIO_B0_10, label: 'LCDIF_D6/BT_CFG[6]', identifier: LCDIF_D6}
76 - {pin_num: A10, pin_signal: GPIO_B0_11, label: 'LCDIF_D7/BT_CFG[7]', identifier: LCDIF_D7}
77 - {pin_num: C10, pin_signal: GPIO_B0_12, label: 'LCDIF_D8/BT_CFG[8]', identifier: LCDIF_D8}
78 - {pin_num: D10, pin_signal: GPIO_B0_13, label: 'LCDIF_D9/BT_CFG[9]', identifier: LCDIF_D9}
79 - {pin_num: E10, pin_signal: GPIO_B0_14, label: 'LCDIF_D10/BT_CFG[10]', identifier: LCDIF_D10}
80 - {pin_num: E11, pin_signal: GPIO_B0_15, label: 'LCDIF_D11/BT_CFG[11]', identifier: LCDIF_D11}
81 - {pin_num: A11, pin_signal: GPIO_B1_00, label: LCDIF_D12, identifier: LCDIF_D12}
82 - {pin_num: B11, pin_signal: GPIO_B1_01, label: LCDIF_D13, identifier: LCDIF_D13}
83 - {pin_num: C11, pin_signal: GPIO_B1_02, label: LCDIF_D14, identifier: LCDIF_D14}
84 - {pin_num: D11, pin_signal: GPIO_B1_03, label: LCDIF_D15, identifier: LCDIF_D15}
85 - {pin_num: E12, pin_signal: GPIO_B1_04, label: ENET_RXD0, identifier: ENET_RXD0}
86 - {pin_num: D12, pin_signal: GPIO_B1_05, label: ENET_RXD1, identifier: ENET_RXD1}
87 - {pin_num: C12, pin_signal: GPIO_B1_06, label: ENET_CRS_DV, identifier: ENET_CRS_DV}
88 - {pin_num: B12, pin_signal: GPIO_B1_07, label: ENET_TXD0, identifier: ENET_TXD0}
89 - {pin_num: A12, pin_signal: GPIO_B1_08, label: ENET_TXD1, identifier: ENET_TXD1}
90 - {pin_num: A13, pin_signal: GPIO_B1_09, label: ENET_TXEN, identifier: ENET_TXEN}
91 - {pin_num: B13, pin_signal: GPIO_B1_10, label: ENET_TX_CLK, identifier: ENET_TX_CLK}
92 - {pin_num: C13, pin_signal: GPIO_B1_11, label: ENET_RXER, identifier: ENET_RXER}
93 - {pin_num: D13, pin_signal: GPIO_B1_12, label: SD_CD_SW, identifier: SD_CD_SW}
94 - {pin_num: D14, pin_signal: GPIO_B1_13, label: WDOG_B, identifier: WDOG_B}
95 - {pin_num: C14, pin_signal: GPIO_B1_14, label: SD0_VSELECT, identifier: SD0_VSELECT}
96 - {pin_num: B14, pin_signal: GPIO_B1_15, label: USB_HOST_PWR/BACKLIGHT_CTL, identifier: BACKLIGHT_CTL}
97 - {pin_num: E9, pin_signal: NVCC_GPIO0, label: DCDC_3V3/NVCC_GPIO_3V3}
98 - {pin_num: F10, pin_signal: NVCC_GPIO1, label: DCDC_3V3/NVCC_GPIO_3V3}
99 - {pin_num: J10, pin_signal: NVCC_GPIO2, label: DCDC_3V3/NVCC_GPIO_3V3}
100 - {pin_num: M14, pin_signal: GPIO_AD_B0_00, label: 'USB_HOST_OC/J24[10]'}
101 - {pin_num: H10, pin_signal: GPIO_AD_B0_01, label: 'USB_OTG1_ID/J24[9]'}
102 - {pin_num: M11, pin_signal: GPIO_AD_B0_02, label: 'USB_OTG1_PWR/J24[2]'}
103 - {pin_num: G11, pin_signal: GPIO_AD_B0_03, label: 'USB_OTG1_OC/J24[1]'}
104 - {pin_num: F11, pin_signal: GPIO_AD_B0_04, label: 'CSI_PWDN/J35[17]/BOOT_MODE[0]', identifier: CSI_PWDN}
105 - {pin_num: G14, pin_signal: GPIO_AD_B0_05, label: 'CAN_STBY/BOOT_MODE[1]/Flash_RST/U12[8]', identifier: CAN_STBY}
106 - {pin_num: E14, pin_signal: GPIO_AD_B0_06, label: 'JTAG_TMS/J21[7]/SWD_DIO'}
107 - {pin_num: F12, pin_signal: GPIO_AD_B0_07, label: 'JTAG_TCK/J21[9]/SWD_CLK'}
108 - {pin_num: F13, pin_signal: GPIO_AD_B0_08, label: JTAG_MOD}
109 - {pin_num: F14, pin_signal: GPIO_AD_B0_09, label: 'JTAG_TDI/J21[5]/ENET_RST/J22[5]'}
110 - {pin_num: G13, pin_signal: GPIO_AD_B0_10, label: 'JTAG_TDO/J21[13]/INT1_COMBO/ENET_INT/J22[6]/U32[11]', identifier: INT1_COMBO}
111 - {pin_num: G10, pin_signal: GPIO_AD_B0_11, label: 'JTAG_nTRST/J21[3]/INT2_COMBO/LCD_TOUCH_INT/J22[3]/U32[9]', identifier: INT2_COMBO}
112 - {pin_num: K14, pin_signal: GPIO_AD_B0_12, label: UART1_TXD, identifier: UART1_TXD}
113 - {pin_num: L14, pin_signal: GPIO_AD_B0_13, label: UART1_RXD, identifier: UART1_RXD}
114 - {pin_num: H14, pin_signal: GPIO_AD_B0_14, label: 'CAN2_TX/U12[1]', identifier: CAN2_TX}
115 - {pin_num: L10, pin_signal: GPIO_AD_B0_15, label: 'CAN2_RX/U12[4]', identifier: CAN2_RX}
116 - {pin_num: J11, pin_signal: GPIO_AD_B1_00, label: 'I2C1_SCL/CSI_I2C_SCL/J35[20]/J23[6]/U13[17]/U32[4]', identifier: I2C_SCL_FXOS8700CQ;CSI_I2C_SCL}
117 - {pin_num: K11, pin_signal: GPIO_AD_B1_01, label: 'I2C1_SDA/CSI_I2C_SDA/J35[22]/J23[5]/U13[18]/U32[6]', identifier: I2C_SDA_FXOS8700CQ;CSI_I2C_SDA}
118 - {pin_num: L11, pin_signal: GPIO_AD_B1_02, label: 'SPDIF_OUT/J22[7]', identifier: SPDIF_OUT}
119 - {pin_num: M12, pin_signal: GPIO_AD_B1_03, label: 'SPDIF_IN/J22[8]', identifier: SPDIF_IN}
120 - {pin_num: H13, pin_signal: GPIO_AD_B1_08, label: 'AUD_INT/CSI_D9//J35[13]/J22[4]', identifier: CSI_D9}
121 - {pin_num: M13, pin_signal: GPIO_AD_B1_09, label: 'SAI1_MCLK/CSI_D8/J35[11]', identifier: CSI_D8}
122 - {pin_num: L13, pin_signal: GPIO_AD_B1_10, label: 'SAI1_RX_SYNC/CSI_D7/J35[9]/J23[1]', identifier: CSI_D7}
123 - {pin_num: J13, pin_signal: GPIO_AD_B1_11, label: 'SAI1_RX_BCLK/CSI_D6/J35[7]/J23[2]', identifier: CSI_D6}
124 - {pin_num: H12, pin_signal: GPIO_AD_B1_12, label: 'SAI1_RXD/CSI_D5/J35[5]/U13[16]', identifier: CSI_D5}
125 - {pin_num: H11, pin_signal: GPIO_AD_B1_13, label: 'SAI1_TXD/CSI_D4/J35[3]/U13[14]', identifier: CSI_D4}
126 - {pin_num: G12, pin_signal: GPIO_AD_B1_14, label: 'SAI1_TX_BCLK/CSI_D3/J35[4]/U13[12]', identifier: CSI_D3}
127 - {pin_num: J14, pin_signal: GPIO_AD_B1_15, label: 'SAI1_TX_SYNC/CSI_D2/J35[6]/U13[13]', identifier: CSI_D2}
128 - {pin_num: J4, pin_signal: GPIO_SD_B0_00, label: 'SD1_CMD/J24[6]', identifier: SD1_CMD}
129 - {pin_num: J3, pin_signal: GPIO_SD_B0_01, label: 'SD1_CLK/J24[3]', identifier: SD1_CLK}
130 - {pin_num: J1, pin_signal: GPIO_SD_B0_02, label: 'SD1_D0/J24[4]/SPI_MOSI/PWM', identifier: SD1_D0}
131 - {pin_num: K1, pin_signal: GPIO_SD_B0_03, label: 'SD1_D1/J24[5]/SPI_MISO', identifier: SD1_D1}
132 - {pin_num: H2, pin_signal: GPIO_SD_B0_04, label: SD1_D2, identifier: SD1_D2}
133 - {pin_num: J2, pin_signal: GPIO_SD_B0_05, label: SD1_D3, identifier: SD1_D3}
134 - {pin_num: L5, pin_signal: GPIO_SD_B1_00, label: FlexSPI_D3_B, identifier: FlexSPI_D3_B}
135 - {pin_num: M5, pin_signal: GPIO_SD_B1_01, label: FlexSPI_D2_B, identifier: FlexSPI_D2_B}
136 - {pin_num: M3, pin_signal: GPIO_SD_B1_02, label: FlexSPI_D1_B, identifier: FlexSPI_D1_B}
137 - {pin_num: M4, pin_signal: GPIO_SD_B1_03, label: FlexSPI_D0_B, identifier: FlexSPI_D0_B}
138 - {pin_num: P2, pin_signal: GPIO_SD_B1_04, label: FlexSPI_CLK_B, identifier: FlexSPI_CLK_B}
139 - {pin_num: N3, pin_signal: GPIO_SD_B1_05, label: FlexSPI_DQS, identifier: FlexSPI_DQS}
140 - {pin_num: L3, pin_signal: GPIO_SD_B1_06, label: FlexSPI_SS0, identifier: FlexSPI_SS0}
141 - {pin_num: L4, pin_signal: GPIO_SD_B1_07, label: FlexSPI_CLK, identifier: FlexSPI_CLK}
142 - {pin_num: P3, pin_signal: GPIO_SD_B1_08, label: FlexSPI_D0_A, identifier: FlexSPI_D0_A}
143 - {pin_num: N4, pin_signal: GPIO_SD_B1_09, label: FlexSPI_D1_A, identifier: FlexSPI_D1_A}
144 - {pin_num: P4, pin_signal: GPIO_SD_B1_10, label: FlexSPI_D2_A, identifier: FlexSPI_D2_A}
145 - {pin_num: P5, pin_signal: GPIO_SD_B1_11, label: FlexSPI_D3_A, identifier: FlexSPI_D3_A}
146 - {pin_num: M8, pin_signal: USB_OTG1_DN, label: OTG1_DN, identifier: OTG1_DN}
147 - {pin_num: L8, pin_signal: USB_OTG1_DP, label: OTG1_DP, identifier: OTG1_DP}
148 - {pin_num: N7, pin_signal: USB_OTG2_DN, label: OTG2_DN, identifier: OTG2_DN}
149 - {pin_num: P7, pin_signal: USB_OTG2_DP, label: OTG2_DP, identifier: OTG2_DP}
150 - {pin_num: K8, pin_signal: VDD_USB_CAP, label: VDD_USB_3V}
151 - {pin_num: N6, pin_signal: USB_OTG1_VBUS, label: 5V_USB_OTG}
152 - {pin_num: P6, pin_signal: USB_OTG2_VBUS, label: 5V_USB_HS}
153 - {pin_num: L12, pin_signal: GPIO_AD_B1_04, label: 'CSI_PIXCLK/J35[8]/J23[3]', identifier: CSI_PIXCLK}
154 - {pin_num: K12, pin_signal: GPIO_AD_B1_05, label: 'CSI_MCLK/J35[12]/J23[4]', identifier: CSI_MCLK}
155 - {pin_num: J12, pin_signal: GPIO_AD_B1_06, label: 'CSI_VSYNC/J35[18]/J22[2]/UART_TX', identifier: CSI_VSYNC}
156 - {pin_num: K10, pin_signal: GPIO_AD_B1_07, label: 'CSI_HSYNC/J35[16]/J22[1]/UART_RX', identifier: CSI_HSYNC}
157 - {pin_num: M7, pin_signal: POR_B, label: 'RST_TGTMCU_B/POR_B/J21[15]', identifier: RST_TGTMCU_B;POR_B}
158 - {pin_num: N14, pin_signal: VDDA_ADC_3P3, label: VDDA_ADC_3P3_MCU}
159 - {pin_num: P12, pin_signal: VDD_HIGH_IN, label: VDD_HIGH_IN_MCU}
160 - {pin_num: M9, pin_signal: VDD_SNVS_IN, label: VDD_SNVS_IN}
161 - {pin_num: F6, pin_signal: VDD_SOC_IN0, label: VDD_SOC_IN}
162 - {pin_num: H6, pin_signal: VDD_SOC_IN2, label: VDD_SOC_IN}
163 - {pin_num: G6, pin_signal: VDD_SOC_IN1, label: VDD_SOC_IN}
164 - {pin_num: F7, pin_signal: VDD_SOC_IN3, label: VDD_SOC_IN}
165 - {pin_num: F8, pin_signal: VDD_SOC_IN4, label: VDD_SOC_IN}
166 - {pin_num: F9, pin_signal: VDD_SOC_IN5, label: VDD_SOC_IN}
167 - {pin_num: G9, pin_signal: VDD_SOC_IN6, label: VDD_SOC_IN}
168 - {pin_num: H9, pin_signal: VDD_SOC_IN7, label: VDD_SOC_IN}
169 - {pin_num: J9, pin_signal: VDD_SOC_IN8, label: VDD_SOC_IN}
170 - {pin_num: P1, pin_signal: VSS1, label: GND}
171 - {pin_num: E2, pin_signal: VSS2, label: GND}
172 - {pin_num: K2, pin_signal: VSS3, label: GND}
173 - {pin_num: B5, pin_signal: VSS4, label: GND}
174 - {pin_num: N5, pin_signal: VSS5, label: GND}
175 - {pin_num: G7, pin_signal: VSS6, label: GND}
176 - {pin_num: H7, pin_signal: VSS7, label: GND}
177 - {pin_num: J7, pin_signal: VSS8, label: GND}
178 - {pin_num: G8, pin_signal: VSS9, label: GND}
179 - {pin_num: H8, pin_signal: VSS10, label: GND}
180 - {pin_num: J8, pin_signal: VSS11, label: GND}
181 - {pin_num: N8, pin_signal: VSS12, label: GND}
182 - {pin_num: L9, pin_signal: VSS13, label: GND}
183 - {pin_num: B10, pin_signal: VSS14, label: GND}
184 - {pin_num: E13, pin_signal: VSS15, label: GND}
185 - {pin_num: K13, pin_signal: VSS16, label: GND}
186 - {pin_num: A14, pin_signal: VSS17, label: GND}
187 - {pin_num: P14, pin_signal: VSS18, label: GND}
188 - {pin_num: A1, pin_signal: VSS0, label: GND}
189 - {pin_num: J6, pin_signal: NVCC_SD0, label: NVCC_SD, identifier: NVCC_SD}
190 - {pin_num: K5, pin_signal: NVCC_SD1, label: FLASH_VCC, identifier: FLASH_VCC}
191 - {pin_num: F5, pin_signal: NVCC_EMC0, label: DCDC_3V3}
192 - {pin_num: E6, pin_signal: NVCC_EMC1, label: DCDC_3V3}
193 - {pin_num: L6, pin_signal: WAKEUP, label: SD_PWREN, identifier: SD_PWREN}
194 - {pin_num: L1, pin_signal: DCDC_IN0, label: MCU_DCDC_IN_3V3}
195 - {pin_num: L2, pin_signal: DCDC_IN1, label: MCU_DCDC_IN_3V3}
196 - {pin_num: K4, pin_signal: DCDC_IN_Q, label: MCU_DCDC_IN_3V3}
197 - {pin_num: M1, pin_signal: DCDC_LP0, label: VDD_SOC_IN}
198 - {pin_num: M2, pin_signal: DCDC_LP1, label: VDD_SOC_IN}
199 - {pin_num: P11, pin_signal: XTALI, label: XTALI, identifier: XTALI}
200 - {pin_num: N11, pin_signal: XTALO, label: XTALO, identifier: XTALO}
201 - {pin_num: N9, pin_signal: RTC_XTALI, label: RTC_XTALI, identifier: RTC_XTALI}
202 - {pin_num: P9, pin_signal: RTC_XTALO, label: RTC_XTALO, identifier: RTC_XTALO}
203 - {pin_num: N1, pin_signal: DCDC_GND0, label: GND}
204 - {pin_num: N2, pin_signal: DCDC_GND1, label: GND}
205 - {pin_num: J5, pin_signal: DCDC_SENSE, label: VDD_SOC_IN}
206 - {pin_num: K3, pin_signal: DCDC_PSWITCH, label: MCU_DCDC_IN_3V3}
207 - {pin_num: K7, pin_signal: PMIC_ON_REQ, label: PMIC_ON_REQ, identifier: PMIC_ON_REQ}
208 - {pin_num: L7, pin_signal: PMIC_STBY_REQ, label: PERI_PWREN, identifier: PERI_PWREN}
209 - {pin_num: M6, pin_signal: ONOFF, label: ONOFF, identifier: ONOFF}
210 - {pin_num: K6, pin_signal: TEST_MODE, label: GND}
211 - {pin_num: P10, pin_signal: NVCC_PLL, label: VDDA_1P1_CAP}
212 - {pin_num: P8, pin_signal: VDD_HIGH_CAP, label: VDDA_2P5_CAP}
213 - {pin_num: K9, pin_signal: NGND_KEL0, label: GND}
214 - {pin_num: M10, pin_signal: VDD_SNVS_CAP, label: GND}
215  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
216  */
217 
218 #include "fsl_common.h"
219 #include "fsl_iomuxc.h"
220 #include "pin_mux.h"
221 
222 /* FUNCTION ************************************************************************************************************
223  *
224  * Function Name : BOARD_InitBootPins
225  * Description   : Calls initialization functions.
226  *
227  * END ****************************************************************************************************************/
BOARD_InitBootPins(void)228 void BOARD_InitBootPins(void) {
229     BOARD_InitPins();
230     BOARD_InitDEBUG_UART();
231 }
232 
233 /*
234  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
235 BOARD_InitPins:
236 - options: {callFromInitBoot: 'true', coreID: core0, enableClock: 'true'}
237 - pin_list: []
238  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
239  */
240 
241 /* FUNCTION ************************************************************************************************************
242  *
243  * Function Name : BOARD_InitPins
244  * Description   : Configures pin routing and optionally pin electrical features.
245  *
246  * END ****************************************************************************************************************/
BOARD_InitPins(void)247 void BOARD_InitPins(void) {
248 }
249 
250 
251 /*
252  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
253 BOARD_InitDEBUG_UART:
254 - options: {callFromInitBoot: 'true', coreID: core0, enableClock: 'true'}
255 - pin_list:
256   - {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,
257     pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
258   - {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,
259     pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Disable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
260  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
261  */
262 
263 /* FUNCTION ************************************************************************************************************
264  *
265  * Function Name : BOARD_InitDEBUG_UART
266  * Description   : Configures pin routing and optionally pin electrical features.
267  *
268  * END ****************************************************************************************************************/
BOARD_InitDEBUG_UART(void)269 void BOARD_InitDEBUG_UART(void) {
270   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
271 
272   IOMUXC_SetPinMux(
273       IOMUXC_GPIO_AD_B0_12_LPUART1_TX,        /* GPIO_AD_B0_12 is configured as LPUART1_TX */
274       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
275   IOMUXC_SetPinMux(
276       IOMUXC_GPIO_AD_B0_13_LPUART1_RX,        /* GPIO_AD_B0_13 is configured as LPUART1_RX */
277       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
278   IOMUXC_SetPinConfig(
279       IOMUXC_GPIO_AD_B0_12_LPUART1_TX,        /* GPIO_AD_B0_12 PAD functional properties : */
280       0x10B0u);                               /* Slew Rate Field: Slow Slew Rate
281                                                  Drive Strength Field: R0/6
282                                                  Speed Field: medium(100MHz)
283                                                  Open Drain Enable Field: Open Drain Disabled
284                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
285                                                  Pull / Keep Select Field: Keeper
286                                                  Pull Up / Down Config. Field: 100K Ohm Pull Down
287                                                  Hyst. Enable Field: Hysteresis Disabled */
288   IOMUXC_SetPinConfig(
289       IOMUXC_GPIO_AD_B0_13_LPUART1_RX,        /* GPIO_AD_B0_13 PAD functional properties : */
290       0x10B0u);                               /* Slew Rate Field: Slow Slew Rate
291                                                  Drive Strength Field: R0/6
292                                                  Speed Field: medium(100MHz)
293                                                  Open Drain Enable Field: Open Drain Disabled
294                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
295                                                  Pull / Keep Select Field: Keeper
296                                                  Pull Up / Down Config. Field: 100K Ohm Pull Down
297                                                  Hyst. Enable Field: Hysteresis Disabled */
298 }
299 
300 
301 /*
302  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
303 BOARD_InitSDRAM:
304 - options: {coreID: core0, enableClock: 'true'}
305 - pin_list:
306   - {pin_num: C2, peripheral: SEMC, signal: 'ADDR, 00', pin_signal: GPIO_EMC_09}
307   - {pin_num: G1, peripheral: SEMC, signal: 'ADDR, 01', pin_signal: GPIO_EMC_10}
308   - {pin_num: G3, peripheral: SEMC, signal: 'ADDR, 02', pin_signal: GPIO_EMC_11}
309   - {pin_num: H1, peripheral: SEMC, signal: 'ADDR, 03', pin_signal: GPIO_EMC_12}
310   - {pin_num: A6, peripheral: SEMC, signal: 'ADDR, 04', pin_signal: GPIO_EMC_13}
311   - {pin_num: B6, peripheral: SEMC, signal: 'ADDR, 05', pin_signal: GPIO_EMC_14}
312   - {pin_num: B1, peripheral: SEMC, signal: 'ADDR, 06', pin_signal: GPIO_EMC_15}
313   - {pin_num: A5, peripheral: SEMC, signal: 'ADDR, 07', pin_signal: GPIO_EMC_16}
314   - {pin_num: A4, peripheral: SEMC, signal: 'ADDR, 08', pin_signal: GPIO_EMC_17}
315   - {pin_num: B2, peripheral: SEMC, signal: 'ADDR, 09', pin_signal: GPIO_EMC_18}
316   - {pin_num: G2, peripheral: SEMC, signal: 'ADDR, 10', pin_signal: GPIO_EMC_23}
317   - {pin_num: B4, peripheral: SEMC, signal: 'ADDR, 11', pin_signal: GPIO_EMC_19}
318   - {pin_num: A3, peripheral: SEMC, signal: 'ADDR, 12', pin_signal: GPIO_EMC_20}
319   - {pin_num: C1, peripheral: SEMC, signal: 'BA, 0', pin_signal: GPIO_EMC_21}
320   - {pin_num: F1, peripheral: SEMC, signal: 'BA, 1', pin_signal: GPIO_EMC_22}
321   - {pin_num: D3, peripheral: SEMC, signal: semc_cas, pin_signal: GPIO_EMC_24}
322   - {pin_num: A2, peripheral: SEMC, signal: semc_cke, pin_signal: GPIO_EMC_27}
323   - {pin_num: B3, peripheral: SEMC, signal: semc_clk, pin_signal: GPIO_EMC_26}
324   - {pin_num: E3, peripheral: SEMC, signal: 'DATA, 00', pin_signal: GPIO_EMC_00}
325   - {pin_num: F3, peripheral: SEMC, signal: 'DATA, 01', pin_signal: GPIO_EMC_01}
326   - {pin_num: F4, peripheral: SEMC, signal: 'DATA, 02', pin_signal: GPIO_EMC_02}
327   - {pin_num: G4, peripheral: SEMC, signal: 'DATA, 03', pin_signal: GPIO_EMC_03}
328   - {pin_num: F2, peripheral: SEMC, signal: 'DATA, 04', pin_signal: GPIO_EMC_04}
329   - {pin_num: G5, peripheral: SEMC, signal: 'DATA, 05', pin_signal: GPIO_EMC_05}
330   - {pin_num: H5, peripheral: SEMC, signal: 'DATA, 06', pin_signal: GPIO_EMC_06}
331   - {pin_num: H4, peripheral: SEMC, signal: 'DATA, 07', pin_signal: GPIO_EMC_07}
332   - {pin_num: C6, peripheral: SEMC, signal: 'DATA, 08', pin_signal: GPIO_EMC_30}
333   - {pin_num: C5, peripheral: SEMC, signal: 'DATA, 09', pin_signal: GPIO_EMC_31}
334   - {pin_num: D5, peripheral: SEMC, signal: 'DATA, 10', pin_signal: GPIO_EMC_32}
335   - {pin_num: C4, peripheral: SEMC, signal: 'DATA, 11', pin_signal: GPIO_EMC_33}
336   - {pin_num: D4, peripheral: SEMC, signal: 'DATA, 12', pin_signal: GPIO_EMC_34}
337   - {pin_num: E5, peripheral: SEMC, signal: 'DATA, 13', pin_signal: GPIO_EMC_35}
338   - {pin_num: C3, peripheral: SEMC, signal: 'DATA, 14', pin_signal: GPIO_EMC_36}
339   - {pin_num: E4, peripheral: SEMC, signal: 'DATA, 15', pin_signal: GPIO_EMC_37}
340   - {pin_num: H3, peripheral: SEMC, signal: 'DM, 0', pin_signal: GPIO_EMC_08}
341   - {pin_num: D6, peripheral: SEMC, signal: 'DM, 1', pin_signal: GPIO_EMC_38}
342   - {pin_num: D2, peripheral: SEMC, signal: semc_ras, pin_signal: GPIO_EMC_25}
343   - {pin_num: D1, peripheral: SEMC, signal: semc_we, pin_signal: GPIO_EMC_28}
344   - {pin_num: C7, peripheral: SEMC, signal: 'CSX, 0', pin_signal: GPIO_EMC_41}
345  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
346  */
347 
348 /* FUNCTION ************************************************************************************************************
349  *
350  * Function Name : BOARD_InitSDRAM
351  * Description   : Configures pin routing and optionally pin electrical features.
352  *
353  * END ****************************************************************************************************************/
BOARD_InitSDRAM(void)354 void BOARD_InitSDRAM(void) {
355   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
356 
357   IOMUXC_SetPinMux(
358       IOMUXC_GPIO_EMC_00_SEMC_DATA00,         /* GPIO_EMC_00 is configured as SEMC_DATA00 */
359       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
360   IOMUXC_SetPinMux(
361       IOMUXC_GPIO_EMC_01_SEMC_DATA01,         /* GPIO_EMC_01 is configured as SEMC_DATA01 */
362       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
363   IOMUXC_SetPinMux(
364       IOMUXC_GPIO_EMC_02_SEMC_DATA02,         /* GPIO_EMC_02 is configured as SEMC_DATA02 */
365       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
366   IOMUXC_SetPinMux(
367       IOMUXC_GPIO_EMC_03_SEMC_DATA03,         /* GPIO_EMC_03 is configured as SEMC_DATA03 */
368       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
369   IOMUXC_SetPinMux(
370       IOMUXC_GPIO_EMC_04_SEMC_DATA04,         /* GPIO_EMC_04 is configured as SEMC_DATA04 */
371       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
372   IOMUXC_SetPinMux(
373       IOMUXC_GPIO_EMC_05_SEMC_DATA05,         /* GPIO_EMC_05 is configured as SEMC_DATA05 */
374       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
375   IOMUXC_SetPinMux(
376       IOMUXC_GPIO_EMC_06_SEMC_DATA06,         /* GPIO_EMC_06 is configured as SEMC_DATA06 */
377       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
378   IOMUXC_SetPinMux(
379       IOMUXC_GPIO_EMC_07_SEMC_DATA07,         /* GPIO_EMC_07 is configured as SEMC_DATA07 */
380       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
381   IOMUXC_SetPinMux(
382       IOMUXC_GPIO_EMC_08_SEMC_DM00,           /* GPIO_EMC_08 is configured as SEMC_DM00 */
383       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
384   IOMUXC_SetPinMux(
385       IOMUXC_GPIO_EMC_09_SEMC_ADDR00,         /* GPIO_EMC_09 is configured as SEMC_ADDR00 */
386       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
387   IOMUXC_SetPinMux(
388       IOMUXC_GPIO_EMC_10_SEMC_ADDR01,         /* GPIO_EMC_10 is configured as SEMC_ADDR01 */
389       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
390   IOMUXC_SetPinMux(
391       IOMUXC_GPIO_EMC_11_SEMC_ADDR02,         /* GPIO_EMC_11 is configured as SEMC_ADDR02 */
392       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
393   IOMUXC_SetPinMux(
394       IOMUXC_GPIO_EMC_12_SEMC_ADDR03,         /* GPIO_EMC_12 is configured as SEMC_ADDR03 */
395       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
396   IOMUXC_SetPinMux(
397       IOMUXC_GPIO_EMC_13_SEMC_ADDR04,         /* GPIO_EMC_13 is configured as SEMC_ADDR04 */
398       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
399   IOMUXC_SetPinMux(
400       IOMUXC_GPIO_EMC_14_SEMC_ADDR05,         /* GPIO_EMC_14 is configured as SEMC_ADDR05 */
401       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
402   IOMUXC_SetPinMux(
403       IOMUXC_GPIO_EMC_15_SEMC_ADDR06,         /* GPIO_EMC_15 is configured as SEMC_ADDR06 */
404       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
405   IOMUXC_SetPinMux(
406       IOMUXC_GPIO_EMC_16_SEMC_ADDR07,         /* GPIO_EMC_16 is configured as SEMC_ADDR07 */
407       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
408   IOMUXC_SetPinMux(
409       IOMUXC_GPIO_EMC_17_SEMC_ADDR08,         /* GPIO_EMC_17 is configured as SEMC_ADDR08 */
410       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
411   IOMUXC_SetPinMux(
412       IOMUXC_GPIO_EMC_18_SEMC_ADDR09,         /* GPIO_EMC_18 is configured as SEMC_ADDR09 */
413       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
414   IOMUXC_SetPinMux(
415       IOMUXC_GPIO_EMC_19_SEMC_ADDR11,         /* GPIO_EMC_19 is configured as SEMC_ADDR11 */
416       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
417   IOMUXC_SetPinMux(
418       IOMUXC_GPIO_EMC_20_SEMC_ADDR12,         /* GPIO_EMC_20 is configured as SEMC_ADDR12 */
419       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
420   IOMUXC_SetPinMux(
421       IOMUXC_GPIO_EMC_21_SEMC_BA0,            /* GPIO_EMC_21 is configured as SEMC_BA0 */
422       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
423   IOMUXC_SetPinMux(
424       IOMUXC_GPIO_EMC_22_SEMC_BA1,            /* GPIO_EMC_22 is configured as SEMC_BA1 */
425       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
426   IOMUXC_SetPinMux(
427       IOMUXC_GPIO_EMC_23_SEMC_ADDR10,         /* GPIO_EMC_23 is configured as SEMC_ADDR10 */
428       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
429   IOMUXC_SetPinMux(
430       IOMUXC_GPIO_EMC_24_SEMC_CAS,            /* GPIO_EMC_24 is configured as SEMC_CAS */
431       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
432   IOMUXC_SetPinMux(
433       IOMUXC_GPIO_EMC_25_SEMC_RAS,            /* GPIO_EMC_25 is configured as SEMC_RAS */
434       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
435   IOMUXC_SetPinMux(
436       IOMUXC_GPIO_EMC_26_SEMC_CLK,            /* GPIO_EMC_26 is configured as SEMC_CLK */
437       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
438   IOMUXC_SetPinMux(
439       IOMUXC_GPIO_EMC_27_SEMC_CKE,            /* GPIO_EMC_27 is configured as SEMC_CKE */
440       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
441   IOMUXC_SetPinMux(
442       IOMUXC_GPIO_EMC_28_SEMC_WE,             /* GPIO_EMC_28 is configured as SEMC_WE */
443       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
444   IOMUXC_SetPinMux(
445       IOMUXC_GPIO_EMC_30_SEMC_DATA08,         /* GPIO_EMC_30 is configured as SEMC_DATA08 */
446       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
447   IOMUXC_SetPinMux(
448       IOMUXC_GPIO_EMC_31_SEMC_DATA09,         /* GPIO_EMC_31 is configured as SEMC_DATA09 */
449       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
450   IOMUXC_SetPinMux(
451       IOMUXC_GPIO_EMC_32_SEMC_DATA10,         /* GPIO_EMC_32 is configured as SEMC_DATA10 */
452       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
453   IOMUXC_SetPinMux(
454       IOMUXC_GPIO_EMC_33_SEMC_DATA11,         /* GPIO_EMC_33 is configured as SEMC_DATA11 */
455       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
456   IOMUXC_SetPinMux(
457       IOMUXC_GPIO_EMC_34_SEMC_DATA12,         /* GPIO_EMC_34 is configured as SEMC_DATA12 */
458       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
459   IOMUXC_SetPinMux(
460       IOMUXC_GPIO_EMC_35_SEMC_DATA13,         /* GPIO_EMC_35 is configured as SEMC_DATA13 */
461       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
462   IOMUXC_SetPinMux(
463       IOMUXC_GPIO_EMC_36_SEMC_DATA14,         /* GPIO_EMC_36 is configured as SEMC_DATA14 */
464       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
465   IOMUXC_SetPinMux(
466       IOMUXC_GPIO_EMC_37_SEMC_DATA15,         /* GPIO_EMC_37 is configured as SEMC_DATA15 */
467       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
468   IOMUXC_SetPinMux(
469       IOMUXC_GPIO_EMC_38_SEMC_DM01,           /* GPIO_EMC_38 is configured as SEMC_DM01 */
470       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
471   IOMUXC_SetPinMux(
472       IOMUXC_GPIO_EMC_41_SEMC_CSX00,          /* GPIO_EMC_41 is configured as SEMC_CSX00 */
473       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
474 }
475 
476 
477 /*
478  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
479 BOARD_InitCSI:
480 - options: {coreID: core0, enableClock: 'true'}
481 - pin_list:
482   - {pin_num: H13, peripheral: CSI, signal: 'csi_data, 09', pin_signal: GPIO_AD_B1_08}
483   - {pin_num: M13, peripheral: CSI, signal: 'csi_data, 08', pin_signal: GPIO_AD_B1_09}
484   - {pin_num: L13, peripheral: CSI, signal: 'csi_data, 07', pin_signal: GPIO_AD_B1_10}
485   - {pin_num: J13, peripheral: CSI, signal: 'csi_data, 06', pin_signal: GPIO_AD_B1_11}
486   - {pin_num: H12, peripheral: CSI, signal: 'csi_data, 05', pin_signal: GPIO_AD_B1_12}
487   - {pin_num: H11, peripheral: CSI, signal: 'csi_data, 04', pin_signal: GPIO_AD_B1_13}
488   - {pin_num: J14, peripheral: CSI, signal: 'csi_data, 02', pin_signal: GPIO_AD_B1_15}
489   - {pin_num: G12, peripheral: CSI, signal: 'csi_data, 03', pin_signal: GPIO_AD_B1_14}
490   - {pin_num: L12, peripheral: CSI, signal: csi_pixclk, pin_signal: GPIO_AD_B1_04}
491   - {pin_num: K12, peripheral: CSI, signal: csi_mclk, pin_signal: GPIO_AD_B1_05}
492   - {pin_num: J12, peripheral: CSI, signal: csi_vsync, pin_signal: GPIO_AD_B1_06}
493   - {pin_num: K10, peripheral: CSI, signal: csi_hsync, pin_signal: GPIO_AD_B1_07}
494   - {pin_num: J11, peripheral: LPI2C1, signal: SCL, pin_signal: GPIO_AD_B1_00, identifier: CSI_I2C_SCL, software_input_on: Disable, hysteresis_enable: Disable, pull_up_down_config: Pull_Up_22K_Ohm,
495     pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
496   - {pin_num: K11, peripheral: LPI2C1, signal: SDA, pin_signal: GPIO_AD_B1_01, identifier: CSI_I2C_SDA, software_input_on: Disable, hysteresis_enable: Disable, pull_up_down_config: Pull_Up_22K_Ohm,
497     pull_keeper_select: Keeper, pull_keeper_enable: Enable, open_drain: Enable, speed: MHZ_100, drive_strength: R0_6, slew_rate: Slow}
498   - {pin_num: F11, peripheral: GPIO1, signal: 'gpio_io, 04', pin_signal: GPIO_AD_B0_04}
499  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
500  */
501 
502 /* FUNCTION ************************************************************************************************************
503  *
504  * Function Name : BOARD_InitCSI
505  * Description   : Configures pin routing and optionally pin electrical features.
506  *
507  * END ****************************************************************************************************************/
BOARD_InitCSI(void)508 void BOARD_InitCSI(void) {
509   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
510 
511   IOMUXC_SetPinMux(
512       IOMUXC_GPIO_AD_B0_04_GPIO1_IO04,        /* GPIO_AD_B0_04 is configured as GPIO1_IO04 */
513       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
514   IOMUXC_SetPinMux(
515       IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL,        /* GPIO_AD_B1_00 is configured as LPI2C1_SCL */
516       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
517   IOMUXC_SetPinMux(
518       IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA,        /* GPIO_AD_B1_01 is configured as LPI2C1_SDA */
519       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
520   IOMUXC_SetPinMux(
521       IOMUXC_GPIO_AD_B1_04_CSI_PIXCLK,        /* GPIO_AD_B1_04 is configured as CSI_PIXCLK */
522       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
523   IOMUXC_SetPinMux(
524       IOMUXC_GPIO_AD_B1_05_CSI_MCLK,          /* GPIO_AD_B1_05 is configured as CSI_MCLK */
525       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
526   IOMUXC_SetPinMux(
527       IOMUXC_GPIO_AD_B1_06_CSI_VSYNC,         /* GPIO_AD_B1_06 is configured as CSI_VSYNC */
528       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
529   IOMUXC_SetPinMux(
530       IOMUXC_GPIO_AD_B1_07_CSI_HSYNC,         /* GPIO_AD_B1_07 is configured as CSI_HSYNC */
531       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
532   IOMUXC_SetPinMux(
533       IOMUXC_GPIO_AD_B1_08_CSI_DATA09,        /* GPIO_AD_B1_08 is configured as CSI_DATA09 */
534       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
535   IOMUXC_SetPinMux(
536       IOMUXC_GPIO_AD_B1_09_CSI_DATA08,        /* GPIO_AD_B1_09 is configured as CSI_DATA08 */
537       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
538   IOMUXC_SetPinMux(
539       IOMUXC_GPIO_AD_B1_10_CSI_DATA07,        /* GPIO_AD_B1_10 is configured as CSI_DATA07 */
540       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
541   IOMUXC_SetPinMux(
542       IOMUXC_GPIO_AD_B1_11_CSI_DATA06,        /* GPIO_AD_B1_11 is configured as CSI_DATA06 */
543       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
544   IOMUXC_SetPinMux(
545       IOMUXC_GPIO_AD_B1_12_CSI_DATA05,        /* GPIO_AD_B1_12 is configured as CSI_DATA05 */
546       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
547   IOMUXC_SetPinMux(
548       IOMUXC_GPIO_AD_B1_13_CSI_DATA04,        /* GPIO_AD_B1_13 is configured as CSI_DATA04 */
549       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
550   IOMUXC_SetPinMux(
551       IOMUXC_GPIO_AD_B1_14_CSI_DATA03,        /* GPIO_AD_B1_14 is configured as CSI_DATA03 */
552       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
553   IOMUXC_SetPinMux(
554       IOMUXC_GPIO_AD_B1_15_CSI_DATA02,        /* GPIO_AD_B1_15 is configured as CSI_DATA02 */
555       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
556   IOMUXC_SetPinConfig(
557       IOMUXC_GPIO_AD_B1_00_LPI2C1_SCL,        /* GPIO_AD_B1_00 PAD functional properties : */
558       0xD8B0u);                               /* Slew Rate Field: Slow Slew Rate
559                                                  Drive Strength Field: R0/6
560                                                  Speed Field: medium(100MHz)
561                                                  Open Drain Enable Field: Open Drain Enabled
562                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
563                                                  Pull / Keep Select Field: Keeper
564                                                  Pull Up / Down Config. Field: 22K Ohm Pull Up
565                                                  Hyst. Enable Field: Hysteresis Disabled */
566   IOMUXC_SetPinConfig(
567       IOMUXC_GPIO_AD_B1_01_LPI2C1_SDA,        /* GPIO_AD_B1_01 PAD functional properties : */
568       0xD8B0u);                               /* Slew Rate Field: Slow Slew Rate
569                                                  Drive Strength Field: R0/6
570                                                  Speed Field: medium(100MHz)
571                                                  Open Drain Enable Field: Open Drain Enabled
572                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
573                                                  Pull / Keep Select Field: Keeper
574                                                  Pull Up / Down Config. Field: 22K Ohm Pull Up
575                                                  Hyst. Enable Field: Hysteresis Disabled */
576 }
577 
578 
579 /*
580  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
581 BOARD_InitLCD:
582 - options: {coreID: core0, enableClock: 'true'}
583 - pin_list:
584   - {pin_num: C8, peripheral: LCDIF, signal: 'lcdif_data, 00', pin_signal: GPIO_B0_04, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
585   - {pin_num: B8, peripheral: LCDIF, signal: 'lcdif_data, 01', pin_signal: GPIO_B0_05, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
586   - {pin_num: A8, peripheral: LCDIF, signal: 'lcdif_data, 02', pin_signal: GPIO_B0_06, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
587   - {pin_num: D7, peripheral: LCDIF, signal: lcdif_clk, pin_signal: GPIO_B0_00, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
588   - {pin_num: A9, peripheral: LCDIF, signal: 'lcdif_data, 03', pin_signal: GPIO_B0_07, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
589   - {pin_num: B9, peripheral: LCDIF, signal: 'lcdif_data, 04', pin_signal: GPIO_B0_08, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
590   - {pin_num: C9, peripheral: LCDIF, signal: 'lcdif_data, 05', pin_signal: GPIO_B0_09, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
591   - {pin_num: D9, peripheral: LCDIF, signal: 'lcdif_data, 06', pin_signal: GPIO_B0_10, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
592   - {pin_num: A10, peripheral: LCDIF, signal: 'lcdif_data, 07', pin_signal: GPIO_B0_11, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
593   - {pin_num: C10, peripheral: LCDIF, signal: 'lcdif_data, 08', pin_signal: GPIO_B0_12, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
594   - {pin_num: D10, peripheral: LCDIF, signal: 'lcdif_data, 09', pin_signal: GPIO_B0_13, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
595   - {pin_num: E10, peripheral: LCDIF, signal: 'lcdif_data, 10', pin_signal: GPIO_B0_14, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
596   - {pin_num: E11, peripheral: LCDIF, signal: 'lcdif_data, 11', pin_signal: GPIO_B0_15, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
597   - {pin_num: A11, peripheral: LCDIF, signal: 'lcdif_data, 12', pin_signal: GPIO_B1_00, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
598   - {pin_num: B11, peripheral: LCDIF, signal: 'lcdif_data, 13', pin_signal: GPIO_B1_01, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
599   - {pin_num: C11, peripheral: LCDIF, signal: 'lcdif_data, 14', pin_signal: GPIO_B1_02, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
600   - {pin_num: D11, peripheral: LCDIF, signal: 'lcdif_data, 15', pin_signal: GPIO_B1_03, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
601   - {pin_num: E7, peripheral: LCDIF, signal: lcdif_enable, pin_signal: GPIO_B0_01, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
602   - {pin_num: E8, peripheral: LCDIF, signal: lcdif_hsync, pin_signal: GPIO_B0_02, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
603   - {pin_num: D8, peripheral: LCDIF, signal: lcdif_vsync, pin_signal: GPIO_B0_03, hysteresis_enable: Enable, pull_up_down_config: Pull_Up_100K_Ohm, pull_keeper_select: Pull}
604   - {pin_num: B14, peripheral: GPIO2, signal: 'gpio_io, 31', pin_signal: GPIO_B1_15, slew_rate: Slow}
605  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
606  */
607 
608 /* FUNCTION ************************************************************************************************************
609  *
610  * Function Name : BOARD_InitLCD
611  * Description   : Configures pin routing and optionally pin electrical features.
612  *
613  * END ****************************************************************************************************************/
BOARD_InitLCD(void)614 void BOARD_InitLCD(void) {
615   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
616 
617   IOMUXC_SetPinMux(
618       IOMUXC_GPIO_B0_00_LCD_CLK,              /* GPIO_B0_00 is configured as LCD_CLK */
619       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
620   IOMUXC_SetPinMux(
621       IOMUXC_GPIO_B0_01_LCD_ENABLE,           /* GPIO_B0_01 is configured as LCD_ENABLE */
622       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
623   IOMUXC_SetPinMux(
624       IOMUXC_GPIO_B0_02_LCD_HSYNC,            /* GPIO_B0_02 is configured as LCD_HSYNC */
625       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
626   IOMUXC_SetPinMux(
627       IOMUXC_GPIO_B0_03_LCD_VSYNC,            /* GPIO_B0_03 is configured as LCD_VSYNC */
628       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
629   IOMUXC_SetPinMux(
630       IOMUXC_GPIO_B0_04_LCD_DATA00,           /* GPIO_B0_04 is configured as LCD_DATA00 */
631       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
632   IOMUXC_SetPinMux(
633       IOMUXC_GPIO_B0_05_LCD_DATA01,           /* GPIO_B0_05 is configured as LCD_DATA01 */
634       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
635   IOMUXC_SetPinMux(
636       IOMUXC_GPIO_B0_06_LCD_DATA02,           /* GPIO_B0_06 is configured as LCD_DATA02 */
637       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
638   IOMUXC_SetPinMux(
639       IOMUXC_GPIO_B0_07_LCD_DATA03,           /* GPIO_B0_07 is configured as LCD_DATA03 */
640       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
641   IOMUXC_SetPinMux(
642       IOMUXC_GPIO_B0_08_LCD_DATA04,           /* GPIO_B0_08 is configured as LCD_DATA04 */
643       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
644   IOMUXC_SetPinMux(
645       IOMUXC_GPIO_B0_09_LCD_DATA05,           /* GPIO_B0_09 is configured as LCD_DATA05 */
646       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
647   IOMUXC_SetPinMux(
648       IOMUXC_GPIO_B0_10_LCD_DATA06,           /* GPIO_B0_10 is configured as LCD_DATA06 */
649       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
650   IOMUXC_SetPinMux(
651       IOMUXC_GPIO_B0_11_LCD_DATA07,           /* GPIO_B0_11 is configured as LCD_DATA07 */
652       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
653   IOMUXC_SetPinMux(
654       IOMUXC_GPIO_B0_12_LCD_DATA08,           /* GPIO_B0_12 is configured as LCD_DATA08 */
655       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
656   IOMUXC_SetPinMux(
657       IOMUXC_GPIO_B0_13_LCD_DATA09,           /* GPIO_B0_13 is configured as LCD_DATA09 */
658       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
659   IOMUXC_SetPinMux(
660       IOMUXC_GPIO_B0_14_LCD_DATA10,           /* GPIO_B0_14 is configured as LCD_DATA10 */
661       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
662   IOMUXC_SetPinMux(
663       IOMUXC_GPIO_B0_15_LCD_DATA11,           /* GPIO_B0_15 is configured as LCD_DATA11 */
664       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
665   IOMUXC_SetPinMux(
666       IOMUXC_GPIO_B1_00_LCD_DATA12,           /* GPIO_B1_00 is configured as LCD_DATA12 */
667       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
668   IOMUXC_SetPinMux(
669       IOMUXC_GPIO_B1_01_LCD_DATA13,           /* GPIO_B1_01 is configured as LCD_DATA13 */
670       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
671   IOMUXC_SetPinMux(
672       IOMUXC_GPIO_B1_02_LCD_DATA14,           /* GPIO_B1_02 is configured as LCD_DATA14 */
673       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
674   IOMUXC_SetPinMux(
675       IOMUXC_GPIO_B1_03_LCD_DATA15,           /* GPIO_B1_03 is configured as LCD_DATA15 */
676       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
677   IOMUXC_SetPinMux(
678       IOMUXC_GPIO_B1_15_GPIO2_IO31,           /* GPIO_B1_15 is configured as GPIO2_IO31 */
679       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
680   IOMUXC_SetPinConfig(
681       IOMUXC_GPIO_B0_00_LCD_CLK,              /* GPIO_B0_00 PAD functional properties : */
682       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
683                                                  Drive Strength Field: R0/6
684                                                  Speed Field: medium(100MHz)
685                                                  Open Drain Enable Field: Open Drain Disabled
686                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
687                                                  Pull / Keep Select Field: Pull
688                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
689                                                  Hyst. Enable Field: Hysteresis Enabled */
690   IOMUXC_SetPinConfig(
691       IOMUXC_GPIO_B0_01_LCD_ENABLE,           /* GPIO_B0_01 PAD functional properties : */
692       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
693                                                  Drive Strength Field: R0/6
694                                                  Speed Field: medium(100MHz)
695                                                  Open Drain Enable Field: Open Drain Disabled
696                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
697                                                  Pull / Keep Select Field: Pull
698                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
699                                                  Hyst. Enable Field: Hysteresis Enabled */
700   IOMUXC_SetPinConfig(
701       IOMUXC_GPIO_B0_02_LCD_HSYNC,            /* GPIO_B0_02 PAD functional properties : */
702       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
703                                                  Drive Strength Field: R0/6
704                                                  Speed Field: medium(100MHz)
705                                                  Open Drain Enable Field: Open Drain Disabled
706                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
707                                                  Pull / Keep Select Field: Pull
708                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
709                                                  Hyst. Enable Field: Hysteresis Enabled */
710   IOMUXC_SetPinConfig(
711       IOMUXC_GPIO_B0_03_LCD_VSYNC,            /* GPIO_B0_03 PAD functional properties : */
712       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
713                                                  Drive Strength Field: R0/6
714                                                  Speed Field: medium(100MHz)
715                                                  Open Drain Enable Field: Open Drain Disabled
716                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
717                                                  Pull / Keep Select Field: Pull
718                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
719                                                  Hyst. Enable Field: Hysteresis Enabled */
720   IOMUXC_SetPinConfig(
721       IOMUXC_GPIO_B0_04_LCD_DATA00,           /* GPIO_B0_04 PAD functional properties : */
722       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
723                                                  Drive Strength Field: R0/6
724                                                  Speed Field: medium(100MHz)
725                                                  Open Drain Enable Field: Open Drain Disabled
726                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
727                                                  Pull / Keep Select Field: Pull
728                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
729                                                  Hyst. Enable Field: Hysteresis Enabled */
730   IOMUXC_SetPinConfig(
731       IOMUXC_GPIO_B0_05_LCD_DATA01,           /* GPIO_B0_05 PAD functional properties : */
732       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
733                                                  Drive Strength Field: R0/6
734                                                  Speed Field: medium(100MHz)
735                                                  Open Drain Enable Field: Open Drain Disabled
736                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
737                                                  Pull / Keep Select Field: Pull
738                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
739                                                  Hyst. Enable Field: Hysteresis Enabled */
740   IOMUXC_SetPinConfig(
741       IOMUXC_GPIO_B0_06_LCD_DATA02,           /* GPIO_B0_06 PAD functional properties : */
742       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
743                                                  Drive Strength Field: R0/6
744                                                  Speed Field: medium(100MHz)
745                                                  Open Drain Enable Field: Open Drain Disabled
746                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
747                                                  Pull / Keep Select Field: Pull
748                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
749                                                  Hyst. Enable Field: Hysteresis Enabled */
750   IOMUXC_SetPinConfig(
751       IOMUXC_GPIO_B0_07_LCD_DATA03,           /* GPIO_B0_07 PAD functional properties : */
752       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
753                                                  Drive Strength Field: R0/6
754                                                  Speed Field: medium(100MHz)
755                                                  Open Drain Enable Field: Open Drain Disabled
756                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
757                                                  Pull / Keep Select Field: Pull
758                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
759                                                  Hyst. Enable Field: Hysteresis Enabled */
760   IOMUXC_SetPinConfig(
761       IOMUXC_GPIO_B0_08_LCD_DATA04,           /* GPIO_B0_08 PAD functional properties : */
762       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
763                                                  Drive Strength Field: R0/6
764                                                  Speed Field: medium(100MHz)
765                                                  Open Drain Enable Field: Open Drain Disabled
766                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
767                                                  Pull / Keep Select Field: Pull
768                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
769                                                  Hyst. Enable Field: Hysteresis Enabled */
770   IOMUXC_SetPinConfig(
771       IOMUXC_GPIO_B0_09_LCD_DATA05,           /* GPIO_B0_09 PAD functional properties : */
772       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
773                                                  Drive Strength Field: R0/6
774                                                  Speed Field: medium(100MHz)
775                                                  Open Drain Enable Field: Open Drain Disabled
776                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
777                                                  Pull / Keep Select Field: Pull
778                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
779                                                  Hyst. Enable Field: Hysteresis Enabled */
780   IOMUXC_SetPinConfig(
781       IOMUXC_GPIO_B0_10_LCD_DATA06,           /* GPIO_B0_10 PAD functional properties : */
782       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
783                                                  Drive Strength Field: R0/6
784                                                  Speed Field: medium(100MHz)
785                                                  Open Drain Enable Field: Open Drain Disabled
786                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
787                                                  Pull / Keep Select Field: Pull
788                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
789                                                  Hyst. Enable Field: Hysteresis Enabled */
790   IOMUXC_SetPinConfig(
791       IOMUXC_GPIO_B0_11_LCD_DATA07,           /* GPIO_B0_11 PAD functional properties : */
792       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
793                                                  Drive Strength Field: R0/6
794                                                  Speed Field: medium(100MHz)
795                                                  Open Drain Enable Field: Open Drain Disabled
796                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
797                                                  Pull / Keep Select Field: Pull
798                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
799                                                  Hyst. Enable Field: Hysteresis Enabled */
800   IOMUXC_SetPinConfig(
801       IOMUXC_GPIO_B0_12_LCD_DATA08,           /* GPIO_B0_12 PAD functional properties : */
802       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
803                                                  Drive Strength Field: R0/6
804                                                  Speed Field: medium(100MHz)
805                                                  Open Drain Enable Field: Open Drain Disabled
806                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
807                                                  Pull / Keep Select Field: Pull
808                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
809                                                  Hyst. Enable Field: Hysteresis Enabled */
810   IOMUXC_SetPinConfig(
811       IOMUXC_GPIO_B0_13_LCD_DATA09,           /* GPIO_B0_13 PAD functional properties : */
812       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
813                                                  Drive Strength Field: R0/6
814                                                  Speed Field: medium(100MHz)
815                                                  Open Drain Enable Field: Open Drain Disabled
816                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
817                                                  Pull / Keep Select Field: Pull
818                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
819                                                  Hyst. Enable Field: Hysteresis Enabled */
820   IOMUXC_SetPinConfig(
821       IOMUXC_GPIO_B0_14_LCD_DATA10,           /* GPIO_B0_14 PAD functional properties : */
822       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
823                                                  Drive Strength Field: R0/6
824                                                  Speed Field: medium(100MHz)
825                                                  Open Drain Enable Field: Open Drain Disabled
826                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
827                                                  Pull / Keep Select Field: Pull
828                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
829                                                  Hyst. Enable Field: Hysteresis Enabled */
830   IOMUXC_SetPinConfig(
831       IOMUXC_GPIO_B0_15_LCD_DATA11,           /* GPIO_B0_15 PAD functional properties : */
832       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
833                                                  Drive Strength Field: R0/6
834                                                  Speed Field: medium(100MHz)
835                                                  Open Drain Enable Field: Open Drain Disabled
836                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
837                                                  Pull / Keep Select Field: Pull
838                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
839                                                  Hyst. Enable Field: Hysteresis Enabled */
840   IOMUXC_SetPinConfig(
841       IOMUXC_GPIO_B1_00_LCD_DATA12,           /* GPIO_B1_00 PAD functional properties : */
842       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
843                                                  Drive Strength Field: R0/6
844                                                  Speed Field: medium(100MHz)
845                                                  Open Drain Enable Field: Open Drain Disabled
846                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
847                                                  Pull / Keep Select Field: Pull
848                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
849                                                  Hyst. Enable Field: Hysteresis Enabled */
850   IOMUXC_SetPinConfig(
851       IOMUXC_GPIO_B1_01_LCD_DATA13,           /* GPIO_B1_01 PAD functional properties : */
852       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
853                                                  Drive Strength Field: R0/6
854                                                  Speed Field: medium(100MHz)
855                                                  Open Drain Enable Field: Open Drain Disabled
856                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
857                                                  Pull / Keep Select Field: Pull
858                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
859                                                  Hyst. Enable Field: Hysteresis Enabled */
860   IOMUXC_SetPinConfig(
861       IOMUXC_GPIO_B1_02_LCD_DATA14,           /* GPIO_B1_02 PAD functional properties : */
862       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
863                                                  Drive Strength Field: R0/6
864                                                  Speed Field: medium(100MHz)
865                                                  Open Drain Enable Field: Open Drain Disabled
866                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
867                                                  Pull / Keep Select Field: Pull
868                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
869                                                  Hyst. Enable Field: Hysteresis Enabled */
870   IOMUXC_SetPinConfig(
871       IOMUXC_GPIO_B1_03_LCD_DATA15,           /* GPIO_B1_03 PAD functional properties : */
872       0x01B0B0u);                             /* Slew Rate Field: Slow Slew Rate
873                                                  Drive Strength Field: R0/6
874                                                  Speed Field: medium(100MHz)
875                                                  Open Drain Enable Field: Open Drain Disabled
876                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
877                                                  Pull / Keep Select Field: Pull
878                                                  Pull Up / Down Config. Field: 100K Ohm Pull Up
879                                                  Hyst. Enable Field: Hysteresis Enabled */
880   IOMUXC_SetPinConfig(
881       IOMUXC_GPIO_B1_15_GPIO2_IO31,           /* GPIO_B1_15 PAD functional properties : */
882       0x10B0u);                               /* Slew Rate Field: Slow Slew Rate
883                                                  Drive Strength Field: R0/6
884                                                  Speed Field: medium(100MHz)
885                                                  Open Drain Enable Field: Open Drain Disabled
886                                                  Pull / Keep Enable Field: Pull/Keeper Enabled
887                                                  Pull / Keep Select Field: Keeper
888                                                  Pull Up / Down Config. Field: 100K Ohm Pull Down
889                                                  Hyst. Enable Field: Hysteresis Disabled */
890 }
891 
892 
893 /*
894  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
895 BOARD_InitCAN:
896 - options: {coreID: core0, enableClock: 'true'}
897 - pin_list:
898   - {pin_num: H14, peripheral: CAN2, signal: TX, pin_signal: GPIO_AD_B0_14}
899   - {pin_num: L10, peripheral: CAN2, signal: RX, pin_signal: GPIO_AD_B0_15}
900  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
901  */
902 
903 /* FUNCTION ************************************************************************************************************
904  *
905  * Function Name : BOARD_InitCAN
906  * Description   : Configures pin routing and optionally pin electrical features.
907  *
908  * END ****************************************************************************************************************/
BOARD_InitCAN(void)909 void BOARD_InitCAN(void) {
910   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
911 
912   IOMUXC_SetPinMux(
913       IOMUXC_GPIO_AD_B0_14_FLEXCAN2_TX,       /* GPIO_AD_B0_14 is configured as FLEXCAN2_TX */
914       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
915   IOMUXC_SetPinMux(
916       IOMUXC_GPIO_AD_B0_15_FLEXCAN2_RX,       /* GPIO_AD_B0_15 is configured as FLEXCAN2_RX */
917       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
918 }
919 
920 
921 /*
922  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
923 BOARD_InitENET:
924 - options: {coreID: core0, enableClock: 'true'}
925 - pin_list:
926   - {pin_num: A7, peripheral: ENET, signal: enet_mdc, pin_signal: GPIO_EMC_40}
927   - {pin_num: C7, peripheral: ENET, signal: enet_mdio, pin_signal: GPIO_EMC_41}
928   - {pin_num: B13, peripheral: ENET, signal: enet_ref_clk, pin_signal: GPIO_B1_10}
929   - {pin_num: E12, peripheral: ENET, signal: 'enet_rx_data, 0', pin_signal: GPIO_B1_04}
930   - {pin_num: D12, peripheral: ENET, signal: 'enet_rx_data, 1', pin_signal: GPIO_B1_05}
931   - {pin_num: C12, peripheral: ENET, signal: enet_rx_en, pin_signal: GPIO_B1_06}
932   - {pin_num: C13, peripheral: ENET, signal: enet_rx_er, pin_signal: GPIO_B1_11}
933   - {pin_num: B12, peripheral: ENET, signal: 'enet_tx_data, 0', pin_signal: GPIO_B1_07}
934   - {pin_num: A12, peripheral: ENET, signal: 'enet_tx_data, 1', pin_signal: GPIO_B1_08}
935   - {pin_num: A13, peripheral: ENET, signal: enet_tx_en, pin_signal: GPIO_B1_09}
936  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
937  */
938 
939 /* FUNCTION ************************************************************************************************************
940  *
941  * Function Name : BOARD_InitENET
942  * Description   : Configures pin routing and optionally pin electrical features.
943  *
944  * END ****************************************************************************************************************/
BOARD_InitENET(void)945 void BOARD_InitENET(void) {
946   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
947 
948   IOMUXC_SetPinMux(
949       IOMUXC_GPIO_B1_04_ENET_RX_DATA00,       /* GPIO_B1_04 is configured as ENET_RX_DATA00 */
950       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
951   IOMUXC_SetPinMux(
952       IOMUXC_GPIO_B1_05_ENET_RX_DATA01,       /* GPIO_B1_05 is configured as ENET_RX_DATA01 */
953       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
954   IOMUXC_SetPinMux(
955       IOMUXC_GPIO_B1_06_ENET_RX_EN,           /* GPIO_B1_06 is configured as ENET_RX_EN */
956       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
957   IOMUXC_SetPinMux(
958       IOMUXC_GPIO_B1_07_ENET_TX_DATA00,       /* GPIO_B1_07 is configured as ENET_TX_DATA00 */
959       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
960   IOMUXC_SetPinMux(
961       IOMUXC_GPIO_B1_08_ENET_TX_DATA01,       /* GPIO_B1_08 is configured as ENET_TX_DATA01 */
962       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
963   IOMUXC_SetPinMux(
964       IOMUXC_GPIO_B1_09_ENET_TX_EN,           /* GPIO_B1_09 is configured as ENET_TX_EN */
965       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
966   IOMUXC_SetPinMux(
967       IOMUXC_GPIO_B1_10_ENET_REF_CLK,         /* GPIO_B1_10 is configured as ENET_REF_CLK */
968       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
969   IOMUXC_SetPinMux(
970       IOMUXC_GPIO_B1_11_ENET_RX_ER,           /* GPIO_B1_11 is configured as ENET_RX_ER */
971       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
972   IOMUXC_SetPinMux(
973       IOMUXC_GPIO_EMC_40_ENET_MDC,            /* GPIO_EMC_40 is configured as ENET_MDC */
974       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
975   IOMUXC_SetPinMux(
976       IOMUXC_GPIO_EMC_41_ENET_MDIO,           /* GPIO_EMC_41 is configured as ENET_MDIO */
977       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
978 }
979 
980 
981 /*
982  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
983 BOARD_InitUSDHC:
984 - options: {coreID: core0, enableClock: 'true'}
985 - pin_list:
986   - {pin_num: J2, peripheral: USDHC1, signal: 'usdhc_data, 3', pin_signal: GPIO_SD_B0_05}
987   - {pin_num: H2, peripheral: USDHC1, signal: 'usdhc_data, 2', pin_signal: GPIO_SD_B0_04}
988   - {pin_num: K1, peripheral: USDHC1, signal: 'usdhc_data, 1', pin_signal: GPIO_SD_B0_03}
989   - {pin_num: J1, peripheral: USDHC1, signal: 'usdhc_data, 0', pin_signal: GPIO_SD_B0_02}
990   - {pin_num: J4, peripheral: USDHC1, signal: usdhc_cmd, pin_signal: GPIO_SD_B0_00}
991   - {pin_num: J3, peripheral: USDHC1, signal: usdhc_clk, pin_signal: GPIO_SD_B0_01}
992  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
993  */
994 
995 /* FUNCTION ************************************************************************************************************
996  *
997  * Function Name : BOARD_InitUSDHC
998  * Description   : Configures pin routing and optionally pin electrical features.
999  *
1000  * END ****************************************************************************************************************/
BOARD_InitUSDHC(void)1001 void BOARD_InitUSDHC(void) {
1002   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
1003 
1004   IOMUXC_SetPinMux(
1005       IOMUXC_GPIO_SD_B0_00_USDHC1_CMD,        /* GPIO_SD_B0_00 is configured as USDHC1_CMD */
1006       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1007   IOMUXC_SetPinMux(
1008       IOMUXC_GPIO_SD_B0_01_USDHC1_CLK,        /* GPIO_SD_B0_01 is configured as USDHC1_CLK */
1009       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1010   IOMUXC_SetPinMux(
1011       IOMUXC_GPIO_SD_B0_02_USDHC1_DATA0,      /* GPIO_SD_B0_02 is configured as USDHC1_DATA0 */
1012       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1013   IOMUXC_SetPinMux(
1014       IOMUXC_GPIO_SD_B0_03_USDHC1_DATA1,      /* GPIO_SD_B0_03 is configured as USDHC1_DATA1 */
1015       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1016   IOMUXC_SetPinMux(
1017       IOMUXC_GPIO_SD_B0_04_USDHC1_DATA2,      /* GPIO_SD_B0_04 is configured as USDHC1_DATA2 */
1018       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1019   IOMUXC_SetPinMux(
1020       IOMUXC_GPIO_SD_B0_05_USDHC1_DATA3,      /* GPIO_SD_B0_05 is configured as USDHC1_DATA3 */
1021       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1022 }
1023 
1024 
1025 /*
1026  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
1027 BOARD_InitHyperFlash:
1028 - options: {coreID: core0, enableClock: 'true'}
1029 - pin_list:
1030   - {pin_num: L4, peripheral: FLEXSPI, signal: FLEXSPI_A_SCLK, pin_signal: GPIO_SD_B1_07}
1031   - {pin_num: P4, peripheral: FLEXSPI, signal: FLEXSPI_A_DATA2, pin_signal: GPIO_SD_B1_10}
1032   - {pin_num: P3, peripheral: FLEXSPI, signal: FLEXSPI_A_DATA0, pin_signal: GPIO_SD_B1_08}
1033   - {pin_num: N4, peripheral: FLEXSPI, signal: FLEXSPI_A_DATA1, pin_signal: GPIO_SD_B1_09}
1034   - {pin_num: L5, peripheral: FLEXSPI, signal: FLEXSPI_B_DATA3, pin_signal: GPIO_SD_B1_00}
1035   - {pin_num: M5, peripheral: FLEXSPI, signal: FLEXSPI_B_DATA2, pin_signal: GPIO_SD_B1_01}
1036   - {pin_num: M3, peripheral: FLEXSPI, signal: FLEXSPI_B_DATA1, pin_signal: GPIO_SD_B1_02}
1037   - {pin_num: M4, peripheral: FLEXSPI, signal: FLEXSPI_B_DATA0, pin_signal: GPIO_SD_B1_03}
1038   - {pin_num: P2, peripheral: FLEXSPI, signal: FLEXSPI_B_SCLK, pin_signal: GPIO_SD_B1_04}
1039   - {pin_num: L3, peripheral: FLEXSPI, signal: FLEXSPI_A_SS0_B, pin_signal: GPIO_SD_B1_06}
1040   - {pin_num: P5, peripheral: FLEXSPI, signal: FLEXSPI_A_DATA3, pin_signal: GPIO_SD_B1_11}
1041   - {pin_num: N3, peripheral: FLEXSPI, signal: FLEXSPI_A_DQS, pin_signal: GPIO_SD_B1_05}
1042  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
1043  */
1044 
1045 /* FUNCTION ************************************************************************************************************
1046  *
1047  * Function Name : BOARD_InitHyperFlash
1048  * Description   : Configures pin routing and optionally pin electrical features.
1049  *
1050  * END ****************************************************************************************************************/
BOARD_InitHyperFlash(void)1051 void BOARD_InitHyperFlash(void) {
1052   CLOCK_EnableClock(kCLOCK_Iomuxc);           /* iomuxc clock (iomuxc_clk_enable): 0x03u */
1053 
1054   IOMUXC_SetPinMux(
1055       IOMUXC_GPIO_SD_B1_00_FLEXSPIB_DATA03,   /* GPIO_SD_B1_00 is configured as FLEXSPIB_DATA03 */
1056       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1057   IOMUXC_SetPinMux(
1058       IOMUXC_GPIO_SD_B1_01_FLEXSPIB_DATA02,   /* GPIO_SD_B1_01 is configured as FLEXSPIB_DATA02 */
1059       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1060   IOMUXC_SetPinMux(
1061       IOMUXC_GPIO_SD_B1_02_FLEXSPIB_DATA01,   /* GPIO_SD_B1_02 is configured as FLEXSPIB_DATA01 */
1062       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1063   IOMUXC_SetPinMux(
1064       IOMUXC_GPIO_SD_B1_03_FLEXSPIB_DATA00,   /* GPIO_SD_B1_03 is configured as FLEXSPIB_DATA00 */
1065       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1066   IOMUXC_SetPinMux(
1067       IOMUXC_GPIO_SD_B1_04_FLEXSPIB_SCLK,     /* GPIO_SD_B1_04 is configured as FLEXSPIB_SCLK */
1068       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1069   IOMUXC_SetPinMux(
1070       IOMUXC_GPIO_SD_B1_05_FLEXSPIA_DQS,      /* GPIO_SD_B1_05 is configured as FLEXSPIA_DQS */
1071       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1072   IOMUXC_SetPinMux(
1073       IOMUXC_GPIO_SD_B1_06_FLEXSPIA_SS0_B,    /* GPIO_SD_B1_06 is configured as FLEXSPIA_SS0_B */
1074       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1075   IOMUXC_SetPinMux(
1076       IOMUXC_GPIO_SD_B1_07_FLEXSPIA_SCLK,     /* GPIO_SD_B1_07 is configured as FLEXSPIA_SCLK */
1077       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1078   IOMUXC_SetPinMux(
1079       IOMUXC_GPIO_SD_B1_08_FLEXSPIA_DATA00,   /* GPIO_SD_B1_08 is configured as FLEXSPIA_DATA00 */
1080       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1081   IOMUXC_SetPinMux(
1082       IOMUXC_GPIO_SD_B1_09_FLEXSPIA_DATA01,   /* GPIO_SD_B1_09 is configured as FLEXSPIA_DATA01 */
1083       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1084   IOMUXC_SetPinMux(
1085       IOMUXC_GPIO_SD_B1_10_FLEXSPIA_DATA02,   /* GPIO_SD_B1_10 is configured as FLEXSPIA_DATA02 */
1086       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1087   IOMUXC_SetPinMux(
1088       IOMUXC_GPIO_SD_B1_11_FLEXSPIA_DATA03,   /* GPIO_SD_B1_11 is configured as FLEXSPIA_DATA03 */
1089       0U);                                    /* Software Input On Field: Input Path is determined by functionality */
1090 }
1091 
1092 /***********************************************************************************************************************
1093  * EOF
1094  **********************************************************************************************************************/
1095