aboutsummaryrefslogtreecommitdiff
path: root/examples/idle-wfi.rs
diff options
context:
space:
mode:
authorGravatar Per Lindgren <per.lindgren@ltu.se> 2023-01-07 14:09:31 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:31:07 +0100
commit4337e3980c52116e1606c60ff12eaea4a9971ece (patch)
treeb0900d9fec87d848bed6da3a21f5eeda8d1747d1 /examples/idle-wfi.rs
parent6dc2d29cd994a27fa59e23f9fb0bece677c83ffa (diff)
downloadrtic-4337e3980c52116e1606c60ff12eaea4a9971ece.tar.gz
rtic-4337e3980c52116e1606c60ff12eaea4a9971ece.tar.zst
rtic-4337e3980c52116e1606c60ff12eaea4a9971ece.zip
examples/idle-wfi fixed
Diffstat (limited to '')
-rw-r--r--examples/idle-wfi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/idle-wfi.rs b/examples/idle-wfi.rs
index 4a8a8dee..dd2d43f7 100644
--- a/examples/idle-wfi.rs
+++ b/examples/idle-wfi.rs
@@ -18,14 +18,14 @@ mod app {
struct Local {}
#[init]
- fn init(mut cx: init::Context) -> (Shared, Local, init::Monotonics) {
+ fn init(mut cx: init::Context) -> (Shared, Local) {
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
cx.core.SCB.set_sleepdeep();
- (Shared {}, Local {}, init::Monotonics())
+ (Shared {}, Local {})
}
#[idle(local = [x: u32 = 0])]