aboutsummaryrefslogtreecommitdiff
path: root/examples/ramfunc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ramfunc.rs')
-rw-r--r--examples/ramfunc.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/ramfunc.rs b/examples/ramfunc.rs
index 1f95d496..5ff167a3 100644
--- a/examples/ramfunc.rs
+++ b/examples/ramfunc.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 = [bar])]
- fn init(c: init::Context) {
+ fn init(c: init::Context) -> init::LateResources {
c.spawn.bar().unwrap();
+
+ init::LateResources {}
}
#[inline(never)]
@@ -38,4 +40,4 @@ const APP: () = {
#[link_section = ".data.UART1"]
fn UART1();
}
-};
+}