Crates.io | asm-delay |
lib.rs | asm-delay |
version | 1.0.0 |
source | src |
created_at | 2019-03-06 19:20:22.86516 |
updated_at | 2024-01-28 20:24:43.453075 |
description | no_std implementation of embedded-hal DelayMs & DelayUs based on arm::delay |
homepage | |
repository | https://github.com/copterust/asm-delay |
max_upload_size | |
id | 119167 |
size | 5,335 |
asm-delay
no_std implementation of embedded-hal's DelayMs & DelayUs for cortex-m.
Include library as a dependency in your Cargo.toml :
[dependencies.asm_delay]
version = "<version>"
use embedded_hal::prelude::*;
use asm_delay::AsmDelay;
use asm_delay::bitrate::*;
let d = AsmDelay::new(64.mhz());
d.delay_ms(5);
API Docs available on docs.rs.
Licensed under