aboutsummaryrefslogtreecommitdiff
path: root/examples/message.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/message.rs')
-rw-r--r--examples/message.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/message.rs b/examples/message.rs
index 596f2449..f9736728 100644
--- a/examples/message.rs
+++ b/examples/message.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(/* no message */).unwrap();
+
+ init::LateResources {}
}
#[task(spawn = [bar])]
@@ -49,4 +51,4 @@ const APP: () = {
extern "C" {
fn SSI0();
}
-};
+}