You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
177: Add check_interrupt method for GPIO pins r=therealprof a=mvirkkunen
This is needed to properly use pins where the interrupt vector is shared between multiple pins. Copied and pasted from stm32f1xx-hal, except that I changed the method to `&self` as opposed to `&mut self` because that makes more sense for a getter.
Personally I'd prefer a single method that both checks and clears the interrupt bit in one operation and returns if it was set, but I'm not sure if that has issues in some use cases. This way the user gets to decide.
Co-authored-by: Matti Virkkunen <[email protected]>
0 commit comments