aboutsummaryrefslogtreecommitdiff
path: root/examples/peripherals-taken.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2021-02-20 19:22:45 +0100
committerEmil Fresk <emil.fresk@gmail.com>2021-02-20 19:22:45 +0100
commit555f36857ec93bed26ff4249593992f500b7c4ab (patch)
tree97db7bea39684b64f33d208bc4c413f469ae53e5 /examples/peripherals-taken.rs
parentd02f9a02411de1bc79490c86541e95879b7b19b8 (diff)
Test fixes
Diffstat (limited to 'examples/peripherals-taken.rs')
-rw-r--r--examples/peripherals-taken.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/peripherals-taken.rs b/examples/peripherals-taken.rs
index 98f06b0..6b4a282 100644
--- a/examples/peripherals-taken.rs
+++ b/examples/peripherals-taken.rs
@@ -10,10 +10,10 @@ mod app {
use cortex_m_semihosting::debug;
#[init]
- fn init(_: init::Context) -> init::LateResources {
+ fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
assert!(cortex_m::Peripherals::take().is_none());
debug::exit(debug::EXIT_SUCCESS);
- init::LateResources {}
+ (init::LateResources {}, init::Monotonics())
}
}