diff options
Diffstat (limited to 'examples/t-spawn.rs')
-rw-r--r-- | examples/t-spawn.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/t-spawn.rs b/examples/t-spawn.rs index 0f98592e..2bd771d7 100644 --- a/examples/t-spawn.rs +++ b/examples/t-spawn.rs @@ -9,6 +9,8 @@ use panic_semihosting as _; #[rtic::app(device = lm3s6965, dispatchers = [SSI0])] mod app { + use cortex_m_semihosting::debug; + #[shared] struct Shared {} @@ -21,6 +23,8 @@ mod app { let _: Result<(), u32> = bar::spawn(0); let _: Result<(), (u32, u32)> = baz::spawn(0, 1); + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator + (Shared {}, Local {}, init::Monotonics()) } |