run tests added

This commit is contained in:
Per Lindgren 2021-10-26 20:04:07 +02:00
parent 34b1738085
commit fdf342c2c6
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())
}