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>"
```rust use embeddedhal::prelude::*; use asmdelay::AsmDelay; use asm_delay::bitrate::*;
let d = AsmDelay::new(64.mhz()); d.delay_ms(5); ```
API Docs available on docs.rs.
Licensed under