diff options
Diffstat (limited to 'examples/t-cfg-resources.rs')
-rw-r--r-- | examples/t-cfg-resources.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/t-cfg-resources.rs b/examples/t-cfg-resources.rs index 3b06f0e0..99c97ba5 100644 --- a/examples/t-cfg-resources.rs +++ b/examples/t-cfg-resources.rs @@ -7,6 +7,8 @@ use panic_semihosting as _; #[rtic::app(device = lm3s6965)] mod app { + use cortex_m_semihosting::debug; + #[shared] struct Shared { // A conditionally compiled resource behind feature_x @@ -19,6 +21,8 @@ mod app { #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator + ( Shared { #[cfg(feature = "feature_x")] |