mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
All examples pass with cargo xtask --target all
This commit is contained in:
parent
ceaf3613d3
commit
35c97b61c1
13 changed files with 28 additions and 21 deletions
|
@ -1,5 +1,6 @@
|
|||
init
|
||||
hello from normal 2
|
||||
hello from async 2
|
||||
hello from normal 1
|
||||
hello from async 1
|
||||
hello from async 3 a 1
|
||||
hello from async 4 a 2
|
||||
hello from async 1 a 3
|
||||
hello from async 2 a 4
|
||||
idle
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
init
|
||||
hello from normal
|
||||
hello from async2
|
||||
hello from async
|
||||
idle
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
async_task data:[22, 22, 22, 22, 22]
|
||||
uart0 data:[22, 22, 22, 22, 22]
|
||||
idle
|
|
@ -1,2 +1,2 @@
|
|||
foo: a = 0, b = 0, c = 0
|
||||
bar: a = 0, b = 0, c = 0
|
||||
bar: a = 0, b = 1, c = 2
|
||||
foo: a = 0, b = 1, c = 2
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
foo 1, 2
|
||||
foo 2, 3
|
||||
foo
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
foo: local_to_foo = 1
|
||||
bar: local_to_bar = 1
|
||||
foo: local_to_foo = 1
|
||||
idle: local_to_idle = 1
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
init
|
||||
bar a 13
|
||||
foo a 13
|
|
@ -34,10 +34,9 @@ mod app {
|
|||
|
||||
rtic::pend(Interrupt::UART0);
|
||||
|
||||
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
|
||||
|
||||
loop {
|
||||
cortex_m::asm::nop();
|
||||
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,10 +40,9 @@ mod app {
|
|||
|
||||
rtic::pend(Interrupt::UART0);
|
||||
|
||||
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
|
||||
|
||||
loop {
|
||||
cortex_m::asm::nop();
|
||||
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ mod app {
|
|||
|
||||
rtic::pend(Interrupt::UART1);
|
||||
|
||||
cortex_m::asm::nop();
|
||||
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
|
||||
}
|
||||
|
||||
|
|
|
@ -37,10 +37,9 @@ mod app {
|
|||
|
||||
rtic::pend(Interrupt::UART0);
|
||||
|
||||
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
|
||||
|
||||
loop {
|
||||
cortex_m::asm::nop();
|
||||
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -62,6 +62,6 @@ mod app {
|
|||
#[task(shared = [&shared])]
|
||||
async fn bar(c: bar::Context) {
|
||||
let shared: &NotSync = c.shared.shared;
|
||||
hprintln!("foo a {}", shared.data);
|
||||
hprintln!("bar a {}", shared.data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,12 +87,14 @@ fn main() -> anyhow::Result<()> {
|
|||
let targets = [ARMV7M, ARMV6M];
|
||||
|
||||
let examples: Vec<_> = std::fs::read_dir("./examples")?
|
||||
.filter_map(|path| {
|
||||
path.map(|p| p.path().file_stem().unwrap().to_str().unwrap().to_string())
|
||||
.ok()
|
||||
})
|
||||
.filter_map(|p| p.ok())
|
||||
.map(|p| p.path())
|
||||
.filter(|p| p.display().to_string().ends_with(".rs"))
|
||||
.map(|path| path.file_stem().unwrap().to_str().unwrap().to_string())
|
||||
.collect();
|
||||
|
||||
println!("examples: {examples:?}");
|
||||
|
||||
let opts = Options::from_args();
|
||||
let target = &opts.target;
|
||||
|
||||
|
|
Loading…
Reference in a new issue