aboutsummaryrefslogtreecommitdiff
path: root/macros/src
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-01-11 20:56:45 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-01-11 20:56:45 +0100
commit1be43fc489993e63577515063ceb8a83b14423b8 (patch)
tree128911a00f60bb7c0dc9c6ceb8c87e80e3935a99 /macros/src
parentdd12a6a14d2bb028c8da96cb510b67de31d28be4 (diff)
downloadrtic-1be43fc489993e63577515063ceb8a83b14423b8.tar.gz
rtic-1be43fc489993e63577515063ceb8a83b14423b8.tar.zst
rtic-1be43fc489993e63577515063ceb8a83b14423b8.zip
adapt to changes in the cortex-m crate
Diffstat (limited to 'macros/src')
-rw-r--r--macros/src/trans.rs4
1 files changed, 2 insertions, 2 deletions
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<Tokens>, root: &mut Vec<Tokens>) {
});
}
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(());
});
}