diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54628/project_template/pin_mux.c')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54628/project_template/pin_mux.c | 2243 |
1 files changed, 2243 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54628/project_template/pin_mux.c b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54628/project_template/pin_mux.c new file mode 100644 index 000000000..478b48dfc --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/boards/lpcxpresso54628/project_template/pin_mux.c | |||
@@ -0,0 +1,2243 @@ | |||
1 | /* | ||
2 | * Copyright 2018-2019 NXP. | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | /* clang-format off */ | ||
9 | /* | ||
10 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
11 | !!GlobalInfo | ||
12 | product: Pins v5.0 | ||
13 | processor: LPC54628J512 | ||
14 | package_id: LPC54628J512ET180 | ||
15 | mcu_data: ksdk2_0 | ||
16 | processor_version: 0.0.28 | ||
17 | board: LPCXpresso54628 | ||
18 | pin_labels: | ||
19 | - {pin_num: K12, pin_signal: PIO1_1/FC3_RXD_SDA_MOSI/CTIMER0_CAP3/SCT0_GPI5/USB1_OVERCURRENTN, label: 'J12[12]/U29[4]/SW5/P1_1-USER_PB-USB1_OVRCURn', identifier: SW5} | ||
20 | - {pin_num: E7, pin_signal: PIO0_5/CAN0_TD/FC4_RXD_SDA_MOSI/CTIMER3_MAT0/SCT0_GPI5/EMC_D(3)/ENET_MDIO, label: 'U28[C9]/RP3[1]/JS32[1]/SW3/P0_5-ISP1/P0_5-EMC_D3', | ||
21 | identifier: SW3;EMC_D3} | ||
22 | - {pin_num: C8, pin_signal: PIO0_4/CAN0_RD/FC4_SCK/CTIMER3_CAP0/SCT0_GPI4/EMC_D(2)/ENET_MDC, label: 'U28[B8]/RP3[2]/JS32[3]/SW4/P0_4-ISP0/P0_4-EMC_D2', identifier: SW4;EMC_D2} | ||
23 | - {pin_num: A13, pin_signal: PIO3_3/LCD_VD(17)/FC9_TXD_SCL_MISO, label: 'J9[8]/LED2/P3_3-USR_LED2', identifier: LED2} | ||
24 | - {pin_num: C3, pin_signal: PIO2_2/ENET_CRS/FC3_SSEL3/SCT0_OUT6/CTIMER1_MAT1, label: 'J9[6]/LED3/P2_2-CT1MAT1-USR_LED3', identifier: LED3} | ||
25 | - {pin_num: E3, pin_signal: PIO3_14/SCT0_OUT4/FC9_RTS_SCL_SSEL1/CTIMER3_MAT1/TRACEDATA(2), label: 'J13[5]/LED1/P3_14-CT3MAT1-USR_LED1', identifier: LED1} | ||
26 | - {pin_num: A1, pin_signal: PIO0_1/CAN1_TD/FC3_CTS_SDA_SSEL0/CTIMER0_CAP0/SCT0_GPI1/PDM0_DATA, label: 'U26[14]/J14[1]/P0_1-ISP_FC3_SSEL0', identifier: ISP_FC3_SSEL0} | ||
27 | - {pin_num: A10, pin_signal: PIO0_3/FC3_RXD_SDA_MOSI/CTIMER0_MAT1/SCT0_OUT1/SCT0_GPI3/EMC_D(1), label: 'U28[B9]/RP3[3]/JS34[1]/U26[11]/J14[2]/P0_3-ISP_FC3_MOSI/P0_3-EMC_D1', | ||
28 | identifier: ISP_FC3_MOSI;EMC_D1} | ||
29 | - {pin_num: E9, pin_signal: PIO0_2/FC3_TXD_SCL_MISO/CTIMER0_CAP1/SCT0_OUT0/SCT0_GPI2/EMC_D(0), label: 'U28[A8]/RP3[4]/JS35[1]/U24[11]/J14[3]/P0_2-ISP_FC3_MISO/P0_2-EMC_D0', | ||
30 | identifier: ISP_FC3_MISO;EMC_D0} | ||
31 | - {pin_num: D6, pin_signal: PIO0_0/CAN1_RD/FC3_SCK/CTIMER0_MAT0/SCT0_GPI0/PDM0_CLK, label: 'U26[13]/J14[4]/P0_0-ISP_FC3_SCK', identifier: ISP_FC3_SCK} | ||
32 | - {pin_num: H4, pin_signal: PIO3_13/SCT0_OUT9/FC9_CTS_SDA_SSEL0/CTIMER3_CAP1/EMC_FBCK/TRACEDATA(1), label: 'J14[8]/P3_13-BRIDGE_GPIO', identifier: BRIDGE_GPIO} | ||
33 | - {pin_num: F11, pin_signal: PIO0_13/FC1_CTS_SDA_SSEL0/UTICK_CAP0/CTIMER0_CAP0/SCT0_GPI0/ENET_RXD0, label: 'JS16[2]/J14[9]/P0_13-ISP_FC1_SDAX', identifier: ISP_FC1_SDAX} | ||
34 | - {pin_num: E13, pin_signal: PIO0_14/FC1_RTS_SCL_SSEL1/UTICK_CAP1/CTIMER0_CAP1/SCT0_GPI1/ENET_RXD1, label: 'JS15[2]/J14[10]/P0_14-ISP_FC1_SCLX', identifier: ISP_FC1_SCLX} | ||
35 | - {pin_num: E2, pin_signal: PIO3_24/FC2_RTS_SCL_SSEL1/CTIMER4_CAP0/USB0_VBUS, label: 'J11[9]/J9[1]/U10[2]/J17[4]/U19[2]/P3_24-FC2_SCLX', identifier: FC2_SCLX} | ||
36 | - {pin_num: C2, pin_signal: PIO3_23/FC2_CTS_SDA_SSEL0/UTICK_CAP3, label: 'J11[10]/J9[3]/U10[3]/J17[5]/U19[10]/P3_23-FC2_SDAX', identifier: FC2_SDAX} | ||
37 | - {pin_num: B11, pin_signal: PIO3_4/LCD_VD(18)/FC8_CTS_SDA_SSEL0/CTIMER4_CAP1, label: 'J12[10]/U19[3]/P3_4-ACCL_INTR', identifier: ACCL_INTR} | ||
38 | - {pin_num: N7, pin_signal: PIO0_23/MCLK/CTIMER1_MAT2/CTIMER3_MAT3/SCT0_OUT4/SPIFI_CSN/ADC0_11, label: 'J13[8]/U27[1]/P0_23-SPIFI_CSn-MCLK', identifier: SPIFI_CSn} | ||
39 | - {pin_num: M13, pin_signal: PIO0_26/FC2_RXD_SDA_MOSI/CLKOUT/CTIMER3_CAP2/SCT0_OUT5/PDM0_CLK/SPIFI_CLK/USB0_IDVALUE, label: 'J13[2]/U27[6]/P0_26-SPIFI_CLK', identifier: SPIFI_CLK} | ||
40 | - {pin_num: M7, pin_signal: PIO0_24/FC0_RXD_SDA_MOSI/SD_D(0)/CTIMER2_CAP0/SCT0_GPI0/SPIFI_IO(0), label: 'J13[6]/U27[5]/P0_24-SPIFI_IO0', identifier: SPIFI_IO0} | ||
41 | - {pin_num: L9, pin_signal: PIO0_27/FC2_TXD_SCL_MISO/CTIMER3_MAT2/SCT0_OUT6/PDM0_DATA/SPIFI_IO(3), label: 'J13[12]/U27[7]/P0_27-SPIFI_IO3', identifier: SPIFI_IO3} | ||
42 | - {pin_num: M9, pin_signal: PIO0_28/FC0_SCK/CTIMER2_CAP3/SCT0_OUT7/TRACEDATA(3)/SPIFI_IO(2)/USB0_OVERCURRENTN, label: 'J13[10]/U27[3]/P0_28-SPIFI_IO2-USB0_OCURRn', | ||
43 | identifier: SPIFI_IO2} | ||
44 | - {pin_num: K8, pin_signal: PIO0_25/FC0_TXD_SCL_MISO/SD_D(1)/CTIMER2_CAP1/SCT0_GPI1/SPIFI_IO(1), label: 'J13[4]/U27[2]/P0_25-SPIFI_IO1', identifier: SPIFI_IO1} | ||
45 | - {pin_num: M2, pin_signal: PIO2_12/LCD_LE/SD_VOLT(1)/USB0_IDVALUE/FC5_RXD_SDA_MOSI, label: 'U26A1[3]/P2_12-SPIFI_RSTn', identifier: SPIFI_RSTn} | ||
46 | - {pin_num: D2, pin_signal: PIO3_15/FC8_SCK/SD_WR_PRT, label: 'RP1[1]/U9[8]/P3_15-SD_WPn', identifier: SD_WPn} | ||
47 | - {pin_num: P1, pin_signal: PIO2_10/ENET_RX_ER/SD_CARD_DET_N, label: 'RP1[2]/U9[7]/P2_10-SD_CDn', identifier: SD_CDn} | ||
48 | - {pin_num: F4, pin_signal: PIO2_8/ENET_RXD2/SD_D(2)/CTIMER0_MAT0, label: 'RP1[3]/U9[6]/P2_8-SD_D2', identifier: SD_D2} | ||
49 | - {pin_num: J2, pin_signal: PIO2_7/ENET_COL/SD_D(1)/FREQME_GPIO_CLK_B/CTIMER0_CAP1, label: 'RP1[4]/U9[5]/P2_7-SD_D1', identifier: SD_D1} | ||
50 | - {pin_num: F3, pin_signal: PIO2_6/ENET_TX_CLK/SD_D(0)/FC1_RTS_SCL_SSEL1/CTIMER0_CAP0, label: 'RP1[5]/U9[4]/P2_6-SD_D0', identifier: SD_D0} | ||
51 | - {pin_num: B1, pin_signal: PIO2_3/ENET_TXD2/SD_CLK/FC1_RXD_SDA_MOSI/CTIMER2_MAT0, label: 'U9[3]/P2_3-SD_CLK', identifier: SD_CLK} | ||
52 | - {pin_num: D3, pin_signal: PIO2_4/ENET_TXD3/SD_CMD/FC1_TXD_SCL_MISO/CTIMER2_MAT1, label: 'RP1[6]/U9[2]/P2_4-SD_CMD', identifier: SD_CMD} | ||
53 | - {pin_num: K2, pin_signal: PIO2_9/ENET_RXD3/SD_D(3)/CTIMER0_MAT1, label: 'RP1[7]/U9[1]/P2_9-SD_D3', identifier: SD_D3} | ||
54 | - {pin_num: C1, pin_signal: PIO2_5/ENET_TX_ER/SD_POW_EN/FC1_CTS_SDA_SSEL0/CTIMER1_MAT2, label: 'Q3[1]/P2_5-SD_POW_EN', identifier: SD_POW_EN} | ||
55 | - {pin_num: P9, pin_signal: PIO3_25/CTIMER4_CAP2/FC4_SCK/EMC_A(14), label: 'U28[G8]/P3_25-EMC_A14', identifier: EMC_A14} | ||
56 | - {pin_num: M12, pin_signal: PIO1_25/FC2_TXD_SCL_MISO/SCT0_OUT2/UTICK_CAP0/EMC_A(13), label: 'U28[G7]/P1_25-EMC_A13', identifier: EMC_A13} | ||
57 | - {pin_num: N14, pin_signal: PIO1_24/FC2_RXD_SDA_MOSI/SCT0_OUT1/FC3_SSEL3/EMC_A(12), label: 'U28[G1]/P1_24-EMC_A12', identifier: EMC_A12} | ||
58 | - {pin_num: M10, pin_signal: PIO1_23/FC2_SCK/SCT0_OUT0/ENET_MDIO/FC3_SSEL2/EMC_A(11), label: 'U28[G2]/P1_23-EMC_A11', identifier: EMC_A11} | ||
59 | - {pin_num: B7, pin_signal: PIO1_16/ENET_MDC/FC6_TXD_SCL_MISO_WS/CTIMER1_MAT3/SD_CMD/EMC_A(10), label: 'U28[H9]/P1_16-EMC_A10', identifier: EMC_A10} | ||
60 | - {pin_num: F10, pin_signal: PIO1_27/FC2_RTS_SCL_SSEL1/SD_D(4)/CTIMER0_MAT3/CLKOUT/EMC_A(9), label: 'U28[G3]/P1_27-EMC_A9', identifier: EMC_A9} | ||
61 | - {pin_num: J10, pin_signal: PIO1_26/FC2_CTS_SDA_SSEL0/SCT0_OUT3/CTIMER0_CAP3/UTICK_CAP1/EMC_A(8), label: 'U28[H1]/P1_26-EMC_A8', identifier: EMC_A8} | ||
62 | - {pin_num: P8, pin_signal: PIO1_8/FC0_CTS_SDA_SSEL0/SD_CLK/SCT0_OUT1/FC4_SSEL2/EMC_A(7), label: 'U28[H2]/P1_8-EMC_A7', identifier: EMC_A7} | ||
63 | - {pin_num: N1, pin_signal: PIO1_7/FC0_RTS_SCL_SSEL1/SD_D(1)/CTIMER2_MAT2/SCT0_GPI4/EMC_A(6), label: 'U28[H3]/P1_7-EMC_A6', identifier: EMC_A6} | ||
64 | - {pin_num: G4, pin_signal: PIO1_6/FC0_TXD_SCL_MISO/SD_D(3)/CTIMER2_MAT1/SCT0_GPI3/EMC_A(5), label: 'U28[J2]/P1_6-EMC_A5', identifier: EMC_A5} | ||
65 | - {pin_num: E4, pin_signal: PIO1_5/FC0_RXD_SDA_MOSI/SD_D(2)/CTIMER2_MAT0/SCT0_GPI0/EMC_A(4), label: 'U28[J3]/P1_5-EMC_A4', identifier: EMC_A4} | ||
66 | - {pin_num: C13, pin_signal: PIO0_21/FC3_RTS_SCL_SSEL1/UTICK_CAP3/CTIMER3_MAT3/SCT0_GPI3/SCI0_SCLK/EMC_A(3)/FC7_SCK, label: 'U28[J7]/P0_21-EMC_A3', identifier: EMC_A3} | ||
67 | - {pin_num: D13, pin_signal: PIO0_20/FC3_CTS_SDA_SSEL0/CTIMER1_MAT1/CTIMER3_CAP3/SCT0_GPI2/SCI0_IO/EMC_A(2)/FC7_RXD_SDA_MOSI_DATA, label: 'U28[J8]/P0_20-EMC_A2', | ||
68 | identifier: EMC_A2} | ||
69 | - {pin_num: C6, pin_signal: PIO0_19/FC4_RTS_SCL_SSEL1/UTICK_CAP0/CTIMER0_MAT2/SCT0_OUT2/EMC_A(1)/FC7_TXD_SCL_MISO_WS, label: 'U28[H8]/P0_19-EMC_A1', identifier: EMC_A1} | ||
70 | - {pin_num: C14, pin_signal: PIO0_18/FC4_CTS_SDA_SSEL0/SD_WR_PRT/CTIMER1_MAT0/SCT0_OUT1/SCI1_SCLK/EMC_A(0), label: 'U28[H7]/P0_18-EMC_A0', identifier: EMC_A0} | ||
71 | - {pin_num: L4, pin_signal: PIO0_15/FC6_CTS_SDA_SSEL0/UTICK_CAP2/CTIMER4_CAP0/SCT0_OUT2/EMC_WEN/ENET_TX_EN/ADC0_3, label: 'U28[F9]/P0_15-EMC_WEn', identifier: EMC_WEn} | ||
72 | - {pin_num: K6, pin_signal: PIO1_9/ENET_TXD0/FC1_SCK/CTIMER1_CAP0/SCT0_OUT2/FC4_CTS_SDA_SSEL0/EMC_CASN, label: 'U28[F7]/P1_9-EMC_CASn', identifier: EMC_CASn} | ||
73 | - {pin_num: N9, pin_signal: PIO1_10/ENET_TXD1/FC1_RXD_SDA_MOSI/CTIMER1_MAT0/SCT0_OUT3/EMC_RASN, label: 'U28[F8]/P1_10-EMC_RASn', identifier: EMC_RASn} | ||
74 | - {pin_num: K9, pin_signal: PIO1_12/ENET_RXD0/FC6_SCK/CTIMER1_MAT1/USB0_PORTPWRN/EMC_DYCSN(0), label: 'U28[G9]/P1_12-EMC_DYCSn0', identifier: EMC_DYCSn0} | ||
75 | - {pin_num: C5, pin_signal: PIO1_31/MCLK/CTIMER0_MAT2/SCT0_OUT6/FC8_CTS_SDA_SSEL0/EMC_D(15), label: 'U28[A2]/RP2[1]/P1_31-EMC_D15', identifier: EMC_D15} | ||
76 | - {pin_num: A8, pin_signal: PIO1_30/FC7_TXD_SCL_MISO_WS/SD_D(7)/SCT0_GPI7/USB1_OVERCURRENTN/USB1_UP_LED/EMC_D(14), label: 'U28[B1]/RP2[2]/P1_30-EMC_D14', identifier: EMC_D14} | ||
77 | - {pin_num: C11, pin_signal: PIO1_29/FC7_RXD_SDA_MOSI_DATA/SD_D(6)/SCT0_GPI6/USB1_PORTPWRN/USB1_FRAME/EMC_D(13), label: 'U28[B2]/RP2[3]/P1_29-EMC_D13', identifier: EMC_D13} | ||
78 | - {pin_num: E12, pin_signal: PIO1_28/FC7_SCK/SD_D(5)/CTIMER0_CAP2/EMC_D(12), label: 'U28[C1]/RP2[4]/P1_28-EMC_D12', identifier: EMC_D12} | ||
79 | - {pin_num: D4, pin_signal: PIO1_4/FC0_SCK/SD_D(0)/CTIMER2_MAT1/SCT0_OUT0/FREQME_GPIO_CLK_A/EMC_D(11), label: 'U28[C2]/RP4[1]/P1_4-EMC_D11', identifier: EMC_D11} | ||
80 | - {pin_num: N8, pin_signal: PIO1_21/FC7_CTS_SDA_SSEL0/CTIMER3_MAT2/FC4_RXD_SDA_MOSI/EMC_D(10), label: 'U28[D1]/RP4[2]/P1_21-EMC_D10', identifier: EMC_D10} | ||
81 | - {pin_num: M1, pin_signal: PIO1_20/FC7_RTS_SCL_SSEL1/CTIMER3_CAP2/FC4_TXD_SCL_MISO/EMC_D(9), label: 'U28[D2]/RP4[3]/P1_20-EMC_D9', identifier: EMC_D9} | ||
82 | - {pin_num: L1, pin_signal: PIO1_19/FC8_SCK/SCT0_OUT7/CTIMER3_MAT1/SCT0_GPI7/FC4_SCK/EMC_D(8), label: 'U28[E1]/RP4[4]/P1_19-EMC_D8', identifier: EMC_D8} | ||
83 | - {pin_num: G12, pin_signal: PIO0_9/FC3_SSEL2/SD_POW_EN/FC5_TXD_SCL_MISO/SCI1_IO/EMC_D(7), label: 'U28[E9]/RP5[1]/P0_9-EMC_D7', identifier: EMC_D7} | ||
84 | - {pin_num: H10, pin_signal: PIO0_8/FC3_SSEL3/SD_CMD/FC5_RXD_SDA_MOSI/SWO/PDM1_DATA/EMC_D(6), label: 'U28[D8]/RP5[2]/P0_8-EMC_D6', identifier: EMC_D6} | ||
85 | - {pin_num: H12, pin_signal: PIO0_7/FC3_RTS_SCL_SSEL1/SD_CLK/FC5_SCK/FC1_SCK/PDM1_CLK/EMC_D(5)/ENET_RX_CLK, label: 'U28[D9]/RP5[3]/P0_7-EMC_D5', identifier: EMC_D5} | ||
86 | - {pin_num: A5, pin_signal: PIO0_6/FC3_SCK/CTIMER3_CAP1/CTIMER4_MAT0/SCT0_GPI6/EMC_D(4)/ENET_RX_DV, label: 'U28[C8]/RP5[4]/SW2/P0_6-ISP2/P0_6-EMC_D4', identifier: SW2;EMC_D4} | ||
87 | - {pin_num: C12, pin_signal: PIO1_14/ENET_RX_DV/UTICK_CAP2/CTIMER1_MAT2/FC5_CTS_SDA_SSEL0/USB0_UP_LED/EMC_DQM(1), label: 'U28[F1]/P1_14-EMC_DQM1', identifier: EMC_DQM1} | ||
88 | - {pin_num: G10, pin_signal: PIO1_13/ENET_RXD1/FC6_RXD_SDA_MOSI_DATA/CTIMER1_CAP2/USB0_OVERCURRENTN/USB0_FRAME/EMC_DQM(0), label: 'U28[E8]/P1_13-EMC_DQM0', identifier: EMC_DQM0} | ||
89 | - {pin_num: B4, pin_signal: PIO1_11/ENET_TX_EN/FC1_TXD_SCL_MISO/CTIMER1_CAP1/USB0_VBUS/EMC_CLK(0), label: 'U28[F2]/P1_11-EMC_CLK0', identifier: EMC_CLK0} | ||
90 | - {pin_num: A11, pin_signal: PIO1_15/ENET_RX_CLK/UTICK_CAP3/CTIMER1_CAP3/FC5_RTS_SCL_SSEL1/FC4_RTS_SCL_SSEL1/EMC_CKE(0), label: 'U28[F3]/P1_15-EMC_CKE0', identifier: EMC_CKE0} | ||
91 | - {pin_num: H3, pin_signal: USB1_DP, label: 'J2[3]/U2[2]/U25[H3]/USB1_DP_TRGT', identifier: USB1_DP} | ||
92 | - {pin_num: H2, pin_signal: USB1_DM, label: 'J2[2]/U2[3]/U25[H2]/USB1_DM_TRGT', identifier: USB1_DM} | ||
93 | - {pin_num: D5, pin_signal: USB0_DM, label: 'J3[2]/U3[3]/USB0_DM_TRGT', identifier: USB0_DM} | ||
94 | - {pin_num: E5, pin_signal: USB0_DP, label: 'J3[3]/U3[2]/USB0_DP_TRGT', identifier: USB0_DP} | ||
95 | - {pin_num: B12, pin_signal: PIO0_22/FC6_TXD_SCL_MISO_WS/UTICK_CAP1/CTIMER3_CAP3/SCT0_OUT3/USB0_VBUS, label: 'U3[4]/J3[1]/P0_22-USB0_VBUS', identifier: USB0_VBUS} | ||
96 | - {pin_num: G2, pin_signal: USB1_VBUS, label: 'J2[1]/U2[4]/VBUS1_TARGET', identifier: USB1_VBUS} | ||
97 | - {pin_num: G1, pin_signal: USB1_ID, label: 'J2[4]/USB1_ID_TARGET', identifier: USB1_ID} | ||
98 | - {pin_num: A9, pin_signal: PIO4_11/ENET_RXD0/FC2_CTS_SDA_SSEL0/USB0_IDVALUE/SCT0_GPI4, label: 'U12[8]/JP12[1]/J3[4]/JP12[3]/P4_11-USB0_ID/P4_11-ENET_RXD0', identifier: USB0_ID;ENET_RXD0} | ||
99 | - {pin_num: B13, pin_signal: PIO0_29/FC0_RXD_SDA_MOSI/CTIMER2_MAT3/SCT0_OUT8/TRACEDATA(2), label: 'U24[13]/P0_29-ISP_FC0_RXD', identifier: ISP_FC0_RXD} | ||
100 | - {pin_num: A2, pin_signal: PIO0_30/FC0_TXD_SCL_MISO/CTIMER0_MAT0/SCT0_OUT9/TRACEDATA(1), label: 'U24[12]/P0_30-ISP_FC0_TXD', identifier: ISP_FC0_TXD} | ||
101 | - {pin_num: M3, pin_signal: PIO0_12/FC3_TXD_SCL_MISO/FREQME_GPIO_CLK_B/SCT0_GPI7/SWDIO/ADC0_2, label: 'P1[2]/U22[4]/D5[5]/IF_SWDIO', identifier: IF_SWDIO} | ||
102 | - {pin_num: L3, pin_signal: PIO0_11/FC6_RXD_SDA_MOSI_DATA/CTIMER2_MAT2/FREQME_GPIO_CLK_A/SWCLK/ADC0_1, label: 'U16[4]/SWDCLK_TRGT', identifier: SWDCLK_TRGT} | ||
103 | - {pin_num: P2, pin_signal: PIO0_10/FC6_SCK/CTIMER2_CAP2/CTIMER2_MAT0/FC1_TXD_SCL_MISO/SWO/ADC0_0, label: 'U16[12]/SWO_TRGT', identifier: SWO_TRGT} | ||
104 | - {pin_num: L10, pin_signal: PIO2_21/LCD_VD(3)/FC3_CTS_SDA_SSEL0/MCLK/CTIMER3_MAT3, label: 'J16[8]/P2_21-LCD_VD3', identifier: LCD_VD3} | ||
105 | - {pin_num: K10, pin_signal: PIO2_22/LCD_VD(4)/SCT0_OUT7/CTIMER2_CAP0, label: 'J16[9]/P2_22-LCD_VD4', identifier: LCD_VD4} | ||
106 | - {pin_num: M14, pin_signal: PIO2_23/LCD_VD(5)/SCT0_OUT8, label: 'J16[10]/P2_23-LCD_VD5', identifier: LCD_VD5} | ||
107 | - {pin_num: K14, pin_signal: PIO2_24/LCD_VD(6)/SCT0_OUT9, label: 'J16[11]/P2_24-LCD_VD6', identifier: LCD_VD6} | ||
108 | - {pin_num: J11, pin_signal: PIO2_25/LCD_VD(7)/USB0_VBUS, label: 'J16[12]/P2_25-LCD_VD7', identifier: LCD_VD7} | ||
109 | - {pin_num: G13, pin_signal: PIO2_28/LCD_VD(10)/FC7_CTS_SDA_SSEL0/CTIMER2_CAP2, label: 'J16[15]/P2_28-LCD_VD10', identifier: LCD_VD10} | ||
110 | - {pin_num: G11, pin_signal: PIO2_29/LCD_VD(11)/FC7_RTS_SCL_SSEL1/FC8_TXD_SCL_MISO/CTIMER2_CAP3/CLKOUT, label: 'J16[16]/P2_29-LCD_VD11', identifier: LCD_VD11} | ||
111 | - {pin_num: F12, pin_signal: PIO2_30/LCD_VD(12)/CTIMER2_MAT2, label: 'J16[17]/P2_30-LCD_VD12', identifier: LCD_VD12} | ||
112 | - {pin_num: D14, pin_signal: PIO2_31/LCD_VD(13), label: 'J16[18]/P2_31-LCD_VD13', identifier: LCD_VD13} | ||
113 | - {pin_num: D12, pin_signal: PIO3_0/LCD_VD(14)/PDM0_CLK/CTIMER1_MAT0, label: 'J16[19]/JS36[1]/P3_0-LCD_VD14', identifier: LCD_VD14} | ||
114 | - {pin_num: D11, pin_signal: PIO3_1/LCD_VD(15)/PDM0_DATA/CTIMER1_MAT1, label: 'J16[20]/JS33[1]/P3_1-LCD_VD15', identifier: LCD_VD15} | ||
115 | - {pin_num: B10, pin_signal: PIO3_5/LCD_VD(19)/FC8_RTS_SCL_SSEL1/CTIMER4_MAT1, label: 'J16[24]/P3_5-LCD_VD19', identifier: LCD_VD19} | ||
116 | - {pin_num: C9, pin_signal: PIO3_6/LCD_VD(20)/LCD_VD(0)/CTIMER4_MAT2, label: 'J16[25]/P3_6-LCD_VD20', identifier: LCD_VD20} | ||
117 | - {pin_num: B8, pin_signal: PIO3_7/LCD_VD(21)/LCD_VD(1)/CTIMER4_CAP2, label: 'J16[26]/P3_7-LCD_VD21', identifier: LCD_VD21} | ||
118 | - {pin_num: A7, pin_signal: PIO3_8/LCD_VD(22)/LCD_VD(2)/CTIMER4_CAP3, label: 'J16[27]/P3_8-LCD_VD22', identifier: LCD_VD22} | ||
119 | - {pin_num: C7, pin_signal: PIO3_9/LCD_VD(23)/LCD_VD(3)/CTIMER0_CAP2, label: 'J16[28]/P3_9-LCD_VD23', identifier: LCD_VD23} | ||
120 | - {pin_num: P7, pin_signal: PIO2_13/LCD_DCLK/SD_VOLT(2)/FC5_TXD_SCL_MISO, label: 'J16[30]/P2_13-LCD_DCLK', identifier: LCD_DCLK} | ||
121 | - {pin_num: K3, pin_signal: PIO2_11/LCD_PWR/SD_VOLT(0)/FC5_SCK, label: 'J16[31]/P2_11-LCD_PWR', identifier: LCD_PWR} | ||
122 | - {pin_num: L8, pin_signal: PIO2_16/LCD_LP/USB1_FRAME/USB1_PORTPWRN/CTIMER1_MAT3/FC8_SCK, label: 'J16[32]/P2_16-LCD_LP', identifier: LCD_LP} | ||
123 | - {pin_num: L7, pin_signal: PIO2_14/LCD_FP/USB0_FRAME/USB0_PORTPWRN/CTIMER0_MAT2/FC5_CTS_SDA_SSEL0, label: 'J16[33]/P2_14-LCD_FP', identifier: LCD_FP} | ||
124 | - {pin_num: M8, pin_signal: PIO2_15/LCD_AC/USB0_UP_LED/USB0_OVERCURRENTN/CTIMER0_MAT3/FC5_RTS_SCL_SSEL1, label: 'J16[34]/P2_15-LCD_AC_ENAB_M', identifier: LCD_AC_ENAB_M} | ||
125 | - {pin_num: B14, pin_signal: PIO4_8/ENET_TXD0/FC2_SCK/USB0_OVERCURRENTN/USB0_UP_LED/SCT0_GPI1, label: 'U12[17]/JP11[1]/P4_8-ENET_TXD0', identifier: ENET_TXD0} | ||
126 | - {pin_num: E14, pin_signal: PIO0_17/FC4_SSEL2/SD_CARD_DET_N/SCT0_GPI7/SCT0_OUT0/EMC_OEN/ENET_TXD1, label: 'U12[18]/P0_17-ENET_TXD1', identifier: ENET_TXD1} | ||
127 | - {pin_num: B6, pin_signal: PIO4_13/ENET_TX_EN/CTIMER4_MAT0/SCT0_GPI6, label: 'U12[16]/P4_13-ENET_TX_EN', identifier: ENET_TX_EN} | ||
128 | - {pin_num: A6, pin_signal: PIO4_12/ENET_RXD1/FC2_RTS_SCL_SSEL1/SCT0_GPI5, label: 'U12[7]/P4_12-ENET_RXD1', identifier: ENET_RXD1} | ||
129 | - {pin_num: B9, pin_signal: PIO4_10/ENET_RX_DV/FC2_TXD_SCL_MISO/USB1_OVERCURRENTN/USB1_UP_LED/SCT0_GPI3, label: 'U12[11]/P4_10-ENET_CRS_DV', identifier: ENET_CRS_DV} | ||
130 | - {pin_num: C4, pin_signal: PIO4_16/ENET_MDIO/CTIMER4_MAT3/FC9_TXD_SCL_MISO, label: 'U12[12]/P4_16-ENET_MDIO', identifier: ENET_MDIO} | ||
131 | - {pin_num: A4, pin_signal: PIO4_15/ENET_MDC/CTIMER4_MAT2/FC9_RXD_SDA_MOSI, label: 'U12[13]/P4_15-ENET_MDC', identifier: ENET_MDC} | ||
132 | - {pin_num: H11, pin_signal: PIO2_26/LCD_VD(8)/FC3_SCK/CTIMER2_CAP1, label: 'U12[15]/P2_26-ENET_PHY_RSTn', identifier: ENET_PHY_RSTn} | ||
133 | - {pin_num: B5, pin_signal: PIO4_14/ENET_RX_CLK/CTIMER4_MAT1/FC9_SCK/SCT0_GPI7, label: 'JS18[2]/P4_14-ENET_RX_CLK', identifier: ENET_RX_CLK} | ||
134 | - {pin_num: L14, pin_signal: PIO1_2/CAN0_TD/CTIMER0_MAT3/SCT0_GPI6/PDM1_CLK/USB1_PORTPWRN, label: 'J13[18]/JS25[3]/DMIC1[4]/P1_2-PDM1_CLK', identifier: PDM1_CLK} | ||
135 | - {pin_num: J13, pin_signal: PIO1_3/CAN0_RD/SCT0_OUT4/PDM1_DATA/USB0_PORTPWRN, label: 'JS26[3]/DMIC1[1]/P1_3-PDM1_DATA', identifier: PDM1_DATA} | ||
136 | - {pin_num: G14, pin_signal: PIO4_1/FC6_SCK/SCT0_GPI2/EMC_CSN(2), label: 'U10[29]/J9[14]/P4_1-FC6_I2S_TX_SCK', identifier: FC6_I2S_TX_SCK} | ||
137 | - {pin_num: F13, pin_signal: PIO4_3/FC6_TXD_SCL_MISO_WS/CTIMER0_CAP3/SCT0_GPI4/EMC_DYCSN(2), label: 'U10[30]/J9[12]/P4_3-FC6_I2S_TX_WS', identifier: FC6_I2S_TX_WS} | ||
138 | - {pin_num: F14, pin_signal: PIO4_2/FC6_RXD_SDA_MOSI_DATA/SCT0_GPI3/EMC_CSN(3), label: 'U10[32]/J9[10]/P4_2-FC6_I2S_TX_DATA', identifier: FC6_I2S_TX_DATA} | ||
139 | - {pin_num: P12, pin_signal: PIO2_19/LCD_VD(1)/FC3_TXD_SCL_MISO/FC7_RXD_SDA_MOSI_DATA/CTIMER3_MAT1, label: 'U10[31]/J9[20]/P2_19-FC7_I2S_RX_DAT', identifier: FC7_I2S_RX_DAT} | ||
140 | - {pin_num: N10, pin_signal: PIO2_18/LCD_VD(0)/FC3_RXD_SDA_MOSI/FC7_SCK/CTIMER3_MAT0, label: 'U10[29]/J9[16]/P2_18-FC7_I2S_RX_SCK', identifier: FC7_I2S_RX_SCK} | ||
141 | - {pin_num: P13, pin_signal: PIO2_20/LCD_VD(2)/FC3_RTS_SCL_SSEL1/FC7_TXD_SCL_MISO_WS/CTIMER3_MAT2/CTIMER4_CAP0, label: 'U10[30]/J9[18]/P2_20-FC7_I2S_RX_WS', identifier: FC7_I2S_RX_WS} | ||
142 | - {pin_num: B2, pin_signal: PIO3_11/MCLK/FC0_SCK/FC1_SCK/TRACEDATA(3), label: 'J11[8]/J12[7]/P3_11-MCLK-PMOD2_GPIO', identifier: MCLK} | ||
143 | - {pin_num: D1, pin_signal: PIO1_18/FC8_TXD_SCL_MISO/SCT0_OUT5/CAN1_RD/EMC_BLSN(1), label: 'J9[2]/P1_18-CAN1_RD'} | ||
144 | - {pin_num: M4, pin_signal: PIO0_16/FC4_TXD_SCL_MISO/CLKOUT/CTIMER1_CAP0/EMC_CSN(0)/ENET_TXD0/ADC0_4, label: 'J12[2]/P0_16-ADC0IN4'} | ||
145 | - {pin_num: M5, pin_signal: PIO0_31/FC0_CTS_SDA_SSEL0/SD_D(2)/CTIMER0_MAT1/SCT0_OUT3/TRACEDATA(0)/ADC0_5, label: 'J12[4]/P0_31-ADC0IN5'} | ||
146 | - {pin_num: N3, pin_signal: PIO1_0/FC0_RTS_SCL_SSEL1/SD_D(3)/CTIMER0_CAP2/SCT0_GPI4/TRACECLK/ADC0_6, label: 'J12[6]/P0_31-ADC0IN5'} | ||
147 | - {pin_num: N12, pin_signal: PIO1_17/ENET_MDIO/FC8_RXD_SDA_MOSI/SCT0_OUT4/CAN1_TD/EMC_BLSN(0), label: 'J9[4]/P1_17-CAN1_TD'} | ||
148 | - {pin_num: P11, pin_signal: PIO1_22/FC8_RTS_SCL_SSEL1/SD_CMD/CTIMER2_MAT3/SCT0_GPI5/FC4_SSEL3/EMC_CKE(1), label: 'J13[1]/P1_22-CT2MAT3'} | ||
149 | - {pin_num: P3, pin_signal: PIO2_0/FC0_RXD_SDA_MOSI/CTIMER1_CAP0/ADC0_7, label: 'J12[8]/P2_0-ADC0IN7-PMOD2_INTR'} | ||
150 | - {pin_num: P4, pin_signal: PIO2_1/FC0_TXD_SCL_MISO/CTIMER1_MAT0/ADC0_8, label: 'J9[17]/P2_1-CT1MAT0'} | ||
151 | - {pin_num: P10, pin_signal: PIO2_17/LCD_CLKIN/USB1_UP_LED/USB1_OVERCURRENTN/CTIMER1_CAP1/FC8_RXD_SDA_MOSI, label: 'J13[20]/P2_17-CT1CAP1-FC8_RXD'} | ||
152 | - {pin_num: H14, pin_signal: PIO2_27/LCD_VD(9)/FC9_SCK/FC3_SSEL2, label: 'J17[2]/P2_27-CT_RSTn'} | ||
153 | - {pin_num: C10, pin_signal: PIO3_2/LCD_VD(16)/FC9_RXD_SDA_MOSI/CTIMER1_MAT2, label: 'J13[11]/P3_2-FC9_MOSI-CT1MAT2'} | ||
154 | - {pin_num: A3, pin_signal: PIO3_10/SCT0_OUT3/CTIMER3_MAT0/EMC_DYCSN(1)/TRACEDATA(0), label: 'J13[7]/P3_10-CT3MAT0'} | ||
155 | - {pin_num: L2, pin_signal: PIO3_12/SCT0_OUT8/CTIMER3_CAP0/CLKOUT/EMC_CLK(1)/TRACECLK, label: 'J12[9]/P3_12-CLKOUT'} | ||
156 | - {pin_num: E1, pin_signal: PIO3_16/FC8_RXD_SDA_MOSI/SD_D(4), label: 'J12[3]/P3_16-GPIO_SPI_CS2'} | ||
157 | - {pin_num: K1, pin_signal: PIO3_17/FC8_TXD_SCL_MISO/SD_D(5), label: 'JS25[1]/P3_17-FC8_TXD'} | ||
158 | - {pin_num: M6, pin_signal: PIO3_18/FC8_CTS_SDA_SSEL0/SD_D(6)/CTIMER4_MAT0/CAN0_TD/SCT0_OUT5, label: 'J10[4]/P3_17-FC8_TXD'} | ||
159 | - {pin_num: J3, pin_signal: PIO3_19/FC8_RTS_SCL_SSEL1/SD_D(7)/CTIMER4_MAT1/CAN0_RD/SCT0_OUT6, label: 'J10[2]/P3_19-CAN0_RD'} | ||
160 | - {pin_num: N2, pin_signal: PIO3_20/FC9_SCK/SD_CARD_INT_N/CLKOUT/SCT0_OUT7, label: 'J9[9]/P3_20-FC9_SCK'} | ||
161 | - {pin_num: P5, pin_signal: PIO3_21/FC9_RXD_SDA_MOSI/SD_BACKEND_PWR/CTIMER4_MAT3/UTICK_CAP2/ADC0_9, label: 'J9[13]/P3_21-FC9_MOSI'} | ||
162 | - {pin_num: N5, pin_signal: PIO3_22/FC9_TXD_SCL_MISO/ADC0_10, label: 'J9[11]/P3_21-FC9_MISO'} | ||
163 | - {pin_num: K5, pin_signal: PIO3_26/SCT0_OUT0/FC4_RXD_SDA_MOSI/EMC_A(15), label: 'J13[15]/P3_26-FC4_RXD'} | ||
164 | - {pin_num: P14, pin_signal: PIO3_27/SCT0_OUT1/FC4_TXD_SCL_MISO/EMC_A(16), label: 'J13[13]/P3_26-FC4_TXD'} | ||
165 | - {pin_num: M11, pin_signal: PIO3_28/SCT0_OUT2/FC4_CTS_SDA_SSEL0/EMC_A(17), label: 'JS26[1]/P3_28-FC4_CTS_SDAX'} | ||
166 | - {pin_num: L13, pin_signal: PIO3_29/SCT0_OUT3/FC4_RTS_SCL_SSEL1/EMC_A(18), label: 'J13[14]/P3_29-FC4_RTS_SCLX'} | ||
167 | - {pin_num: K13, pin_signal: PIO3_30/FC9_CTS_SDA_SSEL0/SCT0_OUT4/FC4_SSEL2/EMC_A(19), label: 'J9[15]/P3_30-FC9_SSELn0'} | ||
168 | - {pin_num: J14, pin_signal: PIO3_31/FC9_RTS_SCL_SSEL1/SCT0_OUT5/CTIMER4_MAT2/SCT0_GPI0/EMC_A(20), label: 'U14[4]/P3_31-SCT0_OUT5_CT4MAT2'} | ||
169 | - {pin_num: H13, pin_signal: PIO4_0/FC6_CTS_SDA_SSEL0/CTIMER4_CAP1/SCT0_GPI1/EMC_CSN(1), label: 'J17[3]/P4_0-CT_INTR'} | ||
170 | - {pin_num: D9, pin_signal: PIO4_4/FC4_SSEL3/FC0_RTS_SCL_SSEL1/SCT0_GPI5/EMC_DYCSN(3), label: 'J13[19]/P4_4'} | ||
171 | - {pin_num: E10, pin_signal: PIO4_5/FC9_CTS_SDA_SSEL0/FC0_CTS_SDA_SSEL0/CTIMER4_MAT3/SCT0_GPI6/EMC_CKE(2), label: 'J13[9]/P4_5-CT4MAT3'} | ||
172 | - {pin_num: D10, pin_signal: PIO4_6/FC9_RTS_SCL_SSEL1/SCT0_GPI7/EMC_CKE(3), label: 'J12[1]/P4_6-FC9_SSELn1'} | ||
173 | - {pin_num: A14, pin_signal: PIO4_7/CTIMER4_CAP3/USB0_PORTPWRN/USB0_FRAME/SCT0_GPI0, label: P4_7} | ||
174 | - {pin_num: A12, pin_signal: PIO4_9/ENET_TXD1/FC2_RXD_SDA_MOSI/USB1_PORTPWRN/USB1_FRAME/SCT0_GPI2, label: 'U29[2]/P4_9-USB1_PORTPWRn'} | ||
175 | - {pin_num: N13, pin_signal: RESET, label: 'J15[1]/nRESET_TRGT'} | ||
176 | - {pin_num: L12, pin_signal: RTCXIN, label: Y4} | ||
177 | - {pin_num: K11, pin_signal: RTCXOUT, label: Y4} | ||
178 | - {pin_num: G3, pin_signal: USB1_AVDD0, label: +3.3V_USB_ENET} | ||
179 | - {pin_num: H1, pin_signal: USB1_AVDD1, label: +3.3V_USB_ENET} | ||
180 | - {pin_num: F2, pin_signal: USB1_AVSSC, label: GND} | ||
181 | - {pin_num: J1, pin_signal: USB1_AVSSTX3V3, label: GND} | ||
182 | - {pin_num: F1, pin_signal: USB1_REXT, label: GND} | ||
183 | - {pin_num: N11, pin_signal: VBAT0, label: VDD_TARGE} | ||
184 | - {pin_num: H5, pin_signal: VD1_00, label: JS22} | ||
185 | - {pin_num: E6, pin_signal: VDD0, label: VDD_TARGET_IC} | ||
186 | - {pin_num: E8, pin_signal: VDD1, label: VDD_TARGET_IC} | ||
187 | - {pin_num: F5, pin_signal: VDD2, label: VDD_TARGET_IC} | ||
188 | - {pin_num: G5, pin_signal: VDD3, label: VDD_TARGET_IC} | ||
189 | - {pin_num: J12, pin_signal: VDD4, label: VDD_TARGET_IC} | ||
190 | - {pin_num: L11, pin_signal: VDD5, label: VDD_TARGET_IC} | ||
191 | - {pin_num: N6, pin_signal: VDDA, label: VDD_TARGET} | ||
192 | - {pin_num: L6, pin_signal: VPP0, label: VDD_TARGET_IC} | ||
193 | - {pin_num: P6, pin_signal: VREFP, label: 'JS23[1]'} | ||
194 | - {pin_num: N4, pin_signal: VREFN, label: 'JS22[2]'} | ||
195 | - {pin_num: B3, pin_signal: VSS0, label: GND} | ||
196 | - {pin_num: D7, pin_signal: VSS1, label: GND} | ||
197 | - {pin_num: D8, pin_signal: VSS2, label: GND} | ||
198 | - {pin_num: E11, pin_signal: VSS3, label: GND} | ||
199 | - {pin_num: J5, pin_signal: VSS4, label: GND} | ||
200 | - {pin_num: L5, pin_signal: VSSA, label: GND} | ||
201 | - {pin_num: K4, pin_signal: XTAL1, label: Y2} | ||
202 | - {pin_num: J4, pin_signal: XTAL2, label: Y2} | ||
203 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
204 | */ | ||
205 | /* clang-format on */ | ||
206 | |||
207 | #include "fsl_common.h" | ||
208 | #include "fsl_gpio.h" | ||
209 | #include "pin_mux.h" | ||
210 | |||
211 | /* FUNCTION ************************************************************************************************************ | ||
212 | * | ||
213 | * Function Name : BOARD_InitBootPins | ||
214 | * Description : Calls initialization functions. | ||
215 | * | ||
216 | * END ****************************************************************************************************************/ | ||
217 | void BOARD_InitBootPins(void) | ||
218 | { | ||
219 | BOARD_InitPins(); | ||
220 | BOARD_InitDEBUG_UARTPins(); | ||
221 | } | ||
222 | |||
223 | /* clang-format off */ | ||
224 | /* | ||
225 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
226 | BOARD_InitPins: | ||
227 | - options: {callFromInitBoot: 'true', prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
228 | - pin_list: | ||
229 | - {pin_num: P2, peripheral: SWD, signal: SWO, pin_signal: PIO0_10/FC6_SCK/CTIMER2_CAP2/CTIMER2_MAT0/FC1_TXD_SCL_MISO/SWO/ADC0_0, identifier: '', mode: inactive} | ||
230 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
231 | */ | ||
232 | /* clang-format on */ | ||
233 | |||
234 | /* FUNCTION ************************************************************************************************************ | ||
235 | * | ||
236 | * Function Name : BOARD_InitPins | ||
237 | * Description : Configures pin routing and optionally pin electrical features. | ||
238 | * | ||
239 | * END ****************************************************************************************************************/ | ||
240 | /* Function assigned for the Cortex-M4F */ | ||
241 | void BOARD_InitPins(void) | ||
242 | { | ||
243 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
244 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
245 | |||
246 | IOCON->PIO[0][10] = ((IOCON->PIO[0][10] & | ||
247 | /* Mask bits to zero which are setting */ | ||
248 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_MODE_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
249 | |||
250 | /* Selects pin function. | ||
251 | * : PORT010 (pin P2) is configured as SWO. */ | ||
252 | | IOCON_PIO_FUNC(PIO010_FUNC_ALT6) | ||
253 | |||
254 | /* Selects function mode (on-chip pull-up/pull-down resistor control). | ||
255 | * : Inactive. | ||
256 | * Inactive (no pull-down/pull-up resistor enabled). */ | ||
257 | | IOCON_PIO_MODE(PIO010_MODE_INACTIVE) | ||
258 | |||
259 | /* Select Analog/Digital mode. | ||
260 | * : Digital mode. */ | ||
261 | | IOCON_PIO_DIGIMODE(PIO010_DIGIMODE_DIGITAL)); | ||
262 | } | ||
263 | |||
264 | /* clang-format off */ | ||
265 | /* | ||
266 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
267 | BOARD_InitBUTTONsPins: | ||
268 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
269 | - pin_list: | ||
270 | - {pin_num: A5, peripheral: GPIO, signal: 'PIO0, 6', pin_signal: PIO0_6/FC3_SCK/CTIMER3_CAP1/CTIMER4_MAT0/SCT0_GPI6/EMC_D(4)/ENET_RX_DV, identifier: SW2, direction: INPUT} | ||
271 | - {pin_num: E7, peripheral: GPIO, signal: 'PIO0, 5', pin_signal: PIO0_5/CAN0_TD/FC4_RXD_SDA_MOSI/CTIMER3_MAT0/SCT0_GPI5/EMC_D(3)/ENET_MDIO, identifier: SW3, direction: INPUT} | ||
272 | - {pin_num: C8, peripheral: GPIO, signal: 'PIO0, 4', pin_signal: PIO0_4/CAN0_RD/FC4_SCK/CTIMER3_CAP0/SCT0_GPI4/EMC_D(2)/ENET_MDC, identifier: SW4, direction: INPUT} | ||
273 | - {pin_num: K12, peripheral: GPIO, signal: 'PIO1, 1', pin_signal: PIO1_1/FC3_RXD_SDA_MOSI/CTIMER0_CAP3/SCT0_GPI5/USB1_OVERCURRENTN, direction: INPUT} | ||
274 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
275 | */ | ||
276 | /* clang-format on */ | ||
277 | |||
278 | /* FUNCTION ************************************************************************************************************ | ||
279 | * | ||
280 | * Function Name : BOARD_InitBUTTONsPins | ||
281 | * Description : Configures pin routing and optionally pin electrical features. | ||
282 | * | ||
283 | * END ****************************************************************************************************************/ | ||
284 | /* Function assigned for the Cortex-M4F */ | ||
285 | void BOARD_InitBUTTONsPins(void) | ||
286 | { | ||
287 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
288 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
289 | /* Enables the clock for the GPIO0 module */ | ||
290 | CLOCK_EnableClock(kCLOCK_Gpio0); | ||
291 | /* Enables the clock for the GPIO1 module */ | ||
292 | CLOCK_EnableClock(kCLOCK_Gpio1); | ||
293 | |||
294 | gpio_pin_config_t SW4_config = { | ||
295 | .pinDirection = kGPIO_DigitalInput, | ||
296 | .outputLogic = 0U | ||
297 | }; | ||
298 | /* Initialize GPIO functionality on pin PIO0_4 (pin C8) */ | ||
299 | GPIO_PinInit(BOARD_SW4_GPIO, BOARD_SW4_PORT, BOARD_SW4_PIN, &SW4_config); | ||
300 | |||
301 | gpio_pin_config_t SW3_config = { | ||
302 | .pinDirection = kGPIO_DigitalInput, | ||
303 | .outputLogic = 0U | ||
304 | }; | ||
305 | /* Initialize GPIO functionality on pin PIO0_5 (pin E7) */ | ||
306 | GPIO_PinInit(BOARD_SW3_GPIO, BOARD_SW3_PORT, BOARD_SW3_PIN, &SW3_config); | ||
307 | |||
308 | gpio_pin_config_t SW2_config = { | ||
309 | .pinDirection = kGPIO_DigitalInput, | ||
310 | .outputLogic = 0U | ||
311 | }; | ||
312 | /* Initialize GPIO functionality on pin PIO0_6 (pin A5) */ | ||
313 | GPIO_PinInit(BOARD_SW2_GPIO, BOARD_SW2_PORT, BOARD_SW2_PIN, &SW2_config); | ||
314 | |||
315 | gpio_pin_config_t SW5_config = { | ||
316 | .pinDirection = kGPIO_DigitalInput, | ||
317 | .outputLogic = 0U | ||
318 | }; | ||
319 | /* Initialize GPIO functionality on pin PIO1_1 (pin K12) */ | ||
320 | GPIO_PinInit(BOARD_SW5_GPIO, BOARD_SW5_PORT, BOARD_SW5_PIN, &SW5_config); | ||
321 | |||
322 | IOCON->PIO[0][4] = ((IOCON->PIO[0][4] & | ||
323 | /* Mask bits to zero which are setting */ | ||
324 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
325 | |||
326 | /* Selects pin function. | ||
327 | * : PORT04 (pin C8) is configured as PIO0_4. */ | ||
328 | | IOCON_PIO_FUNC(PIO04_FUNC_ALT0) | ||
329 | |||
330 | /* Select Analog/Digital mode. | ||
331 | * : Digital mode. */ | ||
332 | | IOCON_PIO_DIGIMODE(PIO04_DIGIMODE_DIGITAL)); | ||
333 | |||
334 | IOCON->PIO[0][5] = ((IOCON->PIO[0][5] & | ||
335 | /* Mask bits to zero which are setting */ | ||
336 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
337 | |||
338 | /* Selects pin function. | ||
339 | * : PORT05 (pin E7) is configured as PIO0_5. */ | ||
340 | | IOCON_PIO_FUNC(PIO05_FUNC_ALT0) | ||
341 | |||
342 | /* Select Analog/Digital mode. | ||
343 | * : Digital mode. */ | ||
344 | | IOCON_PIO_DIGIMODE(PIO05_DIGIMODE_DIGITAL)); | ||
345 | |||
346 | IOCON->PIO[0][6] = ((IOCON->PIO[0][6] & | ||
347 | /* Mask bits to zero which are setting */ | ||
348 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
349 | |||
350 | /* Selects pin function. | ||
351 | * : PORT06 (pin A5) is configured as PIO0_6. */ | ||
352 | | IOCON_PIO_FUNC(PIO06_FUNC_ALT0) | ||
353 | |||
354 | /* Select Analog/Digital mode. | ||
355 | * : Digital mode. */ | ||
356 | | IOCON_PIO_DIGIMODE(PIO06_DIGIMODE_DIGITAL)); | ||
357 | |||
358 | IOCON->PIO[1][1] = ((IOCON->PIO[1][1] & | ||
359 | /* Mask bits to zero which are setting */ | ||
360 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
361 | |||
362 | /* Selects pin function. | ||
363 | * : PORT11 (pin K12) is configured as PIO1_1. */ | ||
364 | | IOCON_PIO_FUNC(PIO11_FUNC_ALT0) | ||
365 | |||
366 | /* Select Analog/Digital mode. | ||
367 | * : Digital mode. */ | ||
368 | | IOCON_PIO_DIGIMODE(PIO11_DIGIMODE_DIGITAL)); | ||
369 | } | ||
370 | |||
371 | /* clang-format off */ | ||
372 | /* | ||
373 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
374 | BOARD_InitLEDsPins: | ||
375 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
376 | - pin_list: | ||
377 | - {pin_num: A13, peripheral: GPIO, signal: 'PIO3, 3', pin_signal: PIO3_3/LCD_VD(17)/FC9_TXD_SCL_MISO, direction: OUTPUT} | ||
378 | - {pin_num: C3, peripheral: GPIO, signal: 'PIO2, 2', pin_signal: PIO2_2/ENET_CRS/FC3_SSEL3/SCT0_OUT6/CTIMER1_MAT1, direction: OUTPUT} | ||
379 | - {pin_num: E3, peripheral: GPIO, signal: 'PIO3, 14', pin_signal: PIO3_14/SCT0_OUT4/FC9_RTS_SCL_SSEL1/CTIMER3_MAT1/TRACEDATA(2), direction: OUTPUT} | ||
380 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
381 | */ | ||
382 | /* clang-format on */ | ||
383 | |||
384 | /* FUNCTION ************************************************************************************************************ | ||
385 | * | ||
386 | * Function Name : BOARD_InitLEDsPins | ||
387 | * Description : Configures pin routing and optionally pin electrical features. | ||
388 | * | ||
389 | * END ****************************************************************************************************************/ | ||
390 | /* Function assigned for the Cortex-M4F */ | ||
391 | void BOARD_InitLEDsPins(void) | ||
392 | { | ||
393 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
394 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
395 | /* Enables the clock for the GPIO2 module */ | ||
396 | CLOCK_EnableClock(kCLOCK_Gpio2); | ||
397 | /* Enables the clock for the GPIO3 module */ | ||
398 | CLOCK_EnableClock(kCLOCK_Gpio3); | ||
399 | |||
400 | gpio_pin_config_t LED3_config = { | ||
401 | .pinDirection = kGPIO_DigitalOutput, | ||
402 | .outputLogic = 0U | ||
403 | }; | ||
404 | /* Initialize GPIO functionality on pin PIO2_2 (pin C3) */ | ||
405 | GPIO_PinInit(BOARD_LED3_GPIO, BOARD_LED3_PORT, BOARD_LED3_PIN, &LED3_config); | ||
406 | |||
407 | gpio_pin_config_t LED2_config = { | ||
408 | .pinDirection = kGPIO_DigitalOutput, | ||
409 | .outputLogic = 0U | ||
410 | }; | ||
411 | /* Initialize GPIO functionality on pin PIO3_3 (pin A13) */ | ||
412 | GPIO_PinInit(BOARD_LED2_GPIO, BOARD_LED2_PORT, BOARD_LED2_PIN, &LED2_config); | ||
413 | |||
414 | gpio_pin_config_t LED1_config = { | ||
415 | .pinDirection = kGPIO_DigitalOutput, | ||
416 | .outputLogic = 0U | ||
417 | }; | ||
418 | /* Initialize GPIO functionality on pin PIO3_14 (pin E3) */ | ||
419 | GPIO_PinInit(BOARD_LED1_GPIO, BOARD_LED1_PORT, BOARD_LED1_PIN, &LED1_config); | ||
420 | |||
421 | IOCON->PIO[2][2] = ((IOCON->PIO[2][2] & | ||
422 | /* Mask bits to zero which are setting */ | ||
423 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
424 | |||
425 | /* Selects pin function. | ||
426 | * : PORT22 (pin C3) is configured as PIO2_2. */ | ||
427 | | IOCON_PIO_FUNC(PIO22_FUNC_ALT0) | ||
428 | |||
429 | /* Select Analog/Digital mode. | ||
430 | * : Digital mode. */ | ||
431 | | IOCON_PIO_DIGIMODE(PIO22_DIGIMODE_DIGITAL)); | ||
432 | |||
433 | IOCON->PIO[3][14] = ((IOCON->PIO[3][14] & | ||
434 | /* Mask bits to zero which are setting */ | ||
435 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
436 | |||
437 | /* Selects pin function. | ||
438 | * : PORT314 (pin E3) is configured as PIO3_14. */ | ||
439 | | IOCON_PIO_FUNC(PIO314_FUNC_ALT0) | ||
440 | |||
441 | /* Select Analog/Digital mode. | ||
442 | * : Digital mode. */ | ||
443 | | IOCON_PIO_DIGIMODE(PIO314_DIGIMODE_DIGITAL)); | ||
444 | |||
445 | IOCON->PIO[3][3] = ((IOCON->PIO[3][3] & | ||
446 | /* Mask bits to zero which are setting */ | ||
447 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
448 | |||
449 | /* Selects pin function. | ||
450 | * : PORT33 (pin A13) is configured as PIO3_3. */ | ||
451 | | IOCON_PIO_FUNC(PIO33_FUNC_ALT0) | ||
452 | |||
453 | /* Select Analog/Digital mode. | ||
454 | * : Digital mode. */ | ||
455 | | IOCON_PIO_DIGIMODE(PIO33_DIGIMODE_DIGITAL)); | ||
456 | } | ||
457 | |||
458 | /* clang-format off */ | ||
459 | /* | ||
460 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
461 | BOARD_InitPMod_SPI_I2C_BRIDGEPins: | ||
462 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
463 | - pin_list: | ||
464 | - {pin_num: A1, peripheral: FLEXCOMM3, signal: CTS_SDA_SSEL0, pin_signal: PIO0_1/CAN1_TD/FC3_CTS_SDA_SSEL0/CTIMER0_CAP0/SCT0_GPI1/PDM0_DATA, direction: OUTPUT} | ||
465 | - {pin_num: A10, peripheral: FLEXCOMM3, signal: RXD_SDA_MOSI, pin_signal: PIO0_3/FC3_RXD_SDA_MOSI/CTIMER0_MAT1/SCT0_OUT1/SCT0_GPI3/EMC_D(1), identifier: ISP_FC3_MOSI, | ||
466 | direction: OUTPUT} | ||
467 | - {pin_num: E9, peripheral: FLEXCOMM3, signal: TXD_SCL_MISO, pin_signal: PIO0_2/FC3_TXD_SCL_MISO/CTIMER0_CAP1/SCT0_OUT0/SCT0_GPI2/EMC_D(0), identifier: ISP_FC3_MISO, | ||
468 | direction: INPUT} | ||
469 | - {pin_num: D6, peripheral: FLEXCOMM3, signal: SCK, pin_signal: PIO0_0/CAN1_RD/FC3_SCK/CTIMER0_MAT0/SCT0_GPI0/PDM0_CLK, direction: OUTPUT} | ||
470 | - {pin_num: H4, peripheral: GPIO, signal: 'PIO3, 13', pin_signal: PIO3_13/SCT0_OUT9/FC9_CTS_SDA_SSEL0/CTIMER3_CAP1/EMC_FBCK/TRACEDATA(1)} | ||
471 | - {pin_num: F11, peripheral: FLEXCOMM1, signal: CTS_SDA_SSEL0, pin_signal: PIO0_13/FC1_CTS_SDA_SSEL0/UTICK_CAP0/CTIMER0_CAP0/SCT0_GPI0/ENET_RXD0} | ||
472 | - {pin_num: E13, peripheral: FLEXCOMM1, signal: RTS_SCL_SSEL1, pin_signal: PIO0_14/FC1_RTS_SCL_SSEL1/UTICK_CAP1/CTIMER0_CAP1/SCT0_GPI1/ENET_RXD1} | ||
473 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
474 | */ | ||
475 | /* clang-format on */ | ||
476 | |||
477 | /* FUNCTION ************************************************************************************************************ | ||
478 | * | ||
479 | * Function Name : BOARD_InitPMod_SPI_I2C_BRIDGEPins | ||
480 | * Description : Configures pin routing and optionally pin electrical features. | ||
481 | * | ||
482 | * END ****************************************************************************************************************/ | ||
483 | /* Function assigned for the Cortex-M4F */ | ||
484 | void BOARD_InitPMod_SPI_I2C_BRIDGEPins(void) | ||
485 | { | ||
486 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
487 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
488 | |||
489 | IOCON->PIO[0][0] = ((IOCON->PIO[0][0] & | ||
490 | /* Mask bits to zero which are setting */ | ||
491 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
492 | |||
493 | /* Selects pin function. | ||
494 | * : PORT00 (pin D6) is configured as FC3_SCK. */ | ||
495 | | IOCON_PIO_FUNC(PIO00_FUNC_ALT2) | ||
496 | |||
497 | /* Select Analog/Digital mode. | ||
498 | * : Digital mode. */ | ||
499 | | IOCON_PIO_DIGIMODE(PIO00_DIGIMODE_DIGITAL)); | ||
500 | |||
501 | IOCON->PIO[0][1] = ((IOCON->PIO[0][1] & | ||
502 | /* Mask bits to zero which are setting */ | ||
503 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
504 | |||
505 | /* Selects pin function. | ||
506 | * : PORT01 (pin A1) is configured as FC3_CTS_SDA_SSEL0. */ | ||
507 | | IOCON_PIO_FUNC(PIO01_FUNC_ALT2) | ||
508 | |||
509 | /* Select Analog/Digital mode. | ||
510 | * : Digital mode. */ | ||
511 | | IOCON_PIO_DIGIMODE(PIO01_DIGIMODE_DIGITAL)); | ||
512 | |||
513 | IOCON->PIO[0][13] = ((IOCON->PIO[0][13] & | ||
514 | /* Mask bits to zero which are setting */ | ||
515 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
516 | |||
517 | /* Selects pin function. | ||
518 | * : PORT013 (pin F11) is configured as FC1_CTS_SDA_SSEL0. */ | ||
519 | | IOCON_PIO_FUNC(PIO013_FUNC_ALT1) | ||
520 | |||
521 | /* Select Analog/Digital mode. | ||
522 | * : Digital mode. */ | ||
523 | | IOCON_PIO_DIGIMODE(PIO013_DIGIMODE_DIGITAL)); | ||
524 | |||
525 | IOCON->PIO[0][14] = ((IOCON->PIO[0][14] & | ||
526 | /* Mask bits to zero which are setting */ | ||
527 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
528 | |||
529 | /* Selects pin function. | ||
530 | * : PORT014 (pin E13) is configured as FC1_RTS_SCL_SSEL1. */ | ||
531 | | IOCON_PIO_FUNC(PIO014_FUNC_ALT1) | ||
532 | |||
533 | /* Select Analog/Digital mode. | ||
534 | * : Digital mode. */ | ||
535 | | IOCON_PIO_DIGIMODE(PIO014_DIGIMODE_DIGITAL)); | ||
536 | |||
537 | IOCON->PIO[0][2] = ((IOCON->PIO[0][2] & | ||
538 | /* Mask bits to zero which are setting */ | ||
539 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
540 | |||
541 | /* Selects pin function. | ||
542 | * : PORT02 (pin E9) is configured as FC3_TXD_SCL_MISO. */ | ||
543 | | IOCON_PIO_FUNC(PIO02_FUNC_ALT1) | ||
544 | |||
545 | /* Select Analog/Digital mode. | ||
546 | * : Digital mode. */ | ||
547 | | IOCON_PIO_DIGIMODE(PIO02_DIGIMODE_DIGITAL)); | ||
548 | |||
549 | IOCON->PIO[0][3] = ((IOCON->PIO[0][3] & | ||
550 | /* Mask bits to zero which are setting */ | ||
551 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
552 | |||
553 | /* Selects pin function. | ||
554 | * : PORT03 (pin A10) is configured as FC3_RXD_SDA_MOSI. */ | ||
555 | | IOCON_PIO_FUNC(PIO03_FUNC_ALT1) | ||
556 | |||
557 | /* Select Analog/Digital mode. | ||
558 | * : Digital mode. */ | ||
559 | | IOCON_PIO_DIGIMODE(PIO03_DIGIMODE_DIGITAL)); | ||
560 | |||
561 | IOCON->PIO[3][13] = ((IOCON->PIO[3][13] & | ||
562 | /* Mask bits to zero which are setting */ | ||
563 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
564 | |||
565 | /* Selects pin function. | ||
566 | * : PORT313 (pin H4) is configured as PIO3_13. */ | ||
567 | | IOCON_PIO_FUNC(PIO313_FUNC_ALT0) | ||
568 | |||
569 | /* Select Analog/Digital mode. | ||
570 | * : Digital mode. */ | ||
571 | | IOCON_PIO_DIGIMODE(PIO313_DIGIMODE_DIGITAL)); | ||
572 | } | ||
573 | |||
574 | /* clang-format off */ | ||
575 | /* | ||
576 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
577 | BOARD_InitACCELPins: | ||
578 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
579 | - pin_list: | ||
580 | - {pin_num: C2, peripheral: FLEXCOMM2, signal: CTS_SDA_SSEL0, pin_signal: PIO3_23/FC2_CTS_SDA_SSEL0/UTICK_CAP3} | ||
581 | - {pin_num: E2, peripheral: FLEXCOMM2, signal: RTS_SCL_SSEL1, pin_signal: PIO3_24/FC2_RTS_SCL_SSEL1/CTIMER4_CAP0/USB0_VBUS} | ||
582 | - {pin_num: B11, peripheral: GPIO, signal: 'PIO3, 4', pin_signal: PIO3_4/LCD_VD(18)/FC8_CTS_SDA_SSEL0/CTIMER4_CAP1, direction: INPUT} | ||
583 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
584 | */ | ||
585 | /* clang-format on */ | ||
586 | |||
587 | /* FUNCTION ************************************************************************************************************ | ||
588 | * | ||
589 | * Function Name : BOARD_InitACCELPins | ||
590 | * Description : Configures pin routing and optionally pin electrical features. | ||
591 | * | ||
592 | * END ****************************************************************************************************************/ | ||
593 | /* Function assigned for the Cortex-M4F */ | ||
594 | void BOARD_InitACCELPins(void) | ||
595 | { | ||
596 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
597 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
598 | /* Enables the clock for the GPIO3 module */ | ||
599 | CLOCK_EnableClock(kCLOCK_Gpio3); | ||
600 | |||
601 | gpio_pin_config_t ACCL_INTR_config = { | ||
602 | .pinDirection = kGPIO_DigitalInput, | ||
603 | .outputLogic = 0U | ||
604 | }; | ||
605 | /* Initialize GPIO functionality on pin PIO3_4 (pin B11) */ | ||
606 | GPIO_PinInit(BOARD_ACCL_INTR_GPIO, BOARD_ACCL_INTR_PORT, BOARD_ACCL_INTR_PIN, &ACCL_INTR_config); | ||
607 | |||
608 | IOCON->PIO[3][23] = ((IOCON->PIO[3][23] & | ||
609 | /* Mask bits to zero which are setting */ | ||
610 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
611 | |||
612 | /* Selects pin function. | ||
613 | * : PORT323 (pin C2) is configured as FC2_CTS_SDA_SSEL0. */ | ||
614 | | IOCON_PIO_FUNC(PIO323_FUNC_ALT1) | ||
615 | |||
616 | /* Select Analog/Digital mode. | ||
617 | * : Digital mode. */ | ||
618 | | IOCON_PIO_DIGIMODE(PIO323_DIGIMODE_DIGITAL)); | ||
619 | |||
620 | IOCON->PIO[3][24] = ((IOCON->PIO[3][24] & | ||
621 | /* Mask bits to zero which are setting */ | ||
622 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
623 | |||
624 | /* Selects pin function. | ||
625 | * : PORT324 (pin E2) is configured as FC2_RTS_SCL_SSEL1. */ | ||
626 | | IOCON_PIO_FUNC(PIO324_FUNC_ALT1) | ||
627 | |||
628 | /* Select Analog/Digital mode. | ||
629 | * : Digital mode. */ | ||
630 | | IOCON_PIO_DIGIMODE(PIO324_DIGIMODE_DIGITAL)); | ||
631 | |||
632 | IOCON->PIO[3][4] = ((IOCON->PIO[3][4] & | ||
633 | /* Mask bits to zero which are setting */ | ||
634 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
635 | |||
636 | /* Selects pin function. | ||
637 | * : PORT34 (pin B11) is configured as PIO3_4. */ | ||
638 | | IOCON_PIO_FUNC(PIO34_FUNC_ALT0) | ||
639 | |||
640 | /* Select Analog/Digital mode. | ||
641 | * : Digital mode. */ | ||
642 | | IOCON_PIO_DIGIMODE(PIO34_DIGIMODE_DIGITAL)); | ||
643 | } | ||
644 | |||
645 | /* clang-format off */ | ||
646 | /* | ||
647 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
648 | BOARD_InitQSPI_FLASHPins: | ||
649 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
650 | - pin_list: | ||
651 | - {pin_num: M13, peripheral: SPIFI0, signal: SPIFI_SCK, pin_signal: PIO0_26/FC2_RXD_SDA_MOSI/CLKOUT/CTIMER3_CAP2/SCT0_OUT5/PDM0_CLK/SPIFI_CLK/USB0_IDVALUE} | ||
652 | - {pin_num: M7, peripheral: SPIFI0, signal: SPIFI_IO0/SPIFI_MOSI, pin_signal: PIO0_24/FC0_RXD_SDA_MOSI/SD_D(0)/CTIMER2_CAP0/SCT0_GPI0/SPIFI_IO(0)} | ||
653 | - {pin_num: K8, peripheral: SPIFI0, signal: SPIFI_IO1/SPIFI_MISO, pin_signal: PIO0_25/FC0_TXD_SCL_MISO/SD_D(1)/CTIMER2_CAP1/SCT0_GPI1/SPIFI_IO(1)} | ||
654 | - {pin_num: L9, peripheral: SPIFI0, signal: 'SPIFI_IO, 3', pin_signal: PIO0_27/FC2_TXD_SCL_MISO/CTIMER3_MAT2/SCT0_OUT6/PDM0_DATA/SPIFI_IO(3)} | ||
655 | - {pin_num: M9, peripheral: SPIFI0, signal: 'SPIFI_IO, 2', pin_signal: PIO0_28/FC0_SCK/CTIMER2_CAP3/SCT0_OUT7/TRACEDATA(3)/SPIFI_IO(2)/USB0_OVERCURRENTN} | ||
656 | - {pin_num: N7, peripheral: SPIFI0, signal: SPIFI_CSN, pin_signal: PIO0_23/MCLK/CTIMER1_MAT2/CTIMER3_MAT3/SCT0_OUT4/SPIFI_CSN/ADC0_11} | ||
657 | - {pin_num: M2, peripheral: GPIO, signal: 'PIO2, 12', pin_signal: PIO2_12/LCD_LE/SD_VOLT(1)/USB0_IDVALUE/FC5_RXD_SDA_MOSI} | ||
658 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
659 | */ | ||
660 | /* clang-format on */ | ||
661 | |||
662 | /* FUNCTION ************************************************************************************************************ | ||
663 | * | ||
664 | * Function Name : BOARD_InitQSPI_FLASHPins | ||
665 | * Description : Configures pin routing and optionally pin electrical features. | ||
666 | * | ||
667 | * END ****************************************************************************************************************/ | ||
668 | /* Function assigned for the Cortex-M4F */ | ||
669 | void BOARD_InitQSPI_FLASHPins(void) | ||
670 | { | ||
671 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
672 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
673 | |||
674 | IOCON->PIO[0][23] = ((IOCON->PIO[0][23] & | ||
675 | /* Mask bits to zero which are setting */ | ||
676 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
677 | |||
678 | /* Selects pin function. | ||
679 | * : PORT023 (pin N7) is configured as SPIFI_CSN. */ | ||
680 | | IOCON_PIO_FUNC(PIO023_FUNC_ALT6) | ||
681 | |||
682 | /* Select Analog/Digital mode. | ||
683 | * : Digital mode. */ | ||
684 | | IOCON_PIO_DIGIMODE(PIO023_DIGIMODE_DIGITAL)); | ||
685 | |||
686 | IOCON->PIO[0][24] = ((IOCON->PIO[0][24] & | ||
687 | /* Mask bits to zero which are setting */ | ||
688 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
689 | |||
690 | /* Selects pin function. | ||
691 | * : PORT024 (pin M7) is configured as SPIFI_IO(0). */ | ||
692 | | IOCON_PIO_FUNC(PIO024_FUNC_ALT6) | ||
693 | |||
694 | /* Select Analog/Digital mode. | ||
695 | * : Digital mode. */ | ||
696 | | IOCON_PIO_DIGIMODE(PIO024_DIGIMODE_DIGITAL)); | ||
697 | |||
698 | IOCON->PIO[0][25] = ((IOCON->PIO[0][25] & | ||
699 | /* Mask bits to zero which are setting */ | ||
700 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
701 | |||
702 | /* Selects pin function. | ||
703 | * : PORT025 (pin K8) is configured as SPIFI_IO(1). */ | ||
704 | | IOCON_PIO_FUNC(PIO025_FUNC_ALT6) | ||
705 | |||
706 | /* Select Analog/Digital mode. | ||
707 | * : Digital mode. */ | ||
708 | | IOCON_PIO_DIGIMODE(PIO025_DIGIMODE_DIGITAL)); | ||
709 | |||
710 | IOCON->PIO[0][26] = ((IOCON->PIO[0][26] & | ||
711 | /* Mask bits to zero which are setting */ | ||
712 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
713 | |||
714 | /* Selects pin function. | ||
715 | * : PORT026 (pin M13) is configured as SPIFI_CLK. */ | ||
716 | | IOCON_PIO_FUNC(PIO026_FUNC_ALT6) | ||
717 | |||
718 | /* Select Analog/Digital mode. | ||
719 | * : Digital mode. */ | ||
720 | | IOCON_PIO_DIGIMODE(PIO026_DIGIMODE_DIGITAL)); | ||
721 | |||
722 | IOCON->PIO[0][27] = ((IOCON->PIO[0][27] & | ||
723 | /* Mask bits to zero which are setting */ | ||
724 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
725 | |||
726 | /* Selects pin function. | ||
727 | * : PORT027 (pin L9) is configured as SPIFI_IO(3). */ | ||
728 | | IOCON_PIO_FUNC(PIO027_FUNC_ALT6) | ||
729 | |||
730 | /* Select Analog/Digital mode. | ||
731 | * : Digital mode. */ | ||
732 | | IOCON_PIO_DIGIMODE(PIO027_DIGIMODE_DIGITAL)); | ||
733 | |||
734 | IOCON->PIO[0][28] = ((IOCON->PIO[0][28] & | ||
735 | /* Mask bits to zero which are setting */ | ||
736 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
737 | |||
738 | /* Selects pin function. | ||
739 | * : PORT028 (pin M9) is configured as SPIFI_IO(2). */ | ||
740 | | IOCON_PIO_FUNC(PIO028_FUNC_ALT6) | ||
741 | |||
742 | /* Select Analog/Digital mode. | ||
743 | * : Digital mode. */ | ||
744 | | IOCON_PIO_DIGIMODE(PIO028_DIGIMODE_DIGITAL)); | ||
745 | |||
746 | IOCON->PIO[2][12] = ((IOCON->PIO[2][12] & | ||
747 | /* Mask bits to zero which are setting */ | ||
748 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
749 | |||
750 | /* Selects pin function. | ||
751 | * : PORT212 (pin M2) is configured as PIO2_12. */ | ||
752 | | IOCON_PIO_FUNC(PIO212_FUNC_ALT0) | ||
753 | |||
754 | /* Select Analog/Digital mode. | ||
755 | * : Digital mode. */ | ||
756 | | IOCON_PIO_DIGIMODE(PIO212_DIGIMODE_DIGITAL)); | ||
757 | } | ||
758 | |||
759 | /* clang-format off */ | ||
760 | /* | ||
761 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
762 | BOARD_InitSDHCPins: | ||
763 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
764 | - pin_list: | ||
765 | - {pin_num: D2, peripheral: SDIF, signal: SD_WR_PRT, pin_signal: PIO3_15/FC8_SCK/SD_WR_PRT} | ||
766 | - {pin_num: P1, peripheral: SDIF, signal: SD_CARD_DET, pin_signal: PIO2_10/ENET_RX_ER/SD_CARD_DET_N} | ||
767 | - {pin_num: F4, peripheral: SDIF, signal: 'SD_D, 2', pin_signal: PIO2_8/ENET_RXD2/SD_D(2)/CTIMER0_MAT0} | ||
768 | - {pin_num: J2, peripheral: SDIF, signal: 'SD_D, 1', pin_signal: PIO2_7/ENET_COL/SD_D(1)/FREQME_GPIO_CLK_B/CTIMER0_CAP1} | ||
769 | - {pin_num: F3, peripheral: SDIF, signal: 'SD_D, 0', pin_signal: PIO2_6/ENET_TX_CLK/SD_D(0)/FC1_RTS_SCL_SSEL1/CTIMER0_CAP0} | ||
770 | - {pin_num: B1, peripheral: SDIF, signal: SD_CLK, pin_signal: PIO2_3/ENET_TXD2/SD_CLK/FC1_RXD_SDA_MOSI/CTIMER2_MAT0} | ||
771 | - {pin_num: D3, peripheral: SDIF, signal: SD_CMD, pin_signal: PIO2_4/ENET_TXD3/SD_CMD/FC1_TXD_SCL_MISO/CTIMER2_MAT1} | ||
772 | - {pin_num: K2, peripheral: SDIF, signal: 'SD_D, 3', pin_signal: PIO2_9/ENET_RXD3/SD_D(3)/CTIMER0_MAT1} | ||
773 | - {pin_num: C1, peripheral: SDIF, signal: SD_POW_EN, pin_signal: PIO2_5/ENET_TX_ER/SD_POW_EN/FC1_CTS_SDA_SSEL0/CTIMER1_MAT2} | ||
774 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
775 | */ | ||
776 | /* clang-format on */ | ||
777 | |||
778 | /* FUNCTION ************************************************************************************************************ | ||
779 | * | ||
780 | * Function Name : BOARD_InitSDHCPins | ||
781 | * Description : Configures pin routing and optionally pin electrical features. | ||
782 | * | ||
783 | * END ****************************************************************************************************************/ | ||
784 | /* Function assigned for the Cortex-M4F */ | ||
785 | void BOARD_InitSDHCPins(void) | ||
786 | { | ||
787 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
788 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
789 | |||
790 | IOCON->PIO[2][10] = ((IOCON->PIO[2][10] & | ||
791 | /* Mask bits to zero which are setting */ | ||
792 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
793 | |||
794 | /* Selects pin function. | ||
795 | * : PORT210 (pin P1) is configured as SD_CARD_DET_N. */ | ||
796 | | IOCON_PIO_FUNC(PIO210_FUNC_ALT2) | ||
797 | |||
798 | /* Select Analog/Digital mode. | ||
799 | * : Digital mode. */ | ||
800 | | IOCON_PIO_DIGIMODE(PIO210_DIGIMODE_DIGITAL)); | ||
801 | |||
802 | IOCON->PIO[2][3] = ((IOCON->PIO[2][3] & | ||
803 | /* Mask bits to zero which are setting */ | ||
804 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
805 | |||
806 | /* Selects pin function. | ||
807 | * : PORT23 (pin B1) is configured as SD_CLK. */ | ||
808 | | IOCON_PIO_FUNC(PIO23_FUNC_ALT2) | ||
809 | |||
810 | /* Select Analog/Digital mode. | ||
811 | * : Digital mode. */ | ||
812 | | IOCON_PIO_DIGIMODE(PIO23_DIGIMODE_DIGITAL)); | ||
813 | |||
814 | IOCON->PIO[2][4] = ((IOCON->PIO[2][4] & | ||
815 | /* Mask bits to zero which are setting */ | ||
816 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
817 | |||
818 | /* Selects pin function. | ||
819 | * : PORT24 (pin D3) is configured as SD_CMD. */ | ||
820 | | IOCON_PIO_FUNC(PIO24_FUNC_ALT2) | ||
821 | |||
822 | /* Select Analog/Digital mode. | ||
823 | * : Digital mode. */ | ||
824 | | IOCON_PIO_DIGIMODE(PIO24_DIGIMODE_DIGITAL)); | ||
825 | |||
826 | IOCON->PIO[2][5] = ((IOCON->PIO[2][5] & | ||
827 | /* Mask bits to zero which are setting */ | ||
828 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
829 | |||
830 | /* Selects pin function. | ||
831 | * : PORT25 (pin C1) is configured as SD_POW_EN. */ | ||
832 | | IOCON_PIO_FUNC(PIO25_FUNC_ALT2) | ||
833 | |||
834 | /* Select Analog/Digital mode. | ||
835 | * : Digital mode. */ | ||
836 | | IOCON_PIO_DIGIMODE(PIO25_DIGIMODE_DIGITAL)); | ||
837 | |||
838 | IOCON->PIO[2][6] = ((IOCON->PIO[2][6] & | ||
839 | /* Mask bits to zero which are setting */ | ||
840 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
841 | |||
842 | /* Selects pin function. | ||
843 | * : PORT26 (pin F3) is configured as SD_D(0). */ | ||
844 | | IOCON_PIO_FUNC(PIO26_FUNC_ALT2) | ||
845 | |||
846 | /* Select Analog/Digital mode. | ||
847 | * : Digital mode. */ | ||
848 | | IOCON_PIO_DIGIMODE(PIO26_DIGIMODE_DIGITAL)); | ||
849 | |||
850 | IOCON->PIO[2][7] = ((IOCON->PIO[2][7] & | ||
851 | /* Mask bits to zero which are setting */ | ||
852 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
853 | |||
854 | /* Selects pin function. | ||
855 | * : PORT27 (pin J2) is configured as SD_D(1). */ | ||
856 | | IOCON_PIO_FUNC(PIO27_FUNC_ALT2) | ||
857 | |||
858 | /* Select Analog/Digital mode. | ||
859 | * : Digital mode. */ | ||
860 | | IOCON_PIO_DIGIMODE(PIO27_DIGIMODE_DIGITAL)); | ||
861 | |||
862 | IOCON->PIO[2][8] = ((IOCON->PIO[2][8] & | ||
863 | /* Mask bits to zero which are setting */ | ||
864 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
865 | |||
866 | /* Selects pin function. | ||
867 | * : PORT28 (pin F4) is configured as SD_D(2). */ | ||
868 | | IOCON_PIO_FUNC(PIO28_FUNC_ALT2) | ||
869 | |||
870 | /* Select Analog/Digital mode. | ||
871 | * : Digital mode. */ | ||
872 | | IOCON_PIO_DIGIMODE(PIO28_DIGIMODE_DIGITAL)); | ||
873 | |||
874 | IOCON->PIO[2][9] = ((IOCON->PIO[2][9] & | ||
875 | /* Mask bits to zero which are setting */ | ||
876 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
877 | |||
878 | /* Selects pin function. | ||
879 | * : PORT29 (pin K2) is configured as SD_D(3). */ | ||
880 | | IOCON_PIO_FUNC(PIO29_FUNC_ALT2) | ||
881 | |||
882 | /* Select Analog/Digital mode. | ||
883 | * : Digital mode. */ | ||
884 | | IOCON_PIO_DIGIMODE(PIO29_DIGIMODE_DIGITAL)); | ||
885 | |||
886 | IOCON->PIO[3][15] = ((IOCON->PIO[3][15] & | ||
887 | /* Mask bits to zero which are setting */ | ||
888 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
889 | |||
890 | /* Selects pin function. | ||
891 | * : PORT315 (pin D2) is configured as SD_WR_PRT. */ | ||
892 | | IOCON_PIO_FUNC(PIO315_FUNC_ALT2) | ||
893 | |||
894 | /* Select Analog/Digital mode. | ||
895 | * : Digital mode. */ | ||
896 | | IOCON_PIO_DIGIMODE(PIO315_DIGIMODE_DIGITAL)); | ||
897 | } | ||
898 | |||
899 | /* clang-format off */ | ||
900 | /* | ||
901 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
902 | BOARD_InitSDRAMPins: | ||
903 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
904 | - pin_list: | ||
905 | - {pin_num: P9, peripheral: EMC, signal: 'EMC_A, 14', pin_signal: PIO3_25/CTIMER4_CAP2/FC4_SCK/EMC_A(14)} | ||
906 | - {pin_num: M12, peripheral: EMC, signal: 'EMC_A, 13', pin_signal: PIO1_25/FC2_TXD_SCL_MISO/SCT0_OUT2/UTICK_CAP0/EMC_A(13)} | ||
907 | - {pin_num: N14, peripheral: EMC, signal: 'EMC_A, 12', pin_signal: PIO1_24/FC2_RXD_SDA_MOSI/SCT0_OUT1/FC3_SSEL3/EMC_A(12)} | ||
908 | - {pin_num: M10, peripheral: EMC, signal: 'EMC_A, 11', pin_signal: PIO1_23/FC2_SCK/SCT0_OUT0/ENET_MDIO/FC3_SSEL2/EMC_A(11)} | ||
909 | - {pin_num: B7, peripheral: EMC, signal: 'EMC_A, 10', pin_signal: PIO1_16/ENET_MDC/FC6_TXD_SCL_MISO_WS/CTIMER1_MAT3/SD_CMD/EMC_A(10)} | ||
910 | - {pin_num: F10, peripheral: EMC, signal: 'EMC_A, 9', pin_signal: PIO1_27/FC2_RTS_SCL_SSEL1/SD_D(4)/CTIMER0_MAT3/CLKOUT/EMC_A(9)} | ||
911 | - {pin_num: J10, peripheral: EMC, signal: 'EMC_A, 8', pin_signal: PIO1_26/FC2_CTS_SDA_SSEL0/SCT0_OUT3/CTIMER0_CAP3/UTICK_CAP1/EMC_A(8)} | ||
912 | - {pin_num: P8, peripheral: EMC, signal: 'EMC_A, 7', pin_signal: PIO1_8/FC0_CTS_SDA_SSEL0/SD_CLK/SCT0_OUT1/FC4_SSEL2/EMC_A(7)} | ||
913 | - {pin_num: N1, peripheral: EMC, signal: 'EMC_A, 6', pin_signal: PIO1_7/FC0_RTS_SCL_SSEL1/SD_D(1)/CTIMER2_MAT2/SCT0_GPI4/EMC_A(6)} | ||
914 | - {pin_num: G4, peripheral: EMC, signal: 'EMC_A, 5', pin_signal: PIO1_6/FC0_TXD_SCL_MISO/SD_D(3)/CTIMER2_MAT1/SCT0_GPI3/EMC_A(5)} | ||
915 | - {pin_num: E4, peripheral: EMC, signal: 'EMC_A, 4', pin_signal: PIO1_5/FC0_RXD_SDA_MOSI/SD_D(2)/CTIMER2_MAT0/SCT0_GPI0/EMC_A(4)} | ||
916 | - {pin_num: C13, peripheral: EMC, signal: 'EMC_A, 3', pin_signal: PIO0_21/FC3_RTS_SCL_SSEL1/UTICK_CAP3/CTIMER3_MAT3/SCT0_GPI3/SCI0_SCLK/EMC_A(3)/FC7_SCK} | ||
917 | - {pin_num: D13, peripheral: EMC, signal: 'EMC_A, 2', pin_signal: PIO0_20/FC3_CTS_SDA_SSEL0/CTIMER1_MAT1/CTIMER3_CAP3/SCT0_GPI2/SCI0_IO/EMC_A(2)/FC7_RXD_SDA_MOSI_DATA} | ||
918 | - {pin_num: C6, peripheral: EMC, signal: 'EMC_A, 1', pin_signal: PIO0_19/FC4_RTS_SCL_SSEL1/UTICK_CAP0/CTIMER0_MAT2/SCT0_OUT2/EMC_A(1)/FC7_TXD_SCL_MISO_WS} | ||
919 | - {pin_num: C14, peripheral: EMC, signal: 'EMC_A, 0', pin_signal: PIO0_18/FC4_CTS_SDA_SSEL0/SD_WR_PRT/CTIMER1_MAT0/SCT0_OUT1/SCI1_SCLK/EMC_A(0)} | ||
920 | - {pin_num: L4, peripheral: EMC, signal: EMC_WE, pin_signal: PIO0_15/FC6_CTS_SDA_SSEL0/UTICK_CAP2/CTIMER4_CAP0/SCT0_OUT2/EMC_WEN/ENET_TX_EN/ADC0_3} | ||
921 | - {pin_num: K6, peripheral: EMC, signal: EMC_CAS, pin_signal: PIO1_9/ENET_TXD0/FC1_SCK/CTIMER1_CAP0/SCT0_OUT2/FC4_CTS_SDA_SSEL0/EMC_CASN} | ||
922 | - {pin_num: N9, peripheral: EMC, signal: EMC_RAS, pin_signal: PIO1_10/ENET_TXD1/FC1_RXD_SDA_MOSI/CTIMER1_MAT0/SCT0_OUT3/EMC_RASN} | ||
923 | - {pin_num: K9, peripheral: EMC, signal: 'EMC_DYCS, 0', pin_signal: PIO1_12/ENET_RXD0/FC6_SCK/CTIMER1_MAT1/USB0_PORTPWRN/EMC_DYCSN(0)} | ||
924 | - {pin_num: C5, peripheral: EMC, signal: 'EMC_D, 15', pin_signal: PIO1_31/MCLK/CTIMER0_MAT2/SCT0_OUT6/FC8_CTS_SDA_SSEL0/EMC_D(15)} | ||
925 | - {pin_num: A8, peripheral: EMC, signal: 'EMC_D, 14', pin_signal: PIO1_30/FC7_TXD_SCL_MISO_WS/SD_D(7)/SCT0_GPI7/USB1_OVERCURRENTN/USB1_UP_LED/EMC_D(14)} | ||
926 | - {pin_num: C11, peripheral: EMC, signal: 'EMC_D, 13', pin_signal: PIO1_29/FC7_RXD_SDA_MOSI_DATA/SD_D(6)/SCT0_GPI6/USB1_PORTPWRN/USB1_FRAME/EMC_D(13)} | ||
927 | - {pin_num: E12, peripheral: EMC, signal: 'EMC_D, 12', pin_signal: PIO1_28/FC7_SCK/SD_D(5)/CTIMER0_CAP2/EMC_D(12)} | ||
928 | - {pin_num: D4, peripheral: EMC, signal: 'EMC_D, 11', pin_signal: PIO1_4/FC0_SCK/SD_D(0)/CTIMER2_MAT1/SCT0_OUT0/FREQME_GPIO_CLK_A/EMC_D(11)} | ||
929 | - {pin_num: N8, peripheral: EMC, signal: 'EMC_D, 10', pin_signal: PIO1_21/FC7_CTS_SDA_SSEL0/CTIMER3_MAT2/FC4_RXD_SDA_MOSI/EMC_D(10)} | ||
930 | - {pin_num: M1, peripheral: EMC, signal: 'EMC_D, 9', pin_signal: PIO1_20/FC7_RTS_SCL_SSEL1/CTIMER3_CAP2/FC4_TXD_SCL_MISO/EMC_D(9)} | ||
931 | - {pin_num: L1, peripheral: EMC, signal: 'EMC_D, 8', pin_signal: PIO1_19/FC8_SCK/SCT0_OUT7/CTIMER3_MAT1/SCT0_GPI7/FC4_SCK/EMC_D(8)} | ||
932 | - {pin_num: G12, peripheral: EMC, signal: 'EMC_D, 7', pin_signal: PIO0_9/FC3_SSEL2/SD_POW_EN/FC5_TXD_SCL_MISO/SCI1_IO/EMC_D(7)} | ||
933 | - {pin_num: H10, peripheral: EMC, signal: 'EMC_D, 6', pin_signal: PIO0_8/FC3_SSEL3/SD_CMD/FC5_RXD_SDA_MOSI/SWO/PDM1_DATA/EMC_D(6)} | ||
934 | - {pin_num: H12, peripheral: EMC, signal: 'EMC_D, 5', pin_signal: PIO0_7/FC3_RTS_SCL_SSEL1/SD_CLK/FC5_SCK/FC1_SCK/PDM1_CLK/EMC_D(5)/ENET_RX_CLK} | ||
935 | - {pin_num: A5, peripheral: EMC, signal: 'EMC_D, 4', pin_signal: PIO0_6/FC3_SCK/CTIMER3_CAP1/CTIMER4_MAT0/SCT0_GPI6/EMC_D(4)/ENET_RX_DV, identifier: EMC_D4} | ||
936 | - {pin_num: E7, peripheral: EMC, signal: 'EMC_D, 3', pin_signal: PIO0_5/CAN0_TD/FC4_RXD_SDA_MOSI/CTIMER3_MAT0/SCT0_GPI5/EMC_D(3)/ENET_MDIO, identifier: EMC_D3} | ||
937 | - {pin_num: C8, peripheral: EMC, signal: 'EMC_D, 2', pin_signal: PIO0_4/CAN0_RD/FC4_SCK/CTIMER3_CAP0/SCT0_GPI4/EMC_D(2)/ENET_MDC, identifier: EMC_D2} | ||
938 | - {pin_num: A10, peripheral: EMC, signal: 'EMC_D, 1', pin_signal: PIO0_3/FC3_RXD_SDA_MOSI/CTIMER0_MAT1/SCT0_OUT1/SCT0_GPI3/EMC_D(1), identifier: EMC_D1} | ||
939 | - {pin_num: E9, peripheral: EMC, signal: 'EMC_D, 0', pin_signal: PIO0_2/FC3_TXD_SCL_MISO/CTIMER0_CAP1/SCT0_OUT0/SCT0_GPI2/EMC_D(0), identifier: EMC_D0} | ||
940 | - {pin_num: C12, peripheral: EMC, signal: 'EMC_DQM, 1', pin_signal: PIO1_14/ENET_RX_DV/UTICK_CAP2/CTIMER1_MAT2/FC5_CTS_SDA_SSEL0/USB0_UP_LED/EMC_DQM(1)} | ||
941 | - {pin_num: G10, peripheral: EMC, signal: 'EMC_DQM, 0', pin_signal: PIO1_13/ENET_RXD1/FC6_RXD_SDA_MOSI_DATA/CTIMER1_CAP2/USB0_OVERCURRENTN/USB0_FRAME/EMC_DQM(0)} | ||
942 | - {pin_num: B4, peripheral: EMC, signal: 'EMC_CLK, 0', pin_signal: PIO1_11/ENET_TX_EN/FC1_TXD_SCL_MISO/CTIMER1_CAP1/USB0_VBUS/EMC_CLK(0)} | ||
943 | - {pin_num: A11, peripheral: EMC, signal: 'EMC_CKE, 0', pin_signal: PIO1_15/ENET_RX_CLK/UTICK_CAP3/CTIMER1_CAP3/FC5_RTS_SCL_SSEL1/FC4_RTS_SCL_SSEL1/EMC_CKE(0)} | ||
944 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
945 | */ | ||
946 | /* clang-format on */ | ||
947 | |||
948 | /* FUNCTION ************************************************************************************************************ | ||
949 | * | ||
950 | * Function Name : BOARD_InitSDRAMPins | ||
951 | * Description : Configures pin routing and optionally pin electrical features. | ||
952 | * | ||
953 | * END ****************************************************************************************************************/ | ||
954 | /* Function assigned for the Cortex-M4F */ | ||
955 | void BOARD_InitSDRAMPins(void) | ||
956 | { | ||
957 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
958 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
959 | |||
960 | IOCON->PIO[0][15] = ((IOCON->PIO[0][15] & | ||
961 | /* Mask bits to zero which are setting */ | ||
962 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
963 | |||
964 | /* Selects pin function. | ||
965 | * : PORT015 (pin L4) is configured as EMC_WEN. */ | ||
966 | | IOCON_PIO_FUNC(PIO015_FUNC_ALT6) | ||
967 | |||
968 | /* Select Analog/Digital mode. | ||
969 | * : Digital mode. */ | ||
970 | | IOCON_PIO_DIGIMODE(PIO015_DIGIMODE_DIGITAL)); | ||
971 | |||
972 | IOCON->PIO[0][18] = ((IOCON->PIO[0][18] & | ||
973 | /* Mask bits to zero which are setting */ | ||
974 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
975 | |||
976 | /* Selects pin function. | ||
977 | * : PORT018 (pin C14) is configured as EMC_A(0). */ | ||
978 | | IOCON_PIO_FUNC(PIO018_FUNC_ALT6) | ||
979 | |||
980 | /* Select Analog/Digital mode. | ||
981 | * : Digital mode. */ | ||
982 | | IOCON_PIO_DIGIMODE(PIO018_DIGIMODE_DIGITAL)); | ||
983 | |||
984 | IOCON->PIO[0][19] = ((IOCON->PIO[0][19] & | ||
985 | /* Mask bits to zero which are setting */ | ||
986 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
987 | |||
988 | /* Selects pin function. | ||
989 | * : PORT019 (pin C6) is configured as EMC_A(1). */ | ||
990 | | IOCON_PIO_FUNC(PIO019_FUNC_ALT6) | ||
991 | |||
992 | /* Select Analog/Digital mode. | ||
993 | * : Digital mode. */ | ||
994 | | IOCON_PIO_DIGIMODE(PIO019_DIGIMODE_DIGITAL)); | ||
995 | |||
996 | IOCON->PIO[0][2] = ((IOCON->PIO[0][2] & | ||
997 | /* Mask bits to zero which are setting */ | ||
998 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
999 | |||
1000 | /* Selects pin function. | ||
1001 | * : PORT02 (pin E9) is configured as EMC_D(0). */ | ||
1002 | | IOCON_PIO_FUNC(PIO02_FUNC_ALT6) | ||
1003 | |||
1004 | /* Select Analog/Digital mode. | ||
1005 | * : Digital mode. */ | ||
1006 | | IOCON_PIO_DIGIMODE(PIO02_DIGIMODE_DIGITAL)); | ||
1007 | |||
1008 | IOCON->PIO[0][20] = ((IOCON->PIO[0][20] & | ||
1009 | /* Mask bits to zero which are setting */ | ||
1010 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1011 | |||
1012 | /* Selects pin function. | ||
1013 | * : PORT020 (pin D13) is configured as EMC_A(2). */ | ||
1014 | | IOCON_PIO_FUNC(PIO020_FUNC_ALT6) | ||
1015 | |||
1016 | /* Select Analog/Digital mode. | ||
1017 | * : Digital mode. */ | ||
1018 | | IOCON_PIO_DIGIMODE(PIO020_DIGIMODE_DIGITAL)); | ||
1019 | |||
1020 | IOCON->PIO[0][21] = ((IOCON->PIO[0][21] & | ||
1021 | /* Mask bits to zero which are setting */ | ||
1022 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1023 | |||
1024 | /* Selects pin function. | ||
1025 | * : PORT021 (pin C13) is configured as EMC_A(3). */ | ||
1026 | | IOCON_PIO_FUNC(PIO021_FUNC_ALT6) | ||
1027 | |||
1028 | /* Select Analog/Digital mode. | ||
1029 | * : Digital mode. */ | ||
1030 | | IOCON_PIO_DIGIMODE(PIO021_DIGIMODE_DIGITAL)); | ||
1031 | |||
1032 | IOCON->PIO[0][3] = ((IOCON->PIO[0][3] & | ||
1033 | /* Mask bits to zero which are setting */ | ||
1034 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1035 | |||
1036 | /* Selects pin function. | ||
1037 | * : PORT03 (pin A10) is configured as EMC_D(1). */ | ||
1038 | | IOCON_PIO_FUNC(PIO03_FUNC_ALT6) | ||
1039 | |||
1040 | /* Select Analog/Digital mode. | ||
1041 | * : Digital mode. */ | ||
1042 | | IOCON_PIO_DIGIMODE(PIO03_DIGIMODE_DIGITAL)); | ||
1043 | |||
1044 | IOCON->PIO[0][4] = ((IOCON->PIO[0][4] & | ||
1045 | /* Mask bits to zero which are setting */ | ||
1046 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1047 | |||
1048 | /* Selects pin function. | ||
1049 | * : PORT04 (pin C8) is configured as EMC_D(2). */ | ||
1050 | | IOCON_PIO_FUNC(PIO04_FUNC_ALT6) | ||
1051 | |||
1052 | /* Select Analog/Digital mode. | ||
1053 | * : Digital mode. */ | ||
1054 | | IOCON_PIO_DIGIMODE(PIO04_DIGIMODE_DIGITAL)); | ||
1055 | |||
1056 | IOCON->PIO[0][5] = ((IOCON->PIO[0][5] & | ||
1057 | /* Mask bits to zero which are setting */ | ||
1058 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1059 | |||
1060 | /* Selects pin function. | ||
1061 | * : PORT05 (pin E7) is configured as EMC_D(3). */ | ||
1062 | | IOCON_PIO_FUNC(PIO05_FUNC_ALT6) | ||
1063 | |||
1064 | /* Select Analog/Digital mode. | ||
1065 | * : Digital mode. */ | ||
1066 | | IOCON_PIO_DIGIMODE(PIO05_DIGIMODE_DIGITAL)); | ||
1067 | |||
1068 | IOCON->PIO[0][6] = ((IOCON->PIO[0][6] & | ||
1069 | /* Mask bits to zero which are setting */ | ||
1070 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1071 | |||
1072 | /* Selects pin function. | ||
1073 | * : PORT06 (pin A5) is configured as EMC_D(4). */ | ||
1074 | | IOCON_PIO_FUNC(PIO06_FUNC_ALT6) | ||
1075 | |||
1076 | /* Select Analog/Digital mode. | ||
1077 | * : Digital mode. */ | ||
1078 | | IOCON_PIO_DIGIMODE(PIO06_DIGIMODE_DIGITAL)); | ||
1079 | |||
1080 | IOCON->PIO[0][7] = ((IOCON->PIO[0][7] & | ||
1081 | /* Mask bits to zero which are setting */ | ||
1082 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1083 | |||
1084 | /* Selects pin function. | ||
1085 | * : PORT07 (pin H12) is configured as EMC_D(5). */ | ||
1086 | | IOCON_PIO_FUNC(PIO07_FUNC_ALT6) | ||
1087 | |||
1088 | /* Select Analog/Digital mode. | ||
1089 | * : Digital mode. */ | ||
1090 | | IOCON_PIO_DIGIMODE(PIO07_DIGIMODE_DIGITAL)); | ||
1091 | |||
1092 | IOCON->PIO[0][8] = ((IOCON->PIO[0][8] & | ||
1093 | /* Mask bits to zero which are setting */ | ||
1094 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1095 | |||
1096 | /* Selects pin function. | ||
1097 | * : PORT08 (pin H10) is configured as EMC_D(6). */ | ||
1098 | | IOCON_PIO_FUNC(PIO08_FUNC_ALT6) | ||
1099 | |||
1100 | /* Select Analog/Digital mode. | ||
1101 | * : Digital mode. */ | ||
1102 | | IOCON_PIO_DIGIMODE(PIO08_DIGIMODE_DIGITAL)); | ||
1103 | |||
1104 | IOCON->PIO[0][9] = ((IOCON->PIO[0][9] & | ||
1105 | /* Mask bits to zero which are setting */ | ||
1106 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1107 | |||
1108 | /* Selects pin function. | ||
1109 | * : PORT09 (pin G12) is configured as EMC_D(7). */ | ||
1110 | | IOCON_PIO_FUNC(PIO09_FUNC_ALT6) | ||
1111 | |||
1112 | /* Select Analog/Digital mode. | ||
1113 | * : Digital mode. */ | ||
1114 | | IOCON_PIO_DIGIMODE(PIO09_DIGIMODE_DIGITAL)); | ||
1115 | |||
1116 | IOCON->PIO[1][10] = ((IOCON->PIO[1][10] & | ||
1117 | /* Mask bits to zero which are setting */ | ||
1118 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1119 | |||
1120 | /* Selects pin function. | ||
1121 | * : PORT110 (pin N9) is configured as EMC_RASN. */ | ||
1122 | | IOCON_PIO_FUNC(PIO110_FUNC_ALT6) | ||
1123 | |||
1124 | /* Select Analog/Digital mode. | ||
1125 | * : Digital mode. */ | ||
1126 | | IOCON_PIO_DIGIMODE(PIO110_DIGIMODE_DIGITAL)); | ||
1127 | |||
1128 | IOCON->PIO[1][11] = ((IOCON->PIO[1][11] & | ||
1129 | /* Mask bits to zero which are setting */ | ||
1130 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1131 | |||
1132 | /* Selects pin function. | ||
1133 | * : PORT111 (pin B4) is configured as EMC_CLK(0). */ | ||
1134 | | IOCON_PIO_FUNC(PIO111_FUNC_ALT6) | ||
1135 | |||
1136 | /* Select Analog/Digital mode. | ||
1137 | * : Digital mode. */ | ||
1138 | | IOCON_PIO_DIGIMODE(PIO111_DIGIMODE_DIGITAL)); | ||
1139 | |||
1140 | IOCON->PIO[1][12] = ((IOCON->PIO[1][12] & | ||
1141 | /* Mask bits to zero which are setting */ | ||
1142 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1143 | |||
1144 | /* Selects pin function. | ||
1145 | * : PORT112 (pin K9) is configured as EMC_DYCSN(0). */ | ||
1146 | | IOCON_PIO_FUNC(PIO112_FUNC_ALT6) | ||
1147 | |||
1148 | /* Select Analog/Digital mode. | ||
1149 | * : Digital mode. */ | ||
1150 | | IOCON_PIO_DIGIMODE(PIO112_DIGIMODE_DIGITAL)); | ||
1151 | |||
1152 | IOCON->PIO[1][13] = ((IOCON->PIO[1][13] & | ||
1153 | /* Mask bits to zero which are setting */ | ||
1154 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1155 | |||
1156 | /* Selects pin function. | ||
1157 | * : PORT113 (pin G10) is configured as EMC_DQM(0). */ | ||
1158 | | IOCON_PIO_FUNC(PIO113_FUNC_ALT6) | ||
1159 | |||
1160 | /* Select Analog/Digital mode. | ||
1161 | * : Digital mode. */ | ||
1162 | | IOCON_PIO_DIGIMODE(PIO113_DIGIMODE_DIGITAL)); | ||
1163 | |||
1164 | IOCON->PIO[1][14] = ((IOCON->PIO[1][14] & | ||
1165 | /* Mask bits to zero which are setting */ | ||
1166 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1167 | |||
1168 | /* Selects pin function. | ||
1169 | * : PORT114 (pin C12) is configured as EMC_DQM(1). */ | ||
1170 | | IOCON_PIO_FUNC(PIO114_FUNC_ALT6) | ||
1171 | |||
1172 | /* Select Analog/Digital mode. | ||
1173 | * : Digital mode. */ | ||
1174 | | IOCON_PIO_DIGIMODE(PIO114_DIGIMODE_DIGITAL)); | ||
1175 | |||
1176 | IOCON->PIO[1][15] = ((IOCON->PIO[1][15] & | ||
1177 | /* Mask bits to zero which are setting */ | ||
1178 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1179 | |||
1180 | /* Selects pin function. | ||
1181 | * : PORT115 (pin A11) is configured as EMC_CKE(0). */ | ||
1182 | | IOCON_PIO_FUNC(PIO115_FUNC_ALT6) | ||
1183 | |||
1184 | /* Select Analog/Digital mode. | ||
1185 | * : Digital mode. */ | ||
1186 | | IOCON_PIO_DIGIMODE(PIO115_DIGIMODE_DIGITAL)); | ||
1187 | |||
1188 | IOCON->PIO[1][16] = ((IOCON->PIO[1][16] & | ||
1189 | /* Mask bits to zero which are setting */ | ||
1190 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1191 | |||
1192 | /* Selects pin function. | ||
1193 | * : PORT116 (pin B7) is configured as EMC_A(10). */ | ||
1194 | | IOCON_PIO_FUNC(PIO116_FUNC_ALT6) | ||
1195 | |||
1196 | /* Select Analog/Digital mode. | ||
1197 | * : Digital mode. */ | ||
1198 | | IOCON_PIO_DIGIMODE(PIO116_DIGIMODE_DIGITAL)); | ||
1199 | |||
1200 | IOCON->PIO[1][19] = ((IOCON->PIO[1][19] & | ||
1201 | /* Mask bits to zero which are setting */ | ||
1202 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1203 | |||
1204 | /* Selects pin function. | ||
1205 | * : PORT119 (pin L1) is configured as EMC_D(8). */ | ||
1206 | | IOCON_PIO_FUNC(PIO119_FUNC_ALT6) | ||
1207 | |||
1208 | /* Select Analog/Digital mode. | ||
1209 | * : Digital mode. */ | ||
1210 | | IOCON_PIO_DIGIMODE(PIO119_DIGIMODE_DIGITAL)); | ||
1211 | |||
1212 | IOCON->PIO[1][20] = ((IOCON->PIO[1][20] & | ||
1213 | /* Mask bits to zero which are setting */ | ||
1214 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1215 | |||
1216 | /* Selects pin function. | ||
1217 | * : PORT120 (pin M1) is configured as EMC_D(9). */ | ||
1218 | | IOCON_PIO_FUNC(PIO120_FUNC_ALT6) | ||
1219 | |||
1220 | /* Select Analog/Digital mode. | ||
1221 | * : Digital mode. */ | ||
1222 | | IOCON_PIO_DIGIMODE(PIO120_DIGIMODE_DIGITAL)); | ||
1223 | |||
1224 | IOCON->PIO[1][21] = ((IOCON->PIO[1][21] & | ||
1225 | /* Mask bits to zero which are setting */ | ||
1226 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1227 | |||
1228 | /* Selects pin function. | ||
1229 | * : PORT121 (pin N8) is configured as EMC_D(10). */ | ||
1230 | | IOCON_PIO_FUNC(PIO121_FUNC_ALT6) | ||
1231 | |||
1232 | /* Select Analog/Digital mode. | ||
1233 | * : Digital mode. */ | ||
1234 | | IOCON_PIO_DIGIMODE(PIO121_DIGIMODE_DIGITAL)); | ||
1235 | |||
1236 | IOCON->PIO[1][23] = ((IOCON->PIO[1][23] & | ||
1237 | /* Mask bits to zero which are setting */ | ||
1238 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1239 | |||
1240 | /* Selects pin function. | ||
1241 | * : PORT123 (pin M10) is configured as EMC_A(11). */ | ||
1242 | | IOCON_PIO_FUNC(PIO123_FUNC_ALT6) | ||
1243 | |||
1244 | /* Select Analog/Digital mode. | ||
1245 | * : Digital mode. */ | ||
1246 | | IOCON_PIO_DIGIMODE(PIO123_DIGIMODE_DIGITAL)); | ||
1247 | |||
1248 | IOCON->PIO[1][24] = ((IOCON->PIO[1][24] & | ||
1249 | /* Mask bits to zero which are setting */ | ||
1250 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1251 | |||
1252 | /* Selects pin function. | ||
1253 | * : PORT124 (pin N14) is configured as EMC_A(12). */ | ||
1254 | | IOCON_PIO_FUNC(PIO124_FUNC_ALT6) | ||
1255 | |||
1256 | /* Select Analog/Digital mode. | ||
1257 | * : Digital mode. */ | ||
1258 | | IOCON_PIO_DIGIMODE(PIO124_DIGIMODE_DIGITAL)); | ||
1259 | |||
1260 | IOCON->PIO[1][25] = ((IOCON->PIO[1][25] & | ||
1261 | /* Mask bits to zero which are setting */ | ||
1262 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1263 | |||
1264 | /* Selects pin function. | ||
1265 | * : PORT125 (pin M12) is configured as EMC_A(13). */ | ||
1266 | | IOCON_PIO_FUNC(PIO125_FUNC_ALT6) | ||
1267 | |||
1268 | /* Select Analog/Digital mode. | ||
1269 | * : Digital mode. */ | ||
1270 | | IOCON_PIO_DIGIMODE(PIO125_DIGIMODE_DIGITAL)); | ||
1271 | |||
1272 | IOCON->PIO[1][26] = ((IOCON->PIO[1][26] & | ||
1273 | /* Mask bits to zero which are setting */ | ||
1274 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1275 | |||
1276 | /* Selects pin function. | ||
1277 | * : PORT126 (pin J10) is configured as EMC_A(8). */ | ||
1278 | | IOCON_PIO_FUNC(PIO126_FUNC_ALT6) | ||
1279 | |||
1280 | /* Select Analog/Digital mode. | ||
1281 | * : Digital mode. */ | ||
1282 | | IOCON_PIO_DIGIMODE(PIO126_DIGIMODE_DIGITAL)); | ||
1283 | |||
1284 | IOCON->PIO[1][27] = ((IOCON->PIO[1][27] & | ||
1285 | /* Mask bits to zero which are setting */ | ||
1286 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1287 | |||
1288 | /* Selects pin function. | ||
1289 | * : PORT127 (pin F10) is configured as EMC_A(9). */ | ||
1290 | | IOCON_PIO_FUNC(PIO127_FUNC_ALT6) | ||
1291 | |||
1292 | /* Select Analog/Digital mode. | ||
1293 | * : Digital mode. */ | ||
1294 | | IOCON_PIO_DIGIMODE(PIO127_DIGIMODE_DIGITAL)); | ||
1295 | |||
1296 | IOCON->PIO[1][28] = ((IOCON->PIO[1][28] & | ||
1297 | /* Mask bits to zero which are setting */ | ||
1298 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1299 | |||
1300 | /* Selects pin function. | ||
1301 | * : PORT128 (pin E12) is configured as EMC_D(12). */ | ||
1302 | | IOCON_PIO_FUNC(PIO128_FUNC_ALT6) | ||
1303 | |||
1304 | /* Select Analog/Digital mode. | ||
1305 | * : Digital mode. */ | ||
1306 | | IOCON_PIO_DIGIMODE(PIO128_DIGIMODE_DIGITAL)); | ||
1307 | |||
1308 | IOCON->PIO[1][29] = ((IOCON->PIO[1][29] & | ||
1309 | /* Mask bits to zero which are setting */ | ||
1310 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1311 | |||
1312 | /* Selects pin function. | ||
1313 | * : PORT129 (pin C11) is configured as EMC_D(13). */ | ||
1314 | | IOCON_PIO_FUNC(PIO129_FUNC_ALT6) | ||
1315 | |||
1316 | /* Select Analog/Digital mode. | ||
1317 | * : Digital mode. */ | ||
1318 | | IOCON_PIO_DIGIMODE(PIO129_DIGIMODE_DIGITAL)); | ||
1319 | |||
1320 | IOCON->PIO[1][30] = ((IOCON->PIO[1][30] & | ||
1321 | /* Mask bits to zero which are setting */ | ||
1322 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1323 | |||
1324 | /* Selects pin function. | ||
1325 | * : PORT130 (pin A8) is configured as EMC_D(14). */ | ||
1326 | | IOCON_PIO_FUNC(PIO130_FUNC_ALT6) | ||
1327 | |||
1328 | /* Select Analog/Digital mode. | ||
1329 | * : Digital mode. */ | ||
1330 | | IOCON_PIO_DIGIMODE(PIO130_DIGIMODE_DIGITAL)); | ||
1331 | |||
1332 | IOCON->PIO[1][31] = ((IOCON->PIO[1][31] & | ||
1333 | /* Mask bits to zero which are setting */ | ||
1334 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1335 | |||
1336 | /* Selects pin function. | ||
1337 | * : PORT131 (pin C5) is configured as EMC_D(15). */ | ||
1338 | | IOCON_PIO_FUNC(PIO131_FUNC_ALT6) | ||
1339 | |||
1340 | /* Select Analog/Digital mode. | ||
1341 | * : Digital mode. */ | ||
1342 | | IOCON_PIO_DIGIMODE(PIO131_DIGIMODE_DIGITAL)); | ||
1343 | |||
1344 | IOCON->PIO[1][4] = ((IOCON->PIO[1][4] & | ||
1345 | /* Mask bits to zero which are setting */ | ||
1346 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1347 | |||
1348 | /* Selects pin function. | ||
1349 | * : PORT14 (pin D4) is configured as EMC_D(11). */ | ||
1350 | | IOCON_PIO_FUNC(PIO14_FUNC_ALT6) | ||
1351 | |||
1352 | /* Select Analog/Digital mode. | ||
1353 | * : Digital mode. */ | ||
1354 | | IOCON_PIO_DIGIMODE(PIO14_DIGIMODE_DIGITAL)); | ||
1355 | |||
1356 | IOCON->PIO[1][5] = ((IOCON->PIO[1][5] & | ||
1357 | /* Mask bits to zero which are setting */ | ||
1358 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1359 | |||
1360 | /* Selects pin function. | ||
1361 | * : PORT15 (pin E4) is configured as EMC_A(4). */ | ||
1362 | | IOCON_PIO_FUNC(PIO15_FUNC_ALT6) | ||
1363 | |||
1364 | /* Select Analog/Digital mode. | ||
1365 | * : Digital mode. */ | ||
1366 | | IOCON_PIO_DIGIMODE(PIO15_DIGIMODE_DIGITAL)); | ||
1367 | |||
1368 | IOCON->PIO[1][6] = ((IOCON->PIO[1][6] & | ||
1369 | /* Mask bits to zero which are setting */ | ||
1370 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1371 | |||
1372 | /* Selects pin function. | ||
1373 | * : PORT16 (pin G4) is configured as EMC_A(5). */ | ||
1374 | | IOCON_PIO_FUNC(PIO16_FUNC_ALT6) | ||
1375 | |||
1376 | /* Select Analog/Digital mode. | ||
1377 | * : Digital mode. */ | ||
1378 | | IOCON_PIO_DIGIMODE(PIO16_DIGIMODE_DIGITAL)); | ||
1379 | |||
1380 | IOCON->PIO[1][7] = ((IOCON->PIO[1][7] & | ||
1381 | /* Mask bits to zero which are setting */ | ||
1382 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1383 | |||
1384 | /* Selects pin function. | ||
1385 | * : PORT17 (pin N1) is configured as EMC_A(6). */ | ||
1386 | | IOCON_PIO_FUNC(PIO17_FUNC_ALT6) | ||
1387 | |||
1388 | /* Select Analog/Digital mode. | ||
1389 | * : Digital mode. */ | ||
1390 | | IOCON_PIO_DIGIMODE(PIO17_DIGIMODE_DIGITAL)); | ||
1391 | |||
1392 | IOCON->PIO[1][8] = ((IOCON->PIO[1][8] & | ||
1393 | /* Mask bits to zero which are setting */ | ||
1394 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1395 | |||
1396 | /* Selects pin function. | ||
1397 | * : PORT18 (pin P8) is configured as EMC_A(7). */ | ||
1398 | | IOCON_PIO_FUNC(PIO18_FUNC_ALT6) | ||
1399 | |||
1400 | /* Select Analog/Digital mode. | ||
1401 | * : Digital mode. */ | ||
1402 | | IOCON_PIO_DIGIMODE(PIO18_DIGIMODE_DIGITAL)); | ||
1403 | |||
1404 | IOCON->PIO[1][9] = ((IOCON->PIO[1][9] & | ||
1405 | /* Mask bits to zero which are setting */ | ||
1406 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1407 | |||
1408 | /* Selects pin function. | ||
1409 | * : PORT19 (pin K6) is configured as EMC_CASN. */ | ||
1410 | | IOCON_PIO_FUNC(PIO19_FUNC_ALT6) | ||
1411 | |||
1412 | /* Select Analog/Digital mode. | ||
1413 | * : Digital mode. */ | ||
1414 | | IOCON_PIO_DIGIMODE(PIO19_DIGIMODE_DIGITAL)); | ||
1415 | |||
1416 | IOCON->PIO[3][25] = ((IOCON->PIO[3][25] & | ||
1417 | /* Mask bits to zero which are setting */ | ||
1418 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1419 | |||
1420 | /* Selects pin function. | ||
1421 | * : PORT325 (pin P9) is configured as EMC_A(14). */ | ||
1422 | | IOCON_PIO_FUNC(PIO325_FUNC_ALT6) | ||
1423 | |||
1424 | /* Select Analog/Digital mode. | ||
1425 | * : Digital mode. */ | ||
1426 | | IOCON_PIO_DIGIMODE(PIO325_DIGIMODE_DIGITAL)); | ||
1427 | } | ||
1428 | |||
1429 | /* clang-format off */ | ||
1430 | /* | ||
1431 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
1432 | BOARD_InitUSBPins: | ||
1433 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
1434 | - pin_list: | ||
1435 | - {pin_num: H3, peripheral: USBHSH, signal: USB_DP, pin_signal: USB1_DP} | ||
1436 | - {pin_num: H2, peripheral: USBHSH, signal: USB_DM, pin_signal: USB1_DM} | ||
1437 | - {pin_num: D5, peripheral: USBFSH, signal: USB_DM, pin_signal: USB0_DM} | ||
1438 | - {pin_num: E5, peripheral: USBFSH, signal: USB_DP, pin_signal: USB0_DP} | ||
1439 | - {pin_num: G2, peripheral: USBHSH, signal: USB_VBUS, pin_signal: USB1_VBUS} | ||
1440 | - {pin_num: B12, peripheral: USBFSH, signal: USB_VBUS, pin_signal: PIO0_22/FC6_TXD_SCL_MISO_WS/UTICK_CAP1/CTIMER3_CAP3/SCT0_OUT3/USB0_VBUS} | ||
1441 | - {pin_num: G1, peripheral: USBHSH, signal: USB_IDVALUE, pin_signal: USB1_ID} | ||
1442 | - {pin_num: A9, peripheral: USBFSH, signal: USB_IDVALUE, pin_signal: PIO4_11/ENET_RXD0/FC2_CTS_SDA_SSEL0/USB0_IDVALUE/SCT0_GPI4, identifier: ENET_RXD0} | ||
1443 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
1444 | */ | ||
1445 | /* clang-format on */ | ||
1446 | |||
1447 | /* FUNCTION ************************************************************************************************************ | ||
1448 | * | ||
1449 | * Function Name : BOARD_InitUSBPins | ||
1450 | * Description : Configures pin routing and optionally pin electrical features. | ||
1451 | * | ||
1452 | * END ****************************************************************************************************************/ | ||
1453 | /* Function assigned for the Cortex-M4F */ | ||
1454 | void BOARD_InitUSBPins(void) | ||
1455 | { | ||
1456 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
1457 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
1458 | |||
1459 | IOCON->PIO[0][22] = ((IOCON->PIO[0][22] & | ||
1460 | /* Mask bits to zero which are setting */ | ||
1461 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1462 | |||
1463 | /* Selects pin function. | ||
1464 | * : PORT022 (pin B12) is configured as USB0_VBUS. */ | ||
1465 | | IOCON_PIO_FUNC(PIO022_FUNC_ALT7) | ||
1466 | |||
1467 | /* Select Analog/Digital mode. | ||
1468 | * : Digital mode. */ | ||
1469 | | IOCON_PIO_DIGIMODE(PIO022_DIGIMODE_DIGITAL)); | ||
1470 | |||
1471 | IOCON->PIO[4][11] = ((IOCON->PIO[4][11] & | ||
1472 | /* Mask bits to zero which are setting */ | ||
1473 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1474 | |||
1475 | /* Selects pin function. | ||
1476 | * : PORT411 (pin A9) is configured as USB0_IDVALUE. */ | ||
1477 | | IOCON_PIO_FUNC(PIO411_FUNC_ALT3) | ||
1478 | |||
1479 | /* Select Analog/Digital mode. | ||
1480 | * : Digital mode. */ | ||
1481 | | IOCON_PIO_DIGIMODE(PIO411_DIGIMODE_DIGITAL)); | ||
1482 | } | ||
1483 | |||
1484 | /* clang-format off */ | ||
1485 | /* | ||
1486 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
1487 | BOARD_InitDEBUG_UARTPins: | ||
1488 | - options: {callFromInitBoot: 'true', prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
1489 | - pin_list: | ||
1490 | - {pin_num: B13, peripheral: FLEXCOMM0, signal: RXD_SDA_MOSI, pin_signal: PIO0_29/FC0_RXD_SDA_MOSI/CTIMER2_MAT3/SCT0_OUT8/TRACEDATA(2), direction: INPUT} | ||
1491 | - {pin_num: A2, peripheral: FLEXCOMM0, signal: TXD_SCL_MISO, pin_signal: PIO0_30/FC0_TXD_SCL_MISO/CTIMER0_MAT0/SCT0_OUT9/TRACEDATA(1), direction: OUTPUT} | ||
1492 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
1493 | */ | ||
1494 | /* clang-format on */ | ||
1495 | |||
1496 | /* FUNCTION ************************************************************************************************************ | ||
1497 | * | ||
1498 | * Function Name : BOARD_InitDEBUG_UARTPins | ||
1499 | * Description : Configures pin routing and optionally pin electrical features. | ||
1500 | * | ||
1501 | * END ****************************************************************************************************************/ | ||
1502 | /* Function assigned for the Cortex-M4F */ | ||
1503 | void BOARD_InitDEBUG_UARTPins(void) | ||
1504 | { | ||
1505 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
1506 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
1507 | |||
1508 | IOCON->PIO[0][29] = ((IOCON->PIO[0][29] & | ||
1509 | /* Mask bits to zero which are setting */ | ||
1510 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1511 | |||
1512 | /* Selects pin function. | ||
1513 | * : PORT029 (pin B13) is configured as FC0_RXD_SDA_MOSI. */ | ||
1514 | | IOCON_PIO_FUNC(PIO029_FUNC_ALT1) | ||
1515 | |||
1516 | /* Select Analog/Digital mode. | ||
1517 | * : Digital mode. */ | ||
1518 | | IOCON_PIO_DIGIMODE(PIO029_DIGIMODE_DIGITAL)); | ||
1519 | |||
1520 | IOCON->PIO[0][30] = ((IOCON->PIO[0][30] & | ||
1521 | /* Mask bits to zero which are setting */ | ||
1522 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1523 | |||
1524 | /* Selects pin function. | ||
1525 | * : PORT030 (pin A2) is configured as FC0_TXD_SCL_MISO. */ | ||
1526 | | IOCON_PIO_FUNC(PIO030_FUNC_ALT1) | ||
1527 | |||
1528 | /* Select Analog/Digital mode. | ||
1529 | * : Digital mode. */ | ||
1530 | | IOCON_PIO_DIGIMODE(PIO030_DIGIMODE_DIGITAL)); | ||
1531 | } | ||
1532 | |||
1533 | /* clang-format off */ | ||
1534 | /* | ||
1535 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
1536 | BOARD_InitSWD_DEBUGPins: | ||
1537 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
1538 | - pin_list: | ||
1539 | - {pin_num: M3, peripheral: SWD, signal: SWDIO, pin_signal: PIO0_12/FC3_TXD_SCL_MISO/FREQME_GPIO_CLK_B/SCT0_GPI7/SWDIO/ADC0_2} | ||
1540 | - {pin_num: L3, peripheral: SWD, signal: SWCLK, pin_signal: PIO0_11/FC6_RXD_SDA_MOSI_DATA/CTIMER2_MAT2/FREQME_GPIO_CLK_A/SWCLK/ADC0_1} | ||
1541 | - {pin_num: P2, peripheral: SWD, signal: SWO, pin_signal: PIO0_10/FC6_SCK/CTIMER2_CAP2/CTIMER2_MAT0/FC1_TXD_SCL_MISO/SWO/ADC0_0} | ||
1542 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
1543 | */ | ||
1544 | /* clang-format on */ | ||
1545 | |||
1546 | /* FUNCTION ************************************************************************************************************ | ||
1547 | * | ||
1548 | * Function Name : BOARD_InitSWD_DEBUGPins | ||
1549 | * Description : Configures pin routing and optionally pin electrical features. | ||
1550 | * | ||
1551 | * END ****************************************************************************************************************/ | ||
1552 | /* Function assigned for the Cortex-M4F */ | ||
1553 | void BOARD_InitSWD_DEBUGPins(void) | ||
1554 | { | ||
1555 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
1556 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
1557 | |||
1558 | IOCON->PIO[0][10] = ((IOCON->PIO[0][10] & | ||
1559 | /* Mask bits to zero which are setting */ | ||
1560 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1561 | |||
1562 | /* Selects pin function. | ||
1563 | * : PORT010 (pin P2) is configured as SWO. */ | ||
1564 | | IOCON_PIO_FUNC(PIO010_FUNC_ALT6) | ||
1565 | |||
1566 | /* Select Analog/Digital mode. | ||
1567 | * : Digital mode. */ | ||
1568 | | IOCON_PIO_DIGIMODE(PIO010_DIGIMODE_DIGITAL)); | ||
1569 | |||
1570 | IOCON->PIO[0][11] = ((IOCON->PIO[0][11] & | ||
1571 | /* Mask bits to zero which are setting */ | ||
1572 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1573 | |||
1574 | /* Selects pin function. | ||
1575 | * : PORT011 (pin L3) is configured as SWCLK. */ | ||
1576 | | IOCON_PIO_FUNC(PIO011_FUNC_ALT6) | ||
1577 | |||
1578 | /* Select Analog/Digital mode. | ||
1579 | * : Digital mode. */ | ||
1580 | | IOCON_PIO_DIGIMODE(PIO011_DIGIMODE_DIGITAL)); | ||
1581 | |||
1582 | IOCON->PIO[0][12] = ((IOCON->PIO[0][12] & | ||
1583 | /* Mask bits to zero which are setting */ | ||
1584 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1585 | |||
1586 | /* Selects pin function. | ||
1587 | * : PORT012 (pin M3) is configured as SWDIO. */ | ||
1588 | | IOCON_PIO_FUNC(PIO012_FUNC_ALT6) | ||
1589 | |||
1590 | /* Select Analog/Digital mode. | ||
1591 | * : Digital mode. */ | ||
1592 | | IOCON_PIO_DIGIMODE(PIO012_DIGIMODE_DIGITAL)); | ||
1593 | } | ||
1594 | |||
1595 | /* clang-format off */ | ||
1596 | /* | ||
1597 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
1598 | BOARD_InitLCDPins: | ||
1599 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
1600 | - pin_list: | ||
1601 | - {pin_num: K3, peripheral: LCD, signal: LCD_PWR, pin_signal: PIO2_11/LCD_PWR/SD_VOLT(0)/FC5_SCK} | ||
1602 | - {pin_num: L7, peripheral: LCD, signal: LCD_FP, pin_signal: PIO2_14/LCD_FP/USB0_FRAME/USB0_PORTPWRN/CTIMER0_MAT2/FC5_CTS_SDA_SSEL0} | ||
1603 | - {pin_num: P7, peripheral: LCD, signal: LCD_DCLK, pin_signal: PIO2_13/LCD_DCLK/SD_VOLT(2)/FC5_TXD_SCL_MISO} | ||
1604 | - {pin_num: L8, peripheral: LCD, signal: LCD_LP, pin_signal: PIO2_16/LCD_LP/USB1_FRAME/USB1_PORTPWRN/CTIMER1_MAT3/FC8_SCK} | ||
1605 | - {pin_num: M8, peripheral: LCD, signal: LCD_AC, pin_signal: PIO2_15/LCD_AC/USB0_UP_LED/USB0_OVERCURRENTN/CTIMER0_MAT3/FC5_RTS_SCL_SSEL1} | ||
1606 | - {pin_num: K10, peripheral: LCD, signal: 'LCD_VD, 4', pin_signal: PIO2_22/LCD_VD(4)/SCT0_OUT7/CTIMER2_CAP0} | ||
1607 | - {pin_num: L10, peripheral: LCD, signal: 'LCD_VD, 3', pin_signal: PIO2_21/LCD_VD(3)/FC3_CTS_SDA_SSEL0/MCLK/CTIMER3_MAT3} | ||
1608 | - {pin_num: G11, peripheral: LCD, signal: 'LCD_VD, 11', pin_signal: PIO2_29/LCD_VD(11)/FC7_RTS_SCL_SSEL1/FC8_TXD_SCL_MISO/CTIMER2_CAP3/CLKOUT} | ||
1609 | - {pin_num: J11, peripheral: LCD, signal: 'LCD_VD, 7', pin_signal: PIO2_25/LCD_VD(7)/USB0_VBUS} | ||
1610 | - {pin_num: F12, peripheral: LCD, signal: 'LCD_VD, 12', pin_signal: PIO2_30/LCD_VD(12)/CTIMER2_MAT2} | ||
1611 | - {pin_num: G13, peripheral: LCD, signal: 'LCD_VD, 10', pin_signal: PIO2_28/LCD_VD(10)/FC7_CTS_SDA_SSEL0/CTIMER2_CAP2} | ||
1612 | - {pin_num: D14, peripheral: LCD, signal: 'LCD_VD, 13', pin_signal: PIO2_31/LCD_VD(13)} | ||
1613 | - {pin_num: K14, peripheral: LCD, signal: 'LCD_VD, 6', pin_signal: PIO2_24/LCD_VD(6)/SCT0_OUT9} | ||
1614 | - {pin_num: M14, peripheral: LCD, signal: 'LCD_VD, 5', pin_signal: PIO2_23/LCD_VD(5)/SCT0_OUT8} | ||
1615 | - {pin_num: D12, peripheral: LCD, signal: 'LCD_VD, 14', pin_signal: PIO3_0/LCD_VD(14)/PDM0_CLK/CTIMER1_MAT0} | ||
1616 | - {pin_num: D11, peripheral: LCD, signal: 'LCD_VD, 15', pin_signal: PIO3_1/LCD_VD(15)/PDM0_DATA/CTIMER1_MAT1} | ||
1617 | - {pin_num: B10, peripheral: LCD, signal: 'LCD_VD, 19', pin_signal: PIO3_5/LCD_VD(19)/FC8_RTS_SCL_SSEL1/CTIMER4_MAT1} | ||
1618 | - {pin_num: C9, peripheral: LCD, signal: 'LCD_VD, 20', pin_signal: PIO3_6/LCD_VD(20)/LCD_VD(0)/CTIMER4_MAT2} | ||
1619 | - {pin_num: B8, peripheral: LCD, signal: 'LCD_VD, 21', pin_signal: PIO3_7/LCD_VD(21)/LCD_VD(1)/CTIMER4_CAP2} | ||
1620 | - {pin_num: A7, peripheral: LCD, signal: 'LCD_VD, 22', pin_signal: PIO3_8/LCD_VD(22)/LCD_VD(2)/CTIMER4_CAP3} | ||
1621 | - {pin_num: C7, peripheral: LCD, signal: 'LCD_VD, 23', pin_signal: PIO3_9/LCD_VD(23)/LCD_VD(3)/CTIMER0_CAP2} | ||
1622 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
1623 | */ | ||
1624 | /* clang-format on */ | ||
1625 | |||
1626 | /* FUNCTION ************************************************************************************************************ | ||
1627 | * | ||
1628 | * Function Name : BOARD_InitLCDPins | ||
1629 | * Description : Configures pin routing and optionally pin electrical features. | ||
1630 | * | ||
1631 | * END ****************************************************************************************************************/ | ||
1632 | /* Function assigned for the Cortex-M4F */ | ||
1633 | void BOARD_InitLCDPins(void) | ||
1634 | { | ||
1635 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
1636 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
1637 | |||
1638 | IOCON->PIO[2][11] = ((IOCON->PIO[2][11] & | ||
1639 | /* Mask bits to zero which are setting */ | ||
1640 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1641 | |||
1642 | /* Selects pin function. | ||
1643 | * : PORT211 (pin K3) is configured as LCD_PWR. */ | ||
1644 | | IOCON_PIO_FUNC(PIO211_FUNC_ALT1) | ||
1645 | |||
1646 | /* Select Analog/Digital mode. | ||
1647 | * : Digital mode. */ | ||
1648 | | IOCON_PIO_DIGIMODE(PIO211_DIGIMODE_DIGITAL)); | ||
1649 | |||
1650 | IOCON->PIO[2][13] = ((IOCON->PIO[2][13] & | ||
1651 | /* Mask bits to zero which are setting */ | ||
1652 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1653 | |||
1654 | /* Selects pin function. | ||
1655 | * : PORT213 (pin P7) is configured as LCD_DCLK. */ | ||
1656 | | IOCON_PIO_FUNC(PIO213_FUNC_ALT1) | ||
1657 | |||
1658 | /* Select Analog/Digital mode. | ||
1659 | * : Digital mode. */ | ||
1660 | | IOCON_PIO_DIGIMODE(PIO213_DIGIMODE_DIGITAL)); | ||
1661 | |||
1662 | IOCON->PIO[2][14] = ((IOCON->PIO[2][14] & | ||
1663 | /* Mask bits to zero which are setting */ | ||
1664 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1665 | |||
1666 | /* Selects pin function. | ||
1667 | * : PORT214 (pin L7) is configured as LCD_FP. */ | ||
1668 | | IOCON_PIO_FUNC(PIO214_FUNC_ALT1) | ||
1669 | |||
1670 | /* Select Analog/Digital mode. | ||
1671 | * : Digital mode. */ | ||
1672 | | IOCON_PIO_DIGIMODE(PIO214_DIGIMODE_DIGITAL)); | ||
1673 | |||
1674 | IOCON->PIO[2][15] = ((IOCON->PIO[2][15] & | ||
1675 | /* Mask bits to zero which are setting */ | ||
1676 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1677 | |||
1678 | /* Selects pin function. | ||
1679 | * : PORT215 (pin M8) is configured as LCD_AC. */ | ||
1680 | | IOCON_PIO_FUNC(PIO215_FUNC_ALT1) | ||
1681 | |||
1682 | /* Select Analog/Digital mode. | ||
1683 | * : Digital mode. */ | ||
1684 | | IOCON_PIO_DIGIMODE(PIO215_DIGIMODE_DIGITAL)); | ||
1685 | |||
1686 | IOCON->PIO[2][16] = ((IOCON->PIO[2][16] & | ||
1687 | /* Mask bits to zero which are setting */ | ||
1688 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1689 | |||
1690 | /* Selects pin function. | ||
1691 | * : PORT216 (pin L8) is configured as LCD_LP. */ | ||
1692 | | IOCON_PIO_FUNC(PIO216_FUNC_ALT1) | ||
1693 | |||
1694 | /* Select Analog/Digital mode. | ||
1695 | * : Digital mode. */ | ||
1696 | | IOCON_PIO_DIGIMODE(PIO216_DIGIMODE_DIGITAL)); | ||
1697 | |||
1698 | IOCON->PIO[2][21] = ((IOCON->PIO[2][21] & | ||
1699 | /* Mask bits to zero which are setting */ | ||
1700 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1701 | |||
1702 | /* Selects pin function. | ||
1703 | * : PORT221 (pin L10) is configured as LCD_VD(3). */ | ||
1704 | | IOCON_PIO_FUNC(PIO221_FUNC_ALT1) | ||
1705 | |||
1706 | /* Select Analog/Digital mode. | ||
1707 | * : Digital mode. */ | ||
1708 | | IOCON_PIO_DIGIMODE(PIO221_DIGIMODE_DIGITAL)); | ||
1709 | |||
1710 | IOCON->PIO[2][22] = ((IOCON->PIO[2][22] & | ||
1711 | /* Mask bits to zero which are setting */ | ||
1712 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1713 | |||
1714 | /* Selects pin function. | ||
1715 | * : PORT222 (pin K10) is configured as LCD_VD(4). */ | ||
1716 | | IOCON_PIO_FUNC(PIO222_FUNC_ALT1) | ||
1717 | |||
1718 | /* Select Analog/Digital mode. | ||
1719 | * : Digital mode. */ | ||
1720 | | IOCON_PIO_DIGIMODE(PIO222_DIGIMODE_DIGITAL)); | ||
1721 | |||
1722 | IOCON->PIO[2][23] = ((IOCON->PIO[2][23] & | ||
1723 | /* Mask bits to zero which are setting */ | ||
1724 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1725 | |||
1726 | /* Selects pin function. | ||
1727 | * : PORT223 (pin M14) is configured as LCD_VD(5). */ | ||
1728 | | IOCON_PIO_FUNC(PIO223_FUNC_ALT1) | ||
1729 | |||
1730 | /* Select Analog/Digital mode. | ||
1731 | * : Digital mode. */ | ||
1732 | | IOCON_PIO_DIGIMODE(PIO223_DIGIMODE_DIGITAL)); | ||
1733 | |||
1734 | IOCON->PIO[2][24] = ((IOCON->PIO[2][24] & | ||
1735 | /* Mask bits to zero which are setting */ | ||
1736 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1737 | |||
1738 | /* Selects pin function. | ||
1739 | * : PORT224 (pin K14) is configured as LCD_VD(6). */ | ||
1740 | | IOCON_PIO_FUNC(PIO224_FUNC_ALT1) | ||
1741 | |||
1742 | /* Select Analog/Digital mode. | ||
1743 | * : Digital mode. */ | ||
1744 | | IOCON_PIO_DIGIMODE(PIO224_DIGIMODE_DIGITAL)); | ||
1745 | |||
1746 | IOCON->PIO[2][25] = ((IOCON->PIO[2][25] & | ||
1747 | /* Mask bits to zero which are setting */ | ||
1748 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1749 | |||
1750 | /* Selects pin function. | ||
1751 | * : PORT225 (pin J11) is configured as LCD_VD(7). */ | ||
1752 | | IOCON_PIO_FUNC(PIO225_FUNC_ALT1) | ||
1753 | |||
1754 | /* Select Analog/Digital mode. | ||
1755 | * : Digital mode. */ | ||
1756 | | IOCON_PIO_DIGIMODE(PIO225_DIGIMODE_DIGITAL)); | ||
1757 | |||
1758 | IOCON->PIO[2][28] = ((IOCON->PIO[2][28] & | ||
1759 | /* Mask bits to zero which are setting */ | ||
1760 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1761 | |||
1762 | /* Selects pin function. | ||
1763 | * : PORT228 (pin G13) is configured as LCD_VD(10). */ | ||
1764 | | IOCON_PIO_FUNC(PIO228_FUNC_ALT1) | ||
1765 | |||
1766 | /* Select Analog/Digital mode. | ||
1767 | * : Digital mode. */ | ||
1768 | | IOCON_PIO_DIGIMODE(PIO228_DIGIMODE_DIGITAL)); | ||
1769 | |||
1770 | IOCON->PIO[2][29] = ((IOCON->PIO[2][29] & | ||
1771 | /* Mask bits to zero which are setting */ | ||
1772 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1773 | |||
1774 | /* Selects pin function. | ||
1775 | * : PORT229 (pin G11) is configured as LCD_VD(11). */ | ||
1776 | | IOCON_PIO_FUNC(PIO229_FUNC_ALT1) | ||
1777 | |||
1778 | /* Select Analog/Digital mode. | ||
1779 | * : Digital mode. */ | ||
1780 | | IOCON_PIO_DIGIMODE(PIO229_DIGIMODE_DIGITAL)); | ||
1781 | |||
1782 | IOCON->PIO[2][30] = ((IOCON->PIO[2][30] & | ||
1783 | /* Mask bits to zero which are setting */ | ||
1784 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1785 | |||
1786 | /* Selects pin function. | ||
1787 | * : PORT230 (pin F12) is configured as LCD_VD(12). */ | ||
1788 | | IOCON_PIO_FUNC(PIO230_FUNC_ALT1) | ||
1789 | |||
1790 | /* Select Analog/Digital mode. | ||
1791 | * : Digital mode. */ | ||
1792 | | IOCON_PIO_DIGIMODE(PIO230_DIGIMODE_DIGITAL)); | ||
1793 | |||
1794 | IOCON->PIO[2][31] = ((IOCON->PIO[2][31] & | ||
1795 | /* Mask bits to zero which are setting */ | ||
1796 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1797 | |||
1798 | /* Selects pin function. | ||
1799 | * : PORT231 (pin D14) is configured as LCD_VD(13). */ | ||
1800 | | IOCON_PIO_FUNC(PIO231_FUNC_ALT1) | ||
1801 | |||
1802 | /* Select Analog/Digital mode. | ||
1803 | * : Digital mode. */ | ||
1804 | | IOCON_PIO_DIGIMODE(PIO231_DIGIMODE_DIGITAL)); | ||
1805 | |||
1806 | IOCON->PIO[3][0] = ((IOCON->PIO[3][0] & | ||
1807 | /* Mask bits to zero which are setting */ | ||
1808 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1809 | |||
1810 | /* Selects pin function. | ||
1811 | * : PORT30 (pin D12) is configured as LCD_VD(14). */ | ||
1812 | | IOCON_PIO_FUNC(PIO30_FUNC_ALT1) | ||
1813 | |||
1814 | /* Select Analog/Digital mode. | ||
1815 | * : Digital mode. */ | ||
1816 | | IOCON_PIO_DIGIMODE(PIO30_DIGIMODE_DIGITAL)); | ||
1817 | |||
1818 | IOCON->PIO[3][1] = ((IOCON->PIO[3][1] & | ||
1819 | /* Mask bits to zero which are setting */ | ||
1820 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1821 | |||
1822 | /* Selects pin function. | ||
1823 | * : PORT31 (pin D11) is configured as LCD_VD(15). */ | ||
1824 | | IOCON_PIO_FUNC(PIO31_FUNC_ALT1) | ||
1825 | |||
1826 | /* Select Analog/Digital mode. | ||
1827 | * : Digital mode. */ | ||
1828 | | IOCON_PIO_DIGIMODE(PIO31_DIGIMODE_DIGITAL)); | ||
1829 | |||
1830 | IOCON->PIO[3][5] = ((IOCON->PIO[3][5] & | ||
1831 | /* Mask bits to zero which are setting */ | ||
1832 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1833 | |||
1834 | /* Selects pin function. | ||
1835 | * : PORT35 (pin B10) is configured as LCD_VD(19). */ | ||
1836 | | IOCON_PIO_FUNC(PIO35_FUNC_ALT1) | ||
1837 | |||
1838 | /* Select Analog/Digital mode. | ||
1839 | * : Digital mode. */ | ||
1840 | | IOCON_PIO_DIGIMODE(PIO35_DIGIMODE_DIGITAL)); | ||
1841 | |||
1842 | IOCON->PIO[3][6] = ((IOCON->PIO[3][6] & | ||
1843 | /* Mask bits to zero which are setting */ | ||
1844 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1845 | |||
1846 | /* Selects pin function. | ||
1847 | * : PORT36 (pin C9) is configured as LCD_VD(20). */ | ||
1848 | | IOCON_PIO_FUNC(PIO36_FUNC_ALT1) | ||
1849 | |||
1850 | /* Select Analog/Digital mode. | ||
1851 | * : Digital mode. */ | ||
1852 | | IOCON_PIO_DIGIMODE(PIO36_DIGIMODE_DIGITAL)); | ||
1853 | |||
1854 | IOCON->PIO[3][7] = ((IOCON->PIO[3][7] & | ||
1855 | /* Mask bits to zero which are setting */ | ||
1856 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1857 | |||
1858 | /* Selects pin function. | ||
1859 | * : PORT37 (pin B8) is configured as LCD_VD(21). */ | ||
1860 | | IOCON_PIO_FUNC(PIO37_FUNC_ALT1) | ||
1861 | |||
1862 | /* Select Analog/Digital mode. | ||
1863 | * : Digital mode. */ | ||
1864 | | IOCON_PIO_DIGIMODE(PIO37_DIGIMODE_DIGITAL)); | ||
1865 | |||
1866 | IOCON->PIO[3][8] = ((IOCON->PIO[3][8] & | ||
1867 | /* Mask bits to zero which are setting */ | ||
1868 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1869 | |||
1870 | /* Selects pin function. | ||
1871 | * : PORT38 (pin A7) is configured as LCD_VD(22). */ | ||
1872 | | IOCON_PIO_FUNC(PIO38_FUNC_ALT1) | ||
1873 | |||
1874 | /* Select Analog/Digital mode. | ||
1875 | * : Digital mode. */ | ||
1876 | | IOCON_PIO_DIGIMODE(PIO38_DIGIMODE_DIGITAL)); | ||
1877 | |||
1878 | IOCON->PIO[3][9] = ((IOCON->PIO[3][9] & | ||
1879 | /* Mask bits to zero which are setting */ | ||
1880 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1881 | |||
1882 | /* Selects pin function. | ||
1883 | * : PORT39 (pin C7) is configured as LCD_VD(23). */ | ||
1884 | | IOCON_PIO_FUNC(PIO39_FUNC_ALT1) | ||
1885 | |||
1886 | /* Select Analog/Digital mode. | ||
1887 | * : Digital mode. */ | ||
1888 | | IOCON_PIO_DIGIMODE(PIO39_DIGIMODE_DIGITAL)); | ||
1889 | } | ||
1890 | |||
1891 | /* clang-format off */ | ||
1892 | /* | ||
1893 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
1894 | BOARD_InitENETPins: | ||
1895 | - options: {coreID: core0, enableClock: 'true'} | ||
1896 | - pin_list: | ||
1897 | - {pin_num: B14, peripheral: ENET, signal: 'ENET_TXD, 0', pin_signal: PIO4_8/ENET_TXD0/FC2_SCK/USB0_OVERCURRENTN/USB0_UP_LED/SCT0_GPI1} | ||
1898 | - {pin_num: E14, peripheral: ENET, signal: 'ENET_TXD, 1', pin_signal: PIO0_17/FC4_SSEL2/SD_CARD_DET_N/SCT0_GPI7/SCT0_OUT0/EMC_OEN/ENET_TXD1} | ||
1899 | - {pin_num: B6, peripheral: ENET, signal: ENET_TX_EN, pin_signal: PIO4_13/ENET_TX_EN/CTIMER4_MAT0/SCT0_GPI6} | ||
1900 | - {pin_num: A9, peripheral: ENET, signal: 'ENET_RXD, 0', pin_signal: PIO4_11/ENET_RXD0/FC2_CTS_SDA_SSEL0/USB0_IDVALUE/SCT0_GPI4, identifier: ENET_RXD0} | ||
1901 | - {pin_num: A6, peripheral: ENET, signal: 'ENET_RXD, 1', pin_signal: PIO4_12/ENET_RXD1/FC2_RTS_SCL_SSEL1/SCT0_GPI5} | ||
1902 | - {pin_num: B9, peripheral: ENET, signal: ENET_RX_DV, pin_signal: PIO4_10/ENET_RX_DV/FC2_TXD_SCL_MISO/USB1_OVERCURRENTN/USB1_UP_LED/SCT0_GPI3} | ||
1903 | - {pin_num: C4, peripheral: ENET, signal: ENET_MDIO, pin_signal: PIO4_16/ENET_MDIO/CTIMER4_MAT3/FC9_TXD_SCL_MISO} | ||
1904 | - {pin_num: A4, peripheral: ENET, signal: ENET_MDC, pin_signal: PIO4_15/ENET_MDC/CTIMER4_MAT2/FC9_RXD_SDA_MOSI} | ||
1905 | - {pin_num: H11, peripheral: GPIO, signal: 'PIO2, 26', pin_signal: PIO2_26/LCD_VD(8)/FC3_SCK/CTIMER2_CAP1, direction: OUTPUT} | ||
1906 | - {pin_num: B5, peripheral: ENET, signal: ENET_RX_CLK, pin_signal: PIO4_14/ENET_RX_CLK/CTIMER4_MAT1/FC9_SCK/SCT0_GPI7} | ||
1907 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
1908 | */ | ||
1909 | /* clang-format on */ | ||
1910 | |||
1911 | /* FUNCTION ************************************************************************************************************ | ||
1912 | * | ||
1913 | * Function Name : BOARD_InitENETPins | ||
1914 | * Description : Configures pin routing and optionally pin electrical features. | ||
1915 | * | ||
1916 | * END ****************************************************************************************************************/ | ||
1917 | /* Function assigned for the Cortex-M4F */ | ||
1918 | void BOARD_InitENETPins(void) | ||
1919 | { | ||
1920 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
1921 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
1922 | /* Enables the clock for the GPIO2 module */ | ||
1923 | CLOCK_EnableClock(kCLOCK_Gpio2); | ||
1924 | |||
1925 | gpio_pin_config_t ENET_PHY_RSTn_config = { | ||
1926 | .pinDirection = kGPIO_DigitalOutput, | ||
1927 | .outputLogic = 0U | ||
1928 | }; | ||
1929 | /* Initialize GPIO functionality on pin PIO2_26 (pin H11) */ | ||
1930 | GPIO_PinInit(BOARD_INITENETPINS_ENET_PHY_RSTn_GPIO, BOARD_INITENETPINS_ENET_PHY_RSTn_PORT, BOARD_INITENETPINS_ENET_PHY_RSTn_PIN, &ENET_PHY_RSTn_config); | ||
1931 | |||
1932 | IOCON->PIO[0][17] = ((IOCON->PIO[0][17] & | ||
1933 | /* Mask bits to zero which are setting */ | ||
1934 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1935 | |||
1936 | /* Selects pin function. | ||
1937 | * : PORT017 (pin E14) is configured as ENET_TXD1. */ | ||
1938 | | IOCON_PIO_FUNC(PIO017_FUNC_ALT7) | ||
1939 | |||
1940 | /* Select Analog/Digital mode. | ||
1941 | * : Digital mode. */ | ||
1942 | | IOCON_PIO_DIGIMODE(PIO017_DIGIMODE_DIGITAL)); | ||
1943 | |||
1944 | IOCON->PIO[2][26] = ((IOCON->PIO[2][26] & | ||
1945 | /* Mask bits to zero which are setting */ | ||
1946 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1947 | |||
1948 | /* Selects pin function. | ||
1949 | * : PORT226 (pin H11) is configured as PIO2_26. */ | ||
1950 | | IOCON_PIO_FUNC(PIO226_FUNC_ALT0) | ||
1951 | |||
1952 | /* Select Analog/Digital mode. | ||
1953 | * : Digital mode. */ | ||
1954 | | IOCON_PIO_DIGIMODE(PIO226_DIGIMODE_DIGITAL)); | ||
1955 | |||
1956 | IOCON->PIO[4][10] = ((IOCON->PIO[4][10] & | ||
1957 | /* Mask bits to zero which are setting */ | ||
1958 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1959 | |||
1960 | /* Selects pin function. | ||
1961 | * : PORT410 (pin B9) is configured as ENET_RX_DV. */ | ||
1962 | | IOCON_PIO_FUNC(PIO410_FUNC_ALT1) | ||
1963 | |||
1964 | /* Select Analog/Digital mode. | ||
1965 | * : Digital mode. */ | ||
1966 | | IOCON_PIO_DIGIMODE(PIO410_DIGIMODE_DIGITAL)); | ||
1967 | |||
1968 | IOCON->PIO[4][11] = ((IOCON->PIO[4][11] & | ||
1969 | /* Mask bits to zero which are setting */ | ||
1970 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1971 | |||
1972 | /* Selects pin function. | ||
1973 | * : PORT411 (pin A9) is configured as ENET_RXD0. */ | ||
1974 | | IOCON_PIO_FUNC(PIO411_FUNC_ALT1) | ||
1975 | |||
1976 | /* Select Analog/Digital mode. | ||
1977 | * : Digital mode. */ | ||
1978 | | IOCON_PIO_DIGIMODE(PIO411_DIGIMODE_DIGITAL)); | ||
1979 | |||
1980 | IOCON->PIO[4][12] = ((IOCON->PIO[4][12] & | ||
1981 | /* Mask bits to zero which are setting */ | ||
1982 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1983 | |||
1984 | /* Selects pin function. | ||
1985 | * : PORT412 (pin A6) is configured as ENET_RXD1. */ | ||
1986 | | IOCON_PIO_FUNC(PIO412_FUNC_ALT1) | ||
1987 | |||
1988 | /* Select Analog/Digital mode. | ||
1989 | * : Digital mode. */ | ||
1990 | | IOCON_PIO_DIGIMODE(PIO412_DIGIMODE_DIGITAL)); | ||
1991 | |||
1992 | IOCON->PIO[4][13] = ((IOCON->PIO[4][13] & | ||
1993 | /* Mask bits to zero which are setting */ | ||
1994 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
1995 | |||
1996 | /* Selects pin function. | ||
1997 | * : PORT413 (pin B6) is configured as ENET_TX_EN. */ | ||
1998 | | IOCON_PIO_FUNC(PIO413_FUNC_ALT1) | ||
1999 | |||
2000 | /* Select Analog/Digital mode. | ||
2001 | * : Digital mode. */ | ||
2002 | | IOCON_PIO_DIGIMODE(PIO413_DIGIMODE_DIGITAL)); | ||
2003 | |||
2004 | IOCON->PIO[4][14] = ((IOCON->PIO[4][14] & | ||
2005 | /* Mask bits to zero which are setting */ | ||
2006 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2007 | |||
2008 | /* Selects pin function. | ||
2009 | * : PORT414 (pin B5) is configured as ENET_RX_CLK. */ | ||
2010 | | IOCON_PIO_FUNC(PIO414_FUNC_ALT1) | ||
2011 | |||
2012 | /* Select Analog/Digital mode. | ||
2013 | * : Digital mode. */ | ||
2014 | | IOCON_PIO_DIGIMODE(PIO414_DIGIMODE_DIGITAL)); | ||
2015 | |||
2016 | IOCON->PIO[4][15] = ((IOCON->PIO[4][15] & | ||
2017 | /* Mask bits to zero which are setting */ | ||
2018 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2019 | |||
2020 | /* Selects pin function. | ||
2021 | * : PORT415 (pin A4) is configured as ENET_MDC. */ | ||
2022 | | IOCON_PIO_FUNC(PIO415_FUNC_ALT1) | ||
2023 | |||
2024 | /* Select Analog/Digital mode. | ||
2025 | * : Digital mode. */ | ||
2026 | | IOCON_PIO_DIGIMODE(PIO415_DIGIMODE_DIGITAL)); | ||
2027 | |||
2028 | IOCON->PIO[4][16] = ((IOCON->PIO[4][16] & | ||
2029 | /* Mask bits to zero which are setting */ | ||
2030 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2031 | |||
2032 | /* Selects pin function. | ||
2033 | * : PORT416 (pin C4) is configured as ENET_MDIO. */ | ||
2034 | | IOCON_PIO_FUNC(PIO416_FUNC_ALT1) | ||
2035 | |||
2036 | /* Select Analog/Digital mode. | ||
2037 | * : Digital mode. */ | ||
2038 | | IOCON_PIO_DIGIMODE(PIO416_DIGIMODE_DIGITAL)); | ||
2039 | |||
2040 | IOCON->PIO[4][8] = ((IOCON->PIO[4][8] & | ||
2041 | /* Mask bits to zero which are setting */ | ||
2042 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2043 | |||
2044 | /* Selects pin function. | ||
2045 | * : PORT48 (pin B14) is configured as ENET_TXD0. */ | ||
2046 | | IOCON_PIO_FUNC(PIO48_FUNC_ALT1) | ||
2047 | |||
2048 | /* Select Analog/Digital mode. | ||
2049 | * : Digital mode. */ | ||
2050 | | IOCON_PIO_DIGIMODE(PIO48_DIGIMODE_DIGITAL)); | ||
2051 | } | ||
2052 | |||
2053 | /* clang-format off */ | ||
2054 | /* | ||
2055 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
2056 | BOARD_InitDMICPins: | ||
2057 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
2058 | - pin_list: | ||
2059 | - {pin_num: L14, peripheral: DMIC0, signal: 'CLK, 1', pin_signal: PIO1_2/CAN0_TD/CTIMER0_MAT3/SCT0_GPI6/PDM1_CLK/USB1_PORTPWRN} | ||
2060 | - {pin_num: J13, peripheral: DMIC0, signal: 'DATA, 1', pin_signal: PIO1_3/CAN0_RD/SCT0_OUT4/PDM1_DATA/USB0_PORTPWRN} | ||
2061 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
2062 | */ | ||
2063 | /* clang-format on */ | ||
2064 | |||
2065 | /* FUNCTION ************************************************************************************************************ | ||
2066 | * | ||
2067 | * Function Name : BOARD_InitDMICPins | ||
2068 | * Description : Configures pin routing and optionally pin electrical features. | ||
2069 | * | ||
2070 | * END ****************************************************************************************************************/ | ||
2071 | /* Function assigned for the Cortex-M4F */ | ||
2072 | void BOARD_InitDMICPins(void) | ||
2073 | { | ||
2074 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
2075 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
2076 | |||
2077 | IOCON->PIO[1][2] = ((IOCON->PIO[1][2] & | ||
2078 | /* Mask bits to zero which are setting */ | ||
2079 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2080 | |||
2081 | /* Selects pin function. | ||
2082 | * : PORT12 (pin L14) is configured as PDM1_CLK. */ | ||
2083 | | IOCON_PIO_FUNC(PIO12_FUNC_ALT5) | ||
2084 | |||
2085 | /* Select Analog/Digital mode. | ||
2086 | * : Digital mode. */ | ||
2087 | | IOCON_PIO_DIGIMODE(PIO12_DIGIMODE_DIGITAL)); | ||
2088 | |||
2089 | IOCON->PIO[1][3] = ((IOCON->PIO[1][3] & | ||
2090 | /* Mask bits to zero which are setting */ | ||
2091 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2092 | |||
2093 | /* Selects pin function. | ||
2094 | * : PORT13 (pin J13) is configured as PDM1_DATA. */ | ||
2095 | | IOCON_PIO_FUNC(PIO13_FUNC_ALT5) | ||
2096 | |||
2097 | /* Select Analog/Digital mode. | ||
2098 | * : Digital mode. */ | ||
2099 | | IOCON_PIO_DIGIMODE(PIO13_DIGIMODE_DIGITAL)); | ||
2100 | } | ||
2101 | |||
2102 | /* clang-format off */ | ||
2103 | /* | ||
2104 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
2105 | BOARD_InitI2SPins: | ||
2106 | - options: {prefix: BOARD_, coreID: core0, enableClock: 'true'} | ||
2107 | - pin_list: | ||
2108 | - {pin_num: C2, peripheral: FLEXCOMM2, signal: CTS_SDA_SSEL0, pin_signal: PIO3_23/FC2_CTS_SDA_SSEL0/UTICK_CAP3, identifier: ''} | ||
2109 | - {pin_num: E2, peripheral: FLEXCOMM2, signal: RTS_SCL_SSEL1, pin_signal: PIO3_24/FC2_RTS_SCL_SSEL1/CTIMER4_CAP0/USB0_VBUS, identifier: ''} | ||
2110 | - {pin_num: G14, peripheral: FLEXCOMM6, signal: SCK, pin_signal: PIO4_1/FC6_SCK/SCT0_GPI2/EMC_CSN(2)} | ||
2111 | - {pin_num: F13, peripheral: FLEXCOMM6, signal: TXD_SCL_MISO_WS, pin_signal: PIO4_3/FC6_TXD_SCL_MISO_WS/CTIMER0_CAP3/SCT0_GPI4/EMC_DYCSN(2)} | ||
2112 | - {pin_num: F14, peripheral: FLEXCOMM6, signal: RXD_SDA_MOSI_DATA, pin_signal: PIO4_2/FC6_RXD_SDA_MOSI_DATA/SCT0_GPI3/EMC_CSN(3)} | ||
2113 | - {pin_num: P12, peripheral: FLEXCOMM7, signal: RXD_SDA_MOSI_DATA, pin_signal: PIO2_19/LCD_VD(1)/FC3_TXD_SCL_MISO/FC7_RXD_SDA_MOSI_DATA/CTIMER3_MAT1} | ||
2114 | - {pin_num: N10, peripheral: FLEXCOMM7, signal: SCK, pin_signal: PIO2_18/LCD_VD(0)/FC3_RXD_SDA_MOSI/FC7_SCK/CTIMER3_MAT0} | ||
2115 | - {pin_num: P13, peripheral: FLEXCOMM3, signal: RTS_SCL_SSEL1, pin_signal: PIO2_20/LCD_VD(2)/FC3_RTS_SCL_SSEL1/FC7_TXD_SCL_MISO_WS/CTIMER3_MAT2/CTIMER4_CAP0} | ||
2116 | - {pin_num: B2, peripheral: SYSCON, signal: MCLK, pin_signal: PIO3_11/MCLK/FC0_SCK/FC1_SCK/TRACEDATA(3)} | ||
2117 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
2118 | */ | ||
2119 | /* clang-format on */ | ||
2120 | |||
2121 | /* FUNCTION ************************************************************************************************************ | ||
2122 | * | ||
2123 | * Function Name : BOARD_InitI2SPins | ||
2124 | * Description : Configures pin routing and optionally pin electrical features. | ||
2125 | * | ||
2126 | * END ****************************************************************************************************************/ | ||
2127 | /* Function assigned for the Cortex-M4F */ | ||
2128 | void BOARD_InitI2SPins(void) | ||
2129 | { | ||
2130 | /* Enables the clock for the IOCON block. 0 = Disable; 1 = Enable.: 0x01u */ | ||
2131 | CLOCK_EnableClock(kCLOCK_Iocon); | ||
2132 | |||
2133 | IOCON->PIO[2][18] = ((IOCON->PIO[2][18] & | ||
2134 | /* Mask bits to zero which are setting */ | ||
2135 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2136 | |||
2137 | /* Selects pin function. | ||
2138 | * : PORT218 (pin N10) is configured as FC7_SCK. */ | ||
2139 | | IOCON_PIO_FUNC(PIO218_FUNC_ALT3) | ||
2140 | |||
2141 | /* Select Analog/Digital mode. | ||
2142 | * : Digital mode. */ | ||
2143 | | IOCON_PIO_DIGIMODE(PIO218_DIGIMODE_DIGITAL)); | ||
2144 | |||
2145 | IOCON->PIO[2][19] = ((IOCON->PIO[2][19] & | ||
2146 | /* Mask bits to zero which are setting */ | ||
2147 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2148 | |||
2149 | /* Selects pin function. | ||
2150 | * : PORT219 (pin P12) is configured as FC7_RXD_SDA_MOSI_DATA. */ | ||
2151 | | IOCON_PIO_FUNC(PIO219_FUNC_ALT3) | ||
2152 | |||
2153 | /* Select Analog/Digital mode. | ||
2154 | * : Digital mode. */ | ||
2155 | | IOCON_PIO_DIGIMODE(PIO219_DIGIMODE_DIGITAL)); | ||
2156 | |||
2157 | IOCON->PIO[2][20] = ((IOCON->PIO[2][20] & | ||
2158 | /* Mask bits to zero which are setting */ | ||
2159 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2160 | |||
2161 | /* Selects pin function. | ||
2162 | * : PORT220 (pin P13) is configured as FC3_RTS_SCL_SSEL1. */ | ||
2163 | | IOCON_PIO_FUNC(PIO220_FUNC_ALT2) | ||
2164 | |||
2165 | /* Select Analog/Digital mode. | ||
2166 | * : Digital mode. */ | ||
2167 | | IOCON_PIO_DIGIMODE(PIO220_DIGIMODE_DIGITAL)); | ||
2168 | |||
2169 | IOCON->PIO[3][11] = ((IOCON->PIO[3][11] & | ||
2170 | /* Mask bits to zero which are setting */ | ||
2171 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2172 | |||
2173 | /* Selects pin function. | ||
2174 | * : PORT311 (pin B2) is configured as MCLK. */ | ||
2175 | | IOCON_PIO_FUNC(PIO311_FUNC_ALT1) | ||
2176 | |||
2177 | /* Select Analog/Digital mode. | ||
2178 | * : Digital mode. */ | ||
2179 | | IOCON_PIO_DIGIMODE(PIO311_DIGIMODE_DIGITAL)); | ||
2180 | |||
2181 | IOCON->PIO[3][23] = ((IOCON->PIO[3][23] & | ||
2182 | /* Mask bits to zero which are setting */ | ||
2183 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2184 | |||
2185 | /* Selects pin function. | ||
2186 | * : PORT323 (pin C2) is configured as FC2_CTS_SDA_SSEL0. */ | ||
2187 | | IOCON_PIO_FUNC(PIO323_FUNC_ALT1) | ||
2188 | |||
2189 | /* Select Analog/Digital mode. | ||
2190 | * : Digital mode. */ | ||
2191 | | IOCON_PIO_DIGIMODE(PIO323_DIGIMODE_DIGITAL)); | ||
2192 | |||
2193 | IOCON->PIO[3][24] = ((IOCON->PIO[3][24] & | ||
2194 | /* Mask bits to zero which are setting */ | ||
2195 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2196 | |||
2197 | /* Selects pin function. | ||
2198 | * : PORT324 (pin E2) is configured as FC2_RTS_SCL_SSEL1. */ | ||
2199 | | IOCON_PIO_FUNC(PIO324_FUNC_ALT1) | ||
2200 | |||
2201 | /* Select Analog/Digital mode. | ||
2202 | * : Digital mode. */ | ||
2203 | | IOCON_PIO_DIGIMODE(PIO324_DIGIMODE_DIGITAL)); | ||
2204 | |||
2205 | IOCON->PIO[4][1] = ((IOCON->PIO[4][1] & | ||
2206 | /* Mask bits to zero which are setting */ | ||
2207 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2208 | |||
2209 | /* Selects pin function. | ||
2210 | * : PORT41 (pin G14) is configured as FC6_SCK. */ | ||
2211 | | IOCON_PIO_FUNC(PIO41_FUNC_ALT2) | ||
2212 | |||
2213 | /* Select Analog/Digital mode. | ||
2214 | * : Digital mode. */ | ||
2215 | | IOCON_PIO_DIGIMODE(PIO41_DIGIMODE_DIGITAL)); | ||
2216 | |||
2217 | IOCON->PIO[4][2] = ((IOCON->PIO[4][2] & | ||
2218 | /* Mask bits to zero which are setting */ | ||
2219 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2220 | |||
2221 | /* Selects pin function. | ||
2222 | * : PORT42 (pin F14) is configured as FC6_RXD_SDA_MOSI_DATA. */ | ||
2223 | | IOCON_PIO_FUNC(PIO42_FUNC_ALT2) | ||
2224 | |||
2225 | /* Select Analog/Digital mode. | ||
2226 | * : Digital mode. */ | ||
2227 | | IOCON_PIO_DIGIMODE(PIO42_DIGIMODE_DIGITAL)); | ||
2228 | |||
2229 | IOCON->PIO[4][3] = ((IOCON->PIO[4][3] & | ||
2230 | /* Mask bits to zero which are setting */ | ||
2231 | (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) | ||
2232 | |||
2233 | /* Selects pin function. | ||
2234 | * : PORT43 (pin F13) is configured as FC6_TXD_SCL_MISO_WS. */ | ||
2235 | | IOCON_PIO_FUNC(PIO43_FUNC_ALT2) | ||
2236 | |||
2237 | /* Select Analog/Digital mode. | ||
2238 | * : Digital mode. */ | ||
2239 | | IOCON_PIO_DIGIMODE(PIO43_DIGIMODE_DIGITAL)); | ||
2240 | } | ||
2241 | /*********************************************************************************************************************** | ||
2242 | * EOF | ||
2243 | **********************************************************************************************************************/ | ||