Crates.io | async-hal |
lib.rs | async-hal |
version | 0.1.0-alpha.11 |
source | src |
created_at | 2023-05-26 20:01:42.622318 |
updated_at | 2023-06-09 03:48:20.593493 |
description | Async hardware abstraction layer for embedded devices |
homepage | |
repository | https://github.com/matthunz/async-hal |
max_upload_size | |
id | 875292 |
size | 60,568 |
Async hardware abstraction layer for embedded devices
use async_hal::delay::DelayMs;
let mut led = _;
let mut timer = _;
loop {
led.toggle();
timer.delay_ms(1_000).await?;
}
use async_hal::io;
let mut serial_tx = _;
let mut serial_rx = _;
loop {
io::copy_buf(&mut serial_tx, &mut serial_rx).await?
}