Skip to content

Commit

Permalink
lp43xx: use Driver_USART0 for virtual com port
Browse files Browse the repository at this point in the history
The code is adapted from lpc55xx/uart.c.
  • Loading branch information
Adrian Negreanu committed Feb 15, 2022
1 parent 88d4bda commit 422c5cc
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 258 deletions.
6 changes: 3 additions & 3 deletions source/hic_hal/nxp/lpc4322/RTE_Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -1010,12 +1010,12 @@
// </e> I2C1 (Inter-integrated Circuit Interface 1) [Driver_I2C1]

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

// <h> Pin Configuration
// <o> TX <0=>Not used <1=>P2_0 <2=>P6_4 <3=>P9_5 <4=>PF_10
// <i> USART0 Serial Output pin
#define RTE_USART0_TX_ID 0
#define RTE_USART0_TX_ID 1
#if (RTE_USART0_TX_ID == 0)
#define RTE_USART0_TX_PIN_EN 0
#elif (RTE_USART0_TX_ID == 1)
Expand All @@ -1042,7 +1042,7 @@
#endif
// <o> RX <0=>Not used <1=>P2_1 <2=>P6_5 <3=>P9_6 <4=>PF_11
// <i> USART0 Serial Input pin
#define RTE_USART0_RX_ID 0
#define RTE_USART0_RX_ID 1
#if (RTE_USART0_RX_ID == 0)
#define RTE_USART0_RX_PIN_EN 0
#elif (RTE_USART0_RX_ID == 1)
Expand Down
Loading

0 comments on commit 422c5cc

Please sign in to comment.