diff options
Diffstat (limited to 'examples/t-binds.rs')
-rw-r--r-- | examples/t-binds.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/t-binds.rs b/examples/t-binds.rs index 588ac46f..3ca4c66e 100644 --- a/examples/t-binds.rs +++ b/examples/t-binds.rs @@ -8,9 +8,11 @@ use panic_halt as _; #[rtic::app(device = lm3s6965)] -const APP: () = { +mod app { #[init] - fn init(_: init::Context) {} + fn init(_: init::Context) -> init::LateResources { + init::LateResources {} + } // Cortex-M exception #[task(binds = SVCall)] @@ -23,7 +25,7 @@ const APP: () = { fn bar(c: bar::Context) { bar_trampoline(c) } -}; +} #[allow(dead_code)] fn foo_trampoline(_: foo::Context) {} |