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

Interrupts: remove C prototype and keep only C++ prototypes #1617

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Jan 6, 2022

Summary
Interrupts: remove C prototype and keep only C++ prototypes

attachInterrupt() C prototypes was not usable from C source file
(inheritance of former pure C implementation), and causes ambiguity
when used with lambda function as callback
Fixes #1601

@ABOSTM ABOSTM added the enhancement New feature or request label Jan 6, 2022
@ABOSTM ABOSTM requested a review from fpistm January 6, 2022 16:45
@ABOSTM ABOSTM force-pushed the INTERRUPTS_REMOVE_C_PROTOTYPES branch 2 times, most recently from 029e1d4 to 1fd386b Compare January 6, 2022 16:49
@ABOSTM ABOSTM force-pushed the INTERRUPTS_REMOVE_C_PROTOTYPES branch from 1fd386b to fe5a441 Compare January 6, 2022 17:50
cores/arduino/wiring.h Outdated Show resolved Hide resolved
attachInterrupt() C prototypes was not usable from C source file
(inheritance of former pure C implementation), and causes ambiguity
when used with lambda function as callback
Fixes stm32duino#1601

Signed-off-by: Alexandre Bourdiol <[email protected]>
@ABOSTM ABOSTM force-pushed the INTERRUPTS_REMOVE_C_PROTOTYPES branch from fe5a441 to c78cb1b Compare January 7, 2022 07:33
@fpistm fpistm merged commit ea9a82e into stm32duino:main Jan 7, 2022
@fpistm fpistm added this to the 2.3.0 milestone Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Call of overloaded attachInterrupt is ambiguous with a lambda callback
2 participants