From b71df58f2fb4ed85d4c8cf806d5837ce63c73f31 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 22 Sep 2021 13:22:45 +0200 Subject: The great docs update --- examples/big-struct-opt.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/big-struct-opt.rs') diff --git a/examples/big-struct-opt.rs b/examples/big-struct-opt.rs index 2d0cc83..bbc2535 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 -- cgit v1.2.3