diff options
Diffstat (limited to 'ui/single/locals-cfg.rs')
| -rw-r--r-- | ui/single/locals-cfg.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/single/locals-cfg.rs b/ui/single/locals-cfg.rs index 54bba8a..45a7a91 100644 --- a/ui/single/locals-cfg.rs +++ b/ui/single/locals-cfg.rs @@ -1,13 +1,16 @@ #![no_main] +use panic_halt as _; #[rtic::app(device = lm3s6965)] -const APP: () = { +mod app { #[init] - fn init(_: init::Context) { + fn init(_: init::Context) -> init::LateResources { #[cfg(never)] static mut FOO: u32 = 0; FOO; + + init::LateResources {} } #[idle] @@ -47,4 +50,4 @@ const APP: () = { extern "C" { fn UART1(); } -}; +} |
