diff options
| author | homunkulus <homunkulus@gmx.com> | 2018-01-11 19:57:17 +0000 |
|---|---|---|
| committer | homunkulus <homunkulus@gmx.com> | 2018-01-11 19:57:17 +0000 |
| commit | 34edc41e9289e83468f68663a7f4a7f0f6cc2797 (patch) | |
| tree | 128911a00f60bb7c0dc9c6ceb8c87e80e3935a99 /macros/src | |
| parent | dd12a6a14d2bb028c8da96cb510b67de31d28be4 (diff) | |
| parent | 1be43fc489993e63577515063ceb8a83b14423b8 (diff) | |
Auto merge of #63 - japaric:cortex-m-up, r=japaric
adapt to changes in the cortex-m crate
None
Diffstat (limited to 'macros/src')
| -rw-r--r-- | macros/src/trans.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/trans.rs b/macros/src/trans.rs index b50c73d..42f7487 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(()); }); } |
