Skip to content

Commit 422c5cc

Browse files
author
Adrian Negreanu
committed
lp43xx: use Driver_USART0 for virtual com port
The code is adapted from lpc55xx/uart.c.
1 parent 88d4bda commit 422c5cc

File tree

2 files changed

+141
-258
lines changed

2 files changed

+141
-258
lines changed

source/hic_hal/nxp/lpc4322/RTE_Device.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,12 +1010,12 @@
10101010
// </e> I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]
10111011

10121012
// <e> USART0 (Universal synchronous asynchronous receiver transmitter) [Driver_USART0]
1013-
#define RTE_USART0 0
1013+
#define RTE_USART0 1
10141014

10151015
// <h> Pin Configuration
10161016
// <o> TX <0=>Not used <1=>P2_0 <2=>P6_4 <3=>P9_5 <4=>PF_10
10171017
// <i> USART0 Serial Output pin
1018-
#define RTE_USART0_TX_ID 0
1018+
#define RTE_USART0_TX_ID 1
10191019
#if (RTE_USART0_TX_ID == 0)
10201020
#define RTE_USART0_TX_PIN_EN 0
10211021
#elif (RTE_USART0_TX_ID == 1)
@@ -1042,7 +1042,7 @@
10421042
#endif
10431043
// <o> RX <0=>Not used <1=>P2_1 <2=>P6_5 <3=>P9_6 <4=>PF_11
10441044
// <i> USART0 Serial Input pin
1045-
#define RTE_USART0_RX_ID 0
1045+
#define RTE_USART0_RX_ID 1
10461046
#if (RTE_USART0_RX_ID == 0)
10471047
#define RTE_USART0_RX_PIN_EN 0
10481048
#elif (RTE_USART0_RX_ID == 1)

0 commit comments

Comments
 (0)