aboutsummaryrefslogtreecommitdiff
path: root/examples/big-struct-opt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/big-struct-opt.rs')
-rw-r--r--examples/big-struct-opt.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/big-struct-opt.rs b/examples/big-struct-opt.rs
index 2d0cc83d..bbc2535a 100644
--- a/examples/big-struct-opt.rs
+++ b/examples/big-struct-opt.rs
@@ -24,6 +24,7 @@ impl BigStruct {
mod app {
use super::BigStruct;
use core::mem::MaybeUninit;
+ use cortex_m_semihosting::debug;
#[shared]
struct Shared {
@@ -41,6 +42,8 @@ mod app {
&mut *cx.local.bs.as_mut_ptr()
};
+ debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
+
(
Shared {
// assign the reference so we can use the resource