Unverified Commit 627ffe6c authored by Rodrigo Garcia's avatar Rodrigo Garcia Committed by GitHub

Restore 2.x RX1/TX1 RX2/TX2 pins

parent 83372a3b
...@@ -136,12 +136,11 @@ typedef enum { ...@@ -136,12 +136,11 @@ typedef enum {
// Default pins for UART1 are arbitrary, and defined here for convenience. // Default pins for UART1 are arbitrary, and defined here for convenience.
#if SOC_UART_NUM > 1 #ifndef RX1
#ifndef RX1
#if CONFIG_IDF_TARGET_ESP32 #if CONFIG_IDF_TARGET_ESP32
#define RX1 (gpio_num_t)26 #define RX1 (gpio_num_t)9
#elif CONFIG_IDF_TARGET_ESP32S2 #elif CONFIG_IDF_TARGET_ESP32S2
#define RX1 (gpio_num_t)4 #define RX1 (gpio_num_t)18
#elif CONFIG_IDF_TARGET_ESP32C3 #elif CONFIG_IDF_TARGET_ESP32C3
#define RX1 (gpio_num_t)18 #define RX1 (gpio_num_t)18
#elif CONFIG_IDF_TARGET_ESP32S3 #elif CONFIG_IDF_TARGET_ESP32S3
...@@ -151,9 +150,9 @@ typedef enum { ...@@ -151,9 +150,9 @@ typedef enum {
#ifndef TX1 #ifndef TX1
#if CONFIG_IDF_TARGET_ESP32 #if CONFIG_IDF_TARGET_ESP32
#define TX1 (gpio_num_t)27 #define TX1 (gpio_num_t)10
#elif CONFIG_IDF_TARGET_ESP32S2 #elif CONFIG_IDF_TARGET_ESP32S2
#define TX1 (gpio_num_t)5 #define TX1 (gpio_num_t)17
#elif CONFIG_IDF_TARGET_ESP32C3 #elif CONFIG_IDF_TARGET_ESP32C3
#define TX1 (gpio_num_t)19 #define TX1 (gpio_num_t)19
#elif CONFIG_IDF_TARGET_ESP32S3 #elif CONFIG_IDF_TARGET_ESP32S3
...@@ -167,7 +166,7 @@ typedef enum { ...@@ -167,7 +166,7 @@ typedef enum {
#if SOC_UART_NUM > 2 #if SOC_UART_NUM > 2
#ifndef RX2 #ifndef RX2
#if CONFIG_IDF_TARGET_ESP32 #if CONFIG_IDF_TARGET_ESP32
#define RX2 (gpio_num_t)4 #define RX2 (gpio_num_t)16
#elif CONFIG_IDF_TARGET_ESP32S3 #elif CONFIG_IDF_TARGET_ESP32S3
#define RX2 (gpio_num_t)19 #define RX2 (gpio_num_t)19
#endif #endif
...@@ -175,7 +174,7 @@ typedef enum { ...@@ -175,7 +174,7 @@ typedef enum {
#ifndef TX2 #ifndef TX2
#if CONFIG_IDF_TARGET_ESP32 #if CONFIG_IDF_TARGET_ESP32
#define TX2 (gpio_num_t)25 #define TX2 (gpio_num_t)17
#elif CONFIG_IDF_TARGET_ESP32S3 #elif CONFIG_IDF_TARGET_ESP32S3
#define TX2 (gpio_num_t)20 #define TX2 (gpio_num_t)20
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment