aboutsummaryrefslogtreecommitdiff
path: root/examples/peripherals-taken.rs
diff options
context:
space:
mode:
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())
}
}