diff options
author | alexmoon <alex.r.moon@gmail.com> | 2022-07-14 15:41:22 -0400 |
---|---|---|
committer | alexmoon <alex.r.moon@gmail.com> | 2022-07-14 15:41:22 -0400 |
commit | 84006cd336adf2642cb5716433abb5540c4fb8b9 (patch) | |
tree | 4b89f2680b713f20aa0c351ebc90287ba9f72b15 /nrf-softdevice | |
parent | df8edede9a92f454387fda85446d73b2ad9dde03 (diff) | |
download | nrf-softdevice-84006cd336adf2642cb5716433abb5540c4fb8b9.zip |
Update deps
Diffstat (limited to 'nrf-softdevice')
-rw-r--r-- | nrf-softdevice/src/critical_section_impl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nrf-softdevice/src/critical_section_impl.rs b/nrf-softdevice/src/critical_section_impl.rs index 196c2ad..828e102 100644 --- a/nrf-softdevice/src/critical_section_impl.rs +++ b/nrf-softdevice/src/critical_section_impl.rs @@ -56,7 +56,7 @@ critical_section::custom_impl!(CriticalSection); unsafe impl critical_section::Impl for CriticalSection { unsafe fn acquire() -> u8 { - let nvic = &*NVIC::ptr(); + let nvic = &*NVIC::PTR; let nested_cs = CS_FLAG.load(Ordering::SeqCst); if !nested_cs { @@ -79,7 +79,7 @@ unsafe impl critical_section::Impl for CriticalSection { unsafe fn release(token: u8) { compiler_fence(Ordering::SeqCst); - let nvic = &*NVIC::ptr(); + let nvic = &*NVIC::PTR; if token == 0 { raw_critical_section(|| { CS_FLAG.store(false, Ordering::Relaxed); |