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

[beken-72xx] Fix CHANGE interrupt logic #290

Merged
merged 2 commits into from
Sep 5, 2024
Merged

[beken-72xx] Fix CHANGE interrupt logic #290

merged 2 commits into from
Sep 5, 2024

Conversation

olivluca
Copy link
Contributor

The CHANGE implementation used the wrong logic (using gpioMode instead of irqMode to switch the interrupt edge).
It also changes the edge after calling the isr instead of before (to avoid signal changes while servicing the isr, though that would be bad anyway).
It also sets the initial edge based on the current level of the pin.

@kuba2k2 kuba2k2 changed the title fix CHANGE interrupt for beken-72xx [beken-72xx] Fix CHANGE interrupt logic Sep 5, 2024
cores/beken-72xx/arduino/src/wiring_irq.c Outdated Show resolved Hide resolved
@kuba2k2 kuba2k2 merged commit 41819f2 into libretiny-eu:master Sep 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants