embassy/embassy-extras
Liam Murphy 079526559f Remove critical sections from PeripheralMutex interrupt handler by checking the interrupt's priority on startup.
Since `PeripheralMutex` is the only way to safely maintain state across interrupts, and it no longer allows setting the interrupt's priority, the priority changing isn't a concern.

This also prevents other causes of UB due to the interrupt being exposed during `with`, and allowing enabling the interrupt and setting its context to a bogus pointer.
2021-07-27 17:28:52 +10:00
..
src Remove critical sections from PeripheralMutex interrupt handler by checking the interrupt's priority on startup. 2021-07-27 17:28:52 +10:00
Cargo.toml extras: Fix UB in Peripheral 2021-07-05 17:42:43 +10:00