diff --git a/ci/expected/lock_cost.run b/ci/expected/lock_cost.run new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ci/expected/lockall_cost.run b/ci/expected/lockall_cost.run new file mode 100644 index 0000000000..e69de29bb2 diff --git a/examples/lock_cost.rs b/examples/lock_cost.rs index fe07c93376..887a3a8a00 100644 --- a/examples/lock_cost.rs +++ b/examples/lock_cost.rs @@ -19,6 +19,8 @@ mod app { #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + use cortex_m_semihosting::debug; + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator (Shared { shared: 0 }, Local {}, init::Monotonics()) } diff --git a/examples/lockall_cost.rs b/examples/lockall_cost.rs index d3a5a8179c..ba87e8e488 100644 --- a/examples/lockall_cost.rs +++ b/examples/lockall_cost.rs @@ -19,6 +19,8 @@ mod app { #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + use cortex_m_semihosting::debug; + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator (Shared { shared: 0 }, Local {}, init::Monotonics()) }