|
|
@@ -362,9 +362,9 @@ static const xPinGroup_t pin_groups[] = {
|
|
|
{.groupid = PGRP_SDMMC1, .pins_num = 7, .pins = {{58, 2}, {59, 2}, {60, 2}, {61, 2}, {62, 2}, {63, 2},{64, 2}}},
|
|
|
{.groupid = PGRP_ETH, .pins_num = 15, .pins = {
|
|
|
#if ETH_TXC_PAD_DIR_OUTPUT
|
|
|
- {0, 3},
|
|
|
+ {0, 3},
|
|
|
#else
|
|
|
- {0, 2},
|
|
|
+ {0, 2},
|
|
|
#endif
|
|
|
{1, 2}, {2, 2}, {3, 2}, {4, 2}, {5, 2},{6, 2},
|
|
|
{7, 2},{8, 2},{9, 2},{10, 2},{11, 2},{12, 2},{13, 2},{14, 2}}},
|
|
|
@@ -591,6 +591,7 @@ void vPinctrlSetup(void)
|
|
|
#endif
|
|
|
#endif
|
|
|
|
|
|
+#ifdef UART_DEBUG_PORT
|
|
|
if(UART_DEBUG_PORT == UART_ID0)
|
|
|
pinctrl_set_group(PGRP_UART0);
|
|
|
else if (UART_DEBUG_PORT == UART_ID1)
|
|
|
@@ -599,6 +600,19 @@ void vPinctrlSetup(void)
|
|
|
pinctrl_set_group(PGRP_UART2);
|
|
|
else if (UART_DEBUG_PORT == UART_ID3)
|
|
|
pinctrl_set_group(PGRP_UART3);
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifdef UART_MCU_PORT
|
|
|
+ if(UART_MCU_PORT == UART_ID0)
|
|
|
+ pinctrl_set_group(PGRP_UART0);
|
|
|
+ else if (UART_MCU_PORT == UART_ID1)
|
|
|
+ pinctrl_set_group(PGRP_UART1);
|
|
|
+ else if (UART_MCU_PORT == UART_ID2)
|
|
|
+ pinctrl_set_group(PGRP_UART2);
|
|
|
+ else if (UART_MCU_PORT == UART_ID3)
|
|
|
+ pinctrl_set_group(PGRP_UART3);
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef ETH_SUPPORT
|
|
|
pinctrl_set_group(PGRP_ETH);
|
|
|
#endif
|