embedded-runtime-rp2040
This crate provides a tiny async runtime, targeted at embedded devices. Therefore, it provides a single-threaded
executor as well as a stack-allocated box to box futures. This crate injects a hardware implementation for the rp2040
,
based upon wfe
/sev
.
Example
# use ;
#
# /// Blocks until an event occurs (may wake spuriously)
#
#
#
#
# /// Raises an event
#
#
#
use run;
/// A countdown future that resolves to pending until the poll-countdown becomes zero
// This creates a new runtime and executes the given futures in an async context
run!.expect;