run tests added

This commit is contained in:
Per Lindgren 2021-10-26 20:04:07 +02:00 committed by Henrik Tjäder
parent fbd31e09cc
commit 1c709b3d8d
4 changed files with 4 additions and 0 deletions

View file

View file

View file

@ -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())
}

View file

@ -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())
}