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