We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2998341 commit 90172d5Copy full SHA for 90172d5
source/hic_hal/nxp/lpc4322/RTE_Device.h
@@ -1161,7 +1161,7 @@
1161
#endif
1162
// <o> RX <0=>Not used <1=>P1_14 <2=>P3_5 <3=>P5_7 <4=>PC_14 <5=>PE_12
1163
// <i> UART1 Serial Input pin
1164
-#define RTE_UART1_RX_ID 0
+#define RTE_UART1_RX_ID 1
1165
#if (RTE_UART1_RX_ID == 0)
1166
#define RTE_UART1_RX_PIN_EN 0
1167
#elif (RTE_UART1_RX_ID == 1)
source/hic_hal/nxp/lpc4322/gpio.c
@@ -75,6 +75,11 @@ void gpio_init(void)
75
LPC_SCU->PINTSEL0 &= ~0xff;
76
LPC_SCU->PINTSEL0 |= (PORT_nRESET << 5) | (PIN_nRESET_IN_BIT);
77
78
+#if (SWO_UART != 0)
79
+ /* Configure: SWO as input */
80
+ LPC_GPIO_PORT->DIR[PORT_SWO] &= ~(1 << PIN_SWO_IN_BIT);
81
+#endif
82
+
83
busy_wait(10000);
84
}
85
0 commit comments