Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef50176

Browse files
authoredOct 24, 2024··
fix(uart): fixes P4 pins for uart testing case
1 parent a0d685d commit ef50176

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed
 

‎tests/validation/uart/uart.ino

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
// UART0 TX | SOC_TX0 | 1 | 43 | 43 | 21 | 16 | 24 | 37 |
1717
// UART1 RX | RX1 | 26 | 4 | 15 | 18 | 4 | 0 | 11 |
1818
// UART1 TX | TX1 | 27 | 5 | 16 | 19 | 5 | 1 | 10 |
19-
// UART2 RX | RX2 | 4 | -- | 19 | -- | -- | -- | 15 |
20-
// UART2 TX | TX2 | 25 | -- | 20 | -- | -- | -- | 14 |
19+
// UART2 RX | RX2 | 4 | -- | 19 | -- | -- | -- | -- |
20+
// UART2 TX | TX2 | 25 | -- | 20 | -- | -- | -- | -- |
2121

2222
/*
2323
* For each UART:
@@ -53,22 +53,37 @@ const test_uart_t test_uarts[SOC_UART_NUM] = {
5353
},
5454
#if SOC_UART_NUM >= 3
5555
{
56+
#ifdef RX2
5657
.rx_pin = RX2,
5758
.tx_pin = TX2,
59+
#else
60+
.rx_pin = RX1,
61+
.tx_pin = TX1,
62+
#endif
5863
.serial = Serial2,
5964
},
6065
#endif
6166
#if SOC_UART_NUM >= 4
6267
{
68+
#ifdef RX3
6369
.rx_pin = RX3,
6470
.tx_pin = TX3,
71+
#else
72+
.rx_pin = RX1,
73+
.tx_pin = TX1,
74+
#endif
6575
.serial = Serial3,
6676
},
6777
#endif
6878
#if SOC_UART_NUM >= 5
6979
{
80+
#ifdef RX4
7081
.rx_pin = RX4,
7182
.tx_pin = TX4,
83+
#else
84+
.rx_pin = RX1,
85+
.tx_pin = TX1,
86+
#endif
7287
.serial = Serial4,
7388
},
7489
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.