diff options
Diffstat (limited to 'examples/t-cfg.rs')
-rw-r--r-- | examples/t-cfg.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs index b6c9e472..3da20d4e 100644 --- a/examples/t-cfg.rs +++ b/examples/t-cfg.rs @@ -6,7 +6,8 @@ use panic_halt as _; #[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)] -const APP: () = { +mod app { + #[resources] struct Resources { #[cfg(never)] #[init(0)] @@ -14,9 +15,11 @@ const APP: () = { } #[init] - fn init(_: init::Context) { + fn init(_: init::Context) -> init::LateResources { #[cfg(never)] static mut BAR: u32 = 0; + + init::LateResources {} } #[idle] @@ -52,4 +55,4 @@ const APP: () = { fn SSI0(); fn QEI0(); } -}; +} |