aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/override-exception.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-08-31 22:02:29 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-08-31 22:02:29 +0200
commitf68e65af8fa0bf915209ae7b3d75303c317ea109 (patch)
tree736cdd0a577040a0fd9ac3f26951305dabd2f43d /cortex-m-rt/examples/override-exception.rs
parentf2a155a0715cb99cbace2eca7ab5fcfa93d106d2 (diff)
downloadcortex-m-f68e65af8fa0bf915209ae7b3d75303c317ea109.tar.gz
cortex-m-f68e65af8fa0bf915209ae7b3d75303c317ea109.tar.zst
cortex-m-f68e65af8fa0bf915209ae7b3d75303c317ea109.zip
fix soundness issue; change the syntax of the `exception` attribute
Diffstat (limited to 'cortex-m-rt/examples/override-exception.rs')
-rw-r--r--cortex-m-rt/examples/override-exception.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cortex-m-rt/examples/override-exception.rs b/cortex-m-rt/examples/override-exception.rs
index dca31e6..3e0af25 100644
--- a/cortex-m-rt/examples/override-exception.rs
+++ b/cortex-m-rt/examples/override-exception.rs
@@ -17,13 +17,13 @@ fn main() -> ! {
loop {}
}
-#[exception(DefaultHandler)]
-fn default_handler(_irqn: i16) {
+#[exception]
+fn DefaultHandler(_irqn: i16) {
asm::bkpt();
}
-#[exception(HardFault)]
-fn hard_fault(_ef: &ExceptionFrame) -> ! {
+#[exception]
+fn HardFault(_ef: &ExceptionFrame) -> ! {
asm::bkpt();
loop {}