summaryrefslogtreecommitdiff
path: root/nrf-softdevice/src/critical_section_impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'nrf-softdevice/src/critical_section_impl.rs')
-rw-r--r--nrf-softdevice/src/critical_section_impl.rs4
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);