async-hal

Async hardware abstraction layer for embedded devices

crate Rust Documentation CI

Examples

Blinky

```rust use async_hal::delay::DelayMs;

let mut led = _; let mut timer = _;

loop { led.toggle(); timer.delayms(1000).await?; } ```

Serial port loopback

```rust use async_hal::io;

let mut serialtx = _; let mut serialrx = _;

loop { io::copybuf(&mut serialtx, &mut serial_rx).await? } ```