Skip to content

Commit

Permalink
fix(test): Invert pins only for P4
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Nov 12, 2024
1 parent a7f016c commit ef3ca26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/validation/uart/uart.ino
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,12 @@ void setup() {

uart_test_configs = {
#if SOC_UART_HP_NUM >= 2 && defined(RX1) && defined(TX1)
// inverting RX1<->TX1 because ESP32-P4 has a problem with loopback on RX1 :: GPIO11 <-- UART_TX SGINAL
#if CONFIG_IDF_TARGET_ESP32P4
// inverting RX1<->TX1 because ESP32-P4 has a problem with loopback on RX1 :: GPIO11 <-- UART_TX SIGNAL
new UARTTestConfig(1, Serial1, TX1, RX1),
#else
new UARTTestConfig(1, Serial1, RX1, TX1),
#endif
#endif
#if SOC_UART_HP_NUM >= 3 && defined(RX2) && defined(TX2)
new UARTTestConfig(2, Serial2, RX2, TX2),
Expand Down

0 comments on commit ef3ca26

Please sign in to comment.