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, 3 insertions, 1 deletions
diff --git a/examples/peripherals-taken.rs b/examples/peripherals-taken.rs
index 10bc2603..09f92427 100644
--- a/examples/peripherals-taken.rs
+++ b/examples/peripherals-taken.rs
@@ -9,8 +9,10 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
mod app {
#[init]
- fn taskmain(_: taskmain::Context) {
+ fn init(_: init::Context) -> init::LateResources {
assert!(cortex_m::Peripherals::take().is_none());
debug::exit(debug::EXIT_SUCCESS);
+
+ init::LateResources {}
}
}