Skip to content

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 requested a review from me-no-dev September 4, 2023 15:09
@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
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.


#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.


#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


#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