Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pin attachInterrupt(digitalPinToInterrupt(48)) on all S3 based SOCs #8600

Merged
merged 5 commits into from
Sep 5, 2023

Conversation

SuGlider
Copy link
Collaborator

@SuGlider SuGlider commented Sep 4, 2023

Description of Change

Fixes an issue with attachInterrupt(digitalPinToInterrupt(48)) that prevented it from setting GPIO48 as Interruptable.

Tests scenarios

Only using ESP32-S3, as described in #8560

Related links

Fix #8560

@SuGlider SuGlider added this to the 2.0.12 milestone Sep 4, 2023
@SuGlider SuGlider self-assigned this Sep 4, 2023
@SuGlider SuGlider linked an issue Sep 4, 2023 that may be closed by this pull request
1 task
@VojtechBartoska VojtechBartoska changed the title S3 gpio48 Fix attachInterrupt(digitalPinToInterrupt(48)) on S3 SOCs Sep 4, 2023
@VojtechBartoska VojtechBartoska changed the title Fix attachInterrupt(digitalPinToInterrupt(48)) on S3 SOCs Fix pin attachInterrupt(digitalPinToInterrupt(48)) on all S3 based SOCs Sep 4, 2023
@me-no-dev me-no-dev merged commit 725146d into espressif:release/v2.x Sep 5, 2023
35 checks passed
Copy link
Member

@P-R-O-C-H-Y P-R-O-C-H-Y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have found 3 boards that are ESP32S2, I will open a PR reverting those back.

@@ -14,7 +14,7 @@
#define NUM_ANALOG_INPUTS 12

#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinToInterrupt(p) (((p)<49)?(p):-1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SuGlider Bee Motion boards is based on ESP32-S2.

@@ -14,7 +14,7 @@
#define NUM_ANALOG_INPUTS 20

#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinToInterrupt(p) (((p)<49)?(p):-1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SuGlider This boards is based on ESP32S2

@@ -15,7 +15,7 @@
#define NUM_ANALOG_INPUTS 20

#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinToInterrupt(p) (((p)<49)?(p):-1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SuGlider This boards is based on ESP32S2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

digitalPinToInterrupt doesn't accept pin 48
3 participants