Interrupt callback function is instantly called on samd51 after setting it from within interrupt callback function #19861
Labels
Area: cpu
Area: CPU/MCU ports
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
I'm setting a new interrupt callback function for a GPIO pin from within the previous callback function for the same GPIO pin.
Steps to reproduce the issue
Expected results
I would expect nothing to happen except that the next time an interrupt is triggered the new callback function will be called.
Actual results
Unless disabling interrupts for this pin while setting the new callback, the new handler will be called instantly on samd51, but not on saml21.
Versions
Based on RIOT 2023.04
The text was updated successfully, but these errors were encountered: