aboutsummaryrefslogtreecommitdiff
path: root/examples/hardware.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-08 19:40:31 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:33:28 +0100
commitceaf3613d3256f60b139a4f93220e3c298603b83 (patch)
tree02ee64f2ac4bebea1abe85f85ca761e44ea8beb9 /examples/hardware.rs
parent9a67f00a30f14df3b9635913f728afd0b40c138d (diff)
downloadrtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.gz
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.tar.zst
rtic-ceaf3613d3256f60b139a4f93220e3c298603b83.zip
Update semihosting
Diffstat (limited to 'examples/hardware.rs')
-rw-r--r--examples/hardware.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/hardware.rs b/examples/hardware.rs
index 8e4f423b..d3ceab9e 100644
--- a/examples/hardware.rs
+++ b/examples/hardware.rs
@@ -24,7 +24,7 @@ mod app {
// `init` returns because interrupts are disabled
rtic::pend(Interrupt::UART0); // equivalent to NVIC::pend
- hprintln!("init").unwrap();
+ hprintln!("init");
(Shared {}, Local {})
}
@@ -33,7 +33,7 @@ mod app {
fn idle(_: idle::Context) -> ! {
// interrupts are enabled again; the `UART0` handler runs at this point
- hprintln!("idle").unwrap();
+ hprintln!("idle");
rtic::pend(Interrupt::UART0);
@@ -53,7 +53,6 @@ mod app {
"UART0 called {} time{}",
*cx.local.times,
if *cx.local.times > 1 { "s" } else { "" }
- )
- .unwrap();
+ );
}
}