aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-11-20 05:11:25 +0100
committerJorge Aparicio <jorge@japaric.io>2017-12-09 12:45:57 +0100
commite97afa71ce7bf3d78e257de1aab329135e98c721 (patch)
tree8335f9d8327a9863ec64b79934f8241b350f7fe3 /src/lib.rs
parente620b1e57a39f342cf73ad6ac8ab0e179b97bfd5 (diff)
peripherals as scoped singletons
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4ab8ec5..f5481bc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -160,6 +160,6 @@ where
I: Nr,
{
// NOTE(safe) atomic write
- let nvic = unsafe { &*cortex_m::peripheral::NVIC.get() };
+ let nvic = unsafe { &*cortex_m::peripheral::NVIC::ptr() };
nvic.set_pending(interrupt);
}