Skip to content

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
@kuba2k2 kuba2k2 merged commit 41819f2 into libretiny-eu:master Sep 5, 2024
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