aboutsummaryrefslogtreecommitdiff
path: root/examples/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/init.rs')
-rw-r--r--examples/init.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/init.rs b/examples/init.rs
index ea543338..6ac284a1 100644
--- a/examples/init.rs
+++ b/examples/init.rs
@@ -11,7 +11,7 @@ use panic_semihosting as _;
#[rtic::app(device = lm3s6965, peripherals = true)]
mod app {
#[init]
- fn init(cx: init::Context) {
+ fn init(cx: init::Context) -> init::LateResources {
static mut X: u32 = 0;
// Cortex-M peripherals
@@ -30,5 +30,7 @@ mod app {
hprintln!("init").unwrap();
debug::exit(debug::EXIT_SUCCESS);
+
+ init::LateResources {}
}
}