aboutsummaryrefslogtreecommitdiff
path: root/examples/idle-wfi.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2023-01-02 14:34:05 +0100
committerHenrik Tjäder <henrik@tjaders.com>2023-03-01 00:31:01 +0100
commit582c602912592ec7ebea3096aefa02aea99c2143 (patch)
tree96b14a130788960ee06d7e80adec43a167b4844b /examples/idle-wfi.rs
parent7614b96fe45240dafe91ae549e712b560e2d4c10 (diff)
Old xtask test pass
Diffstat (limited to 'examples/idle-wfi.rs')
-rw-r--r--examples/idle-wfi.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/idle-wfi.rs b/examples/idle-wfi.rs
index 5e52620..4a8a8de 100644
--- a/examples/idle-wfi.rs
+++ b/examples/idle-wfi.rs
@@ -2,7 +2,6 @@
#![deny(unsafe_code)]
#![deny(warnings)]
-#![deny(missing_docs)]
#![no_main]
#![no_std]
@@ -20,7 +19,7 @@ mod app {
#[init]
fn init(mut cx: init::Context) -> (Shared, Local, init::Monotonics) {
- hprintln!("init");
+ hprintln!("init").unwrap();
// Set the ARM SLEEPONEXIT bit to go to sleep after handling interrupts
// See https://developer.arm.com/docs/100737/0100/power-management/sleep-mode/sleep-on-exit-bit
@@ -34,7 +33,7 @@ mod app {
// Locals in idle have lifetime 'static
let _x: &'static mut u32 = cx.local.x;
- hprintln!("idle");
+ hprintln!("idle").unwrap();
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator