mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-20 23:05:21 +01:00
wip2
This commit is contained in:
parent
3c208003f5
commit
c360ffaad8
7 changed files with 270 additions and 41 deletions
|
|
@ -124,6 +124,7 @@ pub unsafe fn lock<T, R>(
|
|||
nvic_prio_bits: u8,
|
||||
f: impl FnOnce(&mut T) -> R,
|
||||
) -> R {
|
||||
|
||||
let current = priority.get();
|
||||
|
||||
if current < ceiling {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue