async-hal

Crates.ioasync-hal
lib.rsasync-hal
version0.1.0-alpha.11
sourcesrc
created_at2023-05-26 20:01:42.622318
updated_at2023-06-09 03:48:20.593493
descriptionAsync hardware abstraction layer for embedded devices
homepage
repositoryhttps://github.com/matthunz/async-hal
max_upload_size
id875292
size60,568
Matt Hunzinger (matthunz)

documentation

README

async-hal

Async hardware abstraction layer for embedded devices

crate Rust Documentation CI

Examples

Blinky

use async_hal::delay::DelayMs;

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

loop {
    led.toggle();
    timer.delay_ms(1_000).await?;
}

Serial port loopback

use async_hal::io;

let mut serial_tx = _;
let mut serial_rx = _;

loop {
    io::copy_buf(&mut serial_tx, &mut serial_rx).await?
}
Commit count: 87

cargo fmt