aboutsummaryrefslogtreecommitdiff
path: root/examples/not-sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/not-sync.rs')
-rw-r--r--examples/not-sync.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index 21c316ae..f01d4043 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -6,7 +6,7 @@
#![no_std]
use core::marker::PhantomData;
-use panic_halt as _;
+use panic_semihosting as _;
pub struct NotSync {
_0: PhantomData<*const ()>,
@@ -25,10 +25,10 @@ mod app {
}
#[init]
- fn init(_: init::Context) -> init::LateResources {
+ fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
debug::exit(debug::EXIT_SUCCESS);
- init::LateResources {}
+ (init::LateResources {}, init::Monotonics())
}
#[task(resources = [&shared])]