diff options
| author | Liam Murphy <[email protected]> | 2021-07-27 17:28:52 +1000 |
|---|---|---|
| committer | Liam Murphy <[email protected]> | 2021-07-27 17:28:52 +1000 |
| commit | 079526559f44a0822574205e8798136f11f207d3 (patch) | |
| tree | 139c2f70d7227a128cae234869f846e86b6dd6e7 /examples/std | |
| parent | 1b7ad7080e6a8c96f2622d75b99a4d3bdbc7c394 (diff) | |
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.
Diffstat (limited to 'examples/std')
0 files changed, 0 insertions, 0 deletions
