Skip to content

Commit

Permalink
clean rtic examples
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Dec 31, 2023
1 parent e11ec5a commit d1eb6be
Show file tree
Hide file tree
Showing 111 changed files with 5 additions and 2,906 deletions.
1 change: 0 additions & 1 deletion ci/expected/hifive1/prio_inheritance.run
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
[SoftLow2]: Yield
[SoftLow1]: Finished
[SoftLow2]: Finished
[Idle]: Shared: 4
[Idle]: Finished
12 changes: 3 additions & 9 deletions examples/hifive1/examples/prio_inheritance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,14 @@ mod app {
(Shared { counter: 0 }, Local {})
}

#[idle(shared = [counter])]
#[idle]
fn idle(mut cx: idle::Context) -> ! {
hprintln!("[Idle]: Started");
// pend the medium priority SW task only once
soft_medium::spawn().unwrap();
// check that the shared counter is correct and exit QEMU simulator
let counter = cx.shared.counter.lock(|counter| *counter);
hprintln!("[Idle]: Shared: {}", counter);
// exit QEMU simulator
hprintln!("[Idle]: Finished");
if counter == 4 {
debug::exit(debug::EXIT_SUCCESS);
} else {
debug::exit(debug::EXIT_FAILURE);
}
debug::exit(debug::EXIT_SUCCESS);
// keep waiting for interruptions
loop {
unsafe { riscv::asm::wfi() };
Expand Down
4 changes: 2 additions & 2 deletions rtic/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semiho
runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel"

[target.riscv32imc-unknown-none-elf]
runner = "qemu-system-riscv32 -machine sifive_e,revb=true -nographic -kernel"
runner = "qemu-system-riscv32 -machine sifive_e,revb=true -nographic -semihosting-config enable=on,target=native -kernel"

[target.riscv32imac-unknown-none-elf]
runner = "qemu-system-riscv32 -machine sifive_e,revb=true -nographic -kernel"
runner = "qemu-system-riscv32 -machine sifive_e,revb=true -nographic -semihosting-config enable=on,target=native -kernel"

[target.'cfg(all(any(target_arch = "arm", target_arch = "riscv32"), target_os = "none"))']
rustflags = [
Expand Down
8 changes: 0 additions & 8 deletions rtic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ rtic-core = "1"
critical-section = "1"

[dev-dependencies]
heapless = "0.8"
lm3s6965 = "0.2"
cortex-m-semihosting = "0.5.0"
rtic-time = { path = "../rtic-time" }
rtic-sync = { path = "../rtic-sync" }
rtic-monotonics = { path = "../rtic-monotonics", features = ["cortex-m-systick"] }

[dev-dependencies.futures]
version = "0.3.26"
Expand Down Expand Up @@ -80,7 +76,3 @@ rtic-uitestv6 = ["thumbv6-backend"]
rtic-uitestesp32c3 = ["riscv-esp32c3-backend"]
rtic-uitestclint = ["riscv-clint-backend"]
test-critical-section = ["cortex-m/critical-section-single-core", "rtic-monotonics/systick-100hz"]

# [[example]]
# name = "pool"
# required-features = ["test-critical-section"]
9 changes: 0 additions & 9 deletions rtic/_ci/expected/async-channel-done.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/async-channel-no-receiver.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/async-channel-no-sender.run

This file was deleted.

2 changes: 0 additions & 2 deletions rtic/_ci/expected/async-channel-try.run

This file was deleted.

6 changes: 0 additions & 6 deletions rtic/_ci/expected/async-channel.run

This file was deleted.

7 changes: 0 additions & 7 deletions rtic/_ci/expected/async-delay.run

This file was deleted.

6 changes: 0 additions & 6 deletions rtic/_ci/expected/async-infinite-loop.run

This file was deleted.

6 changes: 0 additions & 6 deletions rtic/_ci/expected/async-task-multiple-prios.run

This file was deleted.

5 changes: 0 additions & 5 deletions rtic/_ci/expected/async-task.run

This file was deleted.

16 changes: 0 additions & 16 deletions rtic/_ci/expected/async-timeout.run

This file was deleted.

3 changes: 0 additions & 3 deletions rtic/_ci/expected/big-struct-opt.run

This file was deleted.

4 changes: 0 additions & 4 deletions rtic/_ci/expected/binds.run

This file was deleted.

3 changes: 0 additions & 3 deletions rtic/_ci/expected/cancel-reschedule.run

This file was deleted.

5 changes: 0 additions & 5 deletions rtic/_ci/expected/capacity.run

This file was deleted.

Empty file.
3 changes: 0 additions & 3 deletions rtic/_ci/expected/common.run

This file was deleted.

47 changes: 0 additions & 47 deletions rtic/_ci/expected/complex.run

This file was deleted.

Empty file.
2 changes: 0 additions & 2 deletions rtic/_ci/expected/destructure.run

This file was deleted.

4 changes: 0 additions & 4 deletions rtic/_ci/expected/extern_binds.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/extern_spawn.run

This file was deleted.

6 changes: 0 additions & 6 deletions rtic/_ci/expected/generics.run

This file was deleted.

4 changes: 0 additions & 4 deletions rtic/_ci/expected/hardware.run

This file was deleted.

2 changes: 0 additions & 2 deletions rtic/_ci/expected/idle-wfi.run

This file was deleted.

2 changes: 0 additions & 2 deletions rtic/_ci/expected/idle.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/init.run

This file was deleted.

3 changes: 0 additions & 3 deletions rtic/_ci/expected/locals.run

This file was deleted.

2 changes: 0 additions & 2 deletions rtic/_ci/expected/lock-free.run

This file was deleted.

5 changes: 0 additions & 5 deletions rtic/_ci/expected/lock.run

This file was deleted.

6 changes: 0 additions & 6 deletions rtic/_ci/expected/message.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/multilock.run

This file was deleted.

3 changes: 0 additions & 3 deletions rtic/_ci/expected/not-sync.run

This file was deleted.

2 changes: 0 additions & 2 deletions rtic/_ci/expected/only-shared-access.run

This file was deleted.

4 changes: 0 additions & 4 deletions rtic/_ci/expected/periodic-at.run

This file was deleted.

7 changes: 0 additions & 7 deletions rtic/_ci/expected/periodic-at2.run

This file was deleted.

4 changes: 0 additions & 4 deletions rtic/_ci/expected/periodic.run

This file was deleted.

Empty file.
Empty file removed rtic/_ci/expected/pool.run
Empty file.
5 changes: 0 additions & 5 deletions rtic/_ci/expected/preempt.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/ramfunc.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/ramfunc.run.grep.bar

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/ramfunc.run.grep.foo

This file was deleted.

2 changes: 0 additions & 2 deletions rtic/_ci/expected/resource-user-struct.run

This file was deleted.

4 changes: 0 additions & 4 deletions rtic/_ci/expected/schedule.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/shared.run

This file was deleted.

Empty file removed rtic/_ci/expected/smallest.run
Empty file.
2 changes: 0 additions & 2 deletions rtic/_ci/expected/spawn.run

This file was deleted.

1 change: 0 additions & 1 deletion rtic/_ci/expected/spawn_arguments.run

This file was deleted.

3 changes: 0 additions & 3 deletions rtic/_ci/expected/spawn_err.run

This file was deleted.

7 changes: 0 additions & 7 deletions rtic/_ci/expected/spawn_loop.run

This file was deleted.

3 changes: 0 additions & 3 deletions rtic/_ci/expected/static.run

This file was deleted.

Empty file removed rtic/_ci/expected/t-binds.run
Empty file.
Empty file.
Empty file removed rtic/_ci/expected/t-htask-main.run
Empty file.
Empty file removed rtic/_ci/expected/t-idle-main.run
Empty file.
Empty file.
Empty file removed rtic/_ci/expected/t-schedule.run
Empty file.
Empty file removed rtic/_ci/expected/t-spawn.run
Empty file.
5 changes: 0 additions & 5 deletions rtic/_ci/expected/task.run

This file was deleted.

3 changes: 0 additions & 3 deletions rtic/_ci/expected/zero-prio-task.run

This file was deleted.

Loading

0 comments on commit d1eb6be

Please sign in to comment.