aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/idle.rs4
-rw-r--r--examples/init.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/idle.rs b/examples/idle.rs
index 55d6b153..9a7a7275 100644
--- a/examples/idle.rs
+++ b/examples/idle.rs
@@ -18,10 +18,10 @@ mod app {
struct Local {}
#[init]
- fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
+ fn init(_: init::Context) -> (Shared, Local) {
hprintln!("init").unwrap();
- (Shared {}, Local {}, init::Monotonics())
+ (Shared {}, Local {})
}
#[idle(local = [x: u32 = 0])]
diff --git a/examples/init.rs b/examples/init.rs
index b8a5bc5b..c807a3c1 100644
--- a/examples/init.rs
+++ b/examples/init.rs
@@ -18,7 +18,7 @@ mod app {
struct Local {}
#[init(local = [x: u32 = 0])]
- fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) {
+ fn init(cx: init::Context) -> (Shared, Local) {
// Cortex-M peripherals
let _core: cortex_m::Peripherals = cx.core;
@@ -36,6 +36,6 @@ mod app {
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
- (Shared {}, Local {}, init::Monotonics())
+ (Shared {}, Local {})
}
}