aboutsummaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-05-11 17:04:05 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-05-11 17:09:36 +0200
commit93abfac2a7e092d739e3e9b61bcd4f8614541428 (patch)
tree716486743e0fb0de56b5a9ed05e2af57e80a627d /src/macros.rs
parentb098b6af6aa48826aa1471ba3359a42d6d3e059a (diff)
downloadcortex-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.rs11
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;