aboutsummaryrefslogtreecommitdiff
path: root/examples/task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/task.rs')
-rw-r--r--examples/task.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/task.rs b/examples/task.rs
index 12c4ac83..80a9c431 100644
--- a/examples/task.rs
+++ b/examples/task.rs
@@ -9,10 +9,12 @@ use cortex_m_semihosting::{debug, hprintln};
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
#[init(spawn = [foo])]
- fn init(c: init::Context) {
+ fn init(c: init::Context) -> init::LateResources {
c.spawn.foo().unwrap();
+
+ init::LateResources {}
}
#[task(spawn = [bar, baz])]
@@ -52,4 +54,4 @@ const APP: () = {
fn SSI0();
fn QEI0();
}
-};
+}