Add multi-priority executor example.

This commit is contained in:
Dario Nieuwenhuis
2020-09-26 00:36:02 +02:00
parent 37d2b440ff
commit 68eac3a57c
2 changed files with 186 additions and 1 deletions

View File

@ -18,7 +18,7 @@ The `embassy::executor` module provides an async/await executor based on [static
- No `alloc`, no heap needed. Task futures are statically allocated.
- Integrated timer queue allows simple sleeping: `Timer::after(Duration::from_ticks(64000)).await;`.
- Suitable for low-power operation. Using interrupts or `WFE/SEV` ensures the CPU sleeps when there's no work to do. No busy-loop polling.
- Creating multiple executor instances is supported, to run tasks with multiple priority levels. This allows higher-priority tasks to preempt lower-priority tasks. (example coming soon)
- Creating multiple executor instances is supported, to run tasks with multiple priority levels. This allows higher-priority tasks to preempt lower-priority tasks.
- Compatible with RTIC (example coming soon).
## Utils