@@ -135,12 +135,12 @@ typedef enum {
135
135
#endif
136
136
137
137
// Default pins for UART1 are arbitrary, and defined here for convenience.
138
-
138
+ # if SOC_UART_NUM > 1
139
139
#ifndef RX1
140
140
#if CONFIG_IDF_TARGET_ESP32
141
- #define RX1 (gpio_num_t )9
141
+ #define RX1 (gpio_num_t )26
142
142
#elif CONFIG_IDF_TARGET_ESP32S2
143
- #define RX1 (gpio_num_t )18
143
+ #define RX1 (gpio_num_t )4
144
144
#elif CONFIG_IDF_TARGET_ESP32C3
145
145
#define RX1 (gpio_num_t )18
146
146
#elif CONFIG_IDF_TARGET_ESP32S3
@@ -150,9 +150,9 @@ typedef enum {
150
150
151
151
#ifndef TX1
152
152
#if CONFIG_IDF_TARGET_ESP32
153
- #define TX1 (gpio_num_t )10
153
+ #define TX1 (gpio_num_t )27
154
154
#elif CONFIG_IDF_TARGET_ESP32S2
155
- #define TX1 (gpio_num_t )17
155
+ #define TX1 (gpio_num_t )5
156
156
#elif CONFIG_IDF_TARGET_ESP32C3
157
157
#define TX1 (gpio_num_t )19
158
158
#elif CONFIG_IDF_TARGET_ESP32S3
@@ -166,15 +166,15 @@ typedef enum {
166
166
#if SOC_UART_NUM > 2
167
167
#ifndef RX2
168
168
#if CONFIG_IDF_TARGET_ESP32
169
- #define RX2 (gpio_num_t )16
169
+ #define RX2 (gpio_num_t )4
170
170
#elif CONFIG_IDF_TARGET_ESP32S3
171
171
#define RX2 (gpio_num_t )19
172
172
#endif
173
173
#endif
174
174
175
175
#ifndef TX2
176
176
#if CONFIG_IDF_TARGET_ESP32
177
- #define TX2 (gpio_num_t )17
177
+ #define TX2 (gpio_num_t )25
178
178
#elif CONFIG_IDF_TARGET_ESP32S3
179
179
#define TX2 (gpio_num_t )20
180
180
#endif
0 commit comments