diff options
author | 2021-11-03 21:44:57 +0100 | |
---|---|---|
committer | 2021-11-03 21:44:57 +0100 | |
commit | d0a3d270948f870fd7add51149448c2164b3193d (patch) | |
tree | 85e388104edb9c63c63ca79cc2e819313bd51a40 /src/export.rs | |
parent | b138cc163148ba307cc9548e66efbf90a6482d25 (diff) | |
download | rtic-lockall_take2.tar.gz rtic-lockall_take2.tar.zst rtic-lockall_take2.zip |
wip tests do pass, Mutex basedlockall_take2
Diffstat (limited to 'src/export.rs')
-rw-r--r-- | src/export.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/export.rs b/src/export.rs index 07a41d73..df4d86fc 100644 --- a/src/export.rs +++ b/src/export.rs @@ -171,7 +171,7 @@ pub unsafe fn lock<T, R>( #[cfg(armv7m)] #[inline(always)] pub unsafe fn lock_struct<T, R>( - ptr: impl Fn() -> T, + ptr: unsafe fn() -> T, priority: &Priority, ceiling: u8, nvic_prio_bits: u8, @@ -237,7 +237,7 @@ pub unsafe fn lock<T, R>( #[cfg(not(armv7m))] #[inline(always)] pub unsafe fn lock_struct<T, R>( - ptr: impl Fn() -> T, + ptr: unsafe fn() -> T, priority: &Priority, ceiling: u8, _nvic_prio_bits: u8, |