diff options
Diffstat (limited to 'examples/binds.rs')
-rw-r--r-- | examples/binds.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/binds.rs b/examples/binds.rs index db5bd96f..601f245a 100644 --- a/examples/binds.rs +++ b/examples/binds.rs @@ -34,10 +34,11 @@ mod app { rtic::pend(Interrupt::UART0); - debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator - loop { + // Exit moved after nop to ensure that rtic::pend gets + // to run before exiting cortex_m::asm::nop(); + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator } } |