diff options
Diffstat (limited to 'examples/init.rs')
-rw-r--r-- | examples/init.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/init.rs b/examples/init.rs index 315969f0..aaf71f97 100644 --- a/examples/init.rs +++ b/examples/init.rs @@ -9,7 +9,7 @@ use cortex_m_semihosting::{debug, hprintln}; use panic_semihosting as _; #[rtic::app(device = lm3s6965, peripherals = true)] -const APP: () = { +mod app { #[init] fn init(cx: init::Context) { static mut X: u32 = 0; @@ -27,4 +27,4 @@ const APP: () = { debug::exit(debug::EXIT_SUCCESS); } -}; +} |