Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
627ffe6c
Unverified
Commit
627ffe6c
authored
Apr 13, 2024
by
Rodrigo Garcia
Committed by
GitHub
Apr 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore 2.x RX1/TX1 RX2/TX2 pins
parent
83372a3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
cores/esp32/HardwareSerial.h
cores/esp32/HardwareSerial.h
+7
-8
No files found.
cores/esp32/HardwareSerial.h
View file @
627ffe6c
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment