diff options
Diffstat (limited to 'examples/t-init-main.rs')
-rw-r--r-- | examples/t-init-main.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/t-init-main.rs b/examples/t-init-main.rs index 6a6cd991..7c23cc83 100644 --- a/examples/t-init-main.rs +++ b/examples/t-init-main.rs @@ -7,9 +7,11 @@ use cortex_m_semihosting::debug; use panic_semihosting as _; #[rtic::app(device = lm3s6965)] -const APP: () = { +mod app { #[init] - fn main(_: main::Context) { + fn init(_: init::Context) -> init::LateResources { debug::exit(debug::EXIT_SUCCESS); + + init::LateResources {} } -}; +} |