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
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)