diff options
author | 2018-05-11 17:04:05 +0200 | |
---|---|---|
committer | 2018-05-11 17:09:36 +0200 | |
commit | 93abfac2a7e092d739e3e9b61bcd4f8614541428 (patch) | |
tree | 716486743e0fb0de56b5a9ed05e2af57e80a627d /src/macros.rs | |
parent | b098b6af6aa48826aa1471ba3359a42d6d3e059a (diff) | |
download | cortex-m-93abfac2a7e092d739e3e9b61bcd4f8614541428.tar.gz cortex-m-93abfac2a7e092d739e3e9b61bcd4f8614541428.tar.zst cortex-m-93abfac2a7e092d739e3e9b61bcd4f8614541428.zip |
stable by default, remove exception module, add SCB.vect_active, ..
tweak Exception enum to match CMSIS names, document the parts of the API that require opting into
`"inline-asm"`.
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/macros.rs b/src/macros.rs index 7bbc9be..e41cdc5 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -63,16 +63,19 @@ macro_rules! singleton { let expr = $expr; #[allow(unsafe_code)] - unsafe { VAR = Some(expr) } + unsafe { + VAR = Some(expr) + } #[allow(unsafe_code)] - unsafe { VAR.as_mut() } + unsafe { + VAR.as_mut() + } } }) - } + }; } - /// ``` compile_fail /// #[macro_use(singleton)] /// extern crate cortex_m; |