Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5424f91

Browse filesBrowse files
authored
fix: restores UART1/2 pins as in 2.0.14 (espressif#9502)
1 parent b49cfc2 commit 5424f91
Copy full SHA for 5424f91

File tree

1 file changed

+6
-6
lines changed
Filter options

1 file changed

+6
-6
lines changed

‎cores/esp32/HardwareSerial.h

Copy file name to clipboardExpand all lines: cores/esp32/HardwareSerial.h
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ typedef enum {
138138
#if SOC_UART_NUM > 1
139139
#ifndef RX1
140140
#if CONFIG_IDF_TARGET_ESP32
141-
#define RX1 (gpio_num_t)26
141+
#define RX1 (gpio_num_t)9
142142
#elif CONFIG_IDF_TARGET_ESP32S2
143-
#define RX1 (gpio_num_t)4
143+
#define RX1 (gpio_num_t)18
144144
#elif CONFIG_IDF_TARGET_ESP32C3
145145
#define RX1 (gpio_num_t)18
146146
#elif CONFIG_IDF_TARGET_ESP32S3
@@ -150,9 +150,9 @@ typedef enum {
150150

151151
#ifndef TX1
152152
#if CONFIG_IDF_TARGET_ESP32
153-
#define TX1 (gpio_num_t)27
153+
#define TX1 (gpio_num_t)10
154154
#elif CONFIG_IDF_TARGET_ESP32S2
155-
#define TX1 (gpio_num_t)5
155+
#define TX1 (gpio_num_t)17
156156
#elif CONFIG_IDF_TARGET_ESP32C3
157157
#define TX1 (gpio_num_t)19
158158
#elif CONFIG_IDF_TARGET_ESP32S3
@@ -166,15 +166,15 @@ typedef enum {
166166
#if SOC_UART_NUM > 2
167167
#ifndef RX2
168168
#if CONFIG_IDF_TARGET_ESP32
169-
#define RX2 (gpio_num_t)4
169+
#define RX2 (gpio_num_t)16
170170
#elif CONFIG_IDF_TARGET_ESP32S3
171171
#define RX2 (gpio_num_t)19
172172
#endif
173173
#endif
174174

175175
#ifndef TX2
176176
#if CONFIG_IDF_TARGET_ESP32
177-
#define TX2 (gpio_num_t)25
177+
#define TX2 (gpio_num_t)17
178178
#elif CONFIG_IDF_TARGET_ESP32S3
179179
#define TX2 (gpio_num_t)20
180180
#endif

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.