From 1be43fc489993e63577515063ceb8a83b14423b8 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 11 Jan 2018 20:56:45 +0100 Subject: adapt to changes in the cortex-m crate --- macros/src/trans.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macros/src') diff --git a/macros/src/trans.rs b/macros/src/trans.rs index b50c73df..42f7487d 100644 --- a/macros/src/trans.rs +++ b/macros/src/trans.rs @@ -370,10 +370,10 @@ fn init(app: &App, main: &mut Vec, root: &mut Vec) { }); } Kind::Interrupt { enabled } => { - // Interrupt. These can be enabled / disabled through the NVIC + // Interrupt. These are enabled / disabled through the NVIC if interrupts.is_empty() { interrupts.push(quote! { - let nvic = &*#device::NVIC::ptr(); + let mut nvic: #device::NVIC = core::mem::transmute(()); }); } -- cgit v1.2.3