#time #cortex-m #arm

asm-delay-embedded-time

no_std implementation of embedded-hal DelayMs & DelayUs based on arm::delay, featuring embedded-time

1 unstable release

0.9.1 May 21, 2022

#1001 in Embedded development

Download history 1/week @ 2024-03-13 4/week @ 2024-03-27 4/week @ 2024-04-03 1/week @ 2024-05-29 2/week @ 2024-06-05 7/week @ 2024-06-12 300/week @ 2024-06-19 679/week @ 2024-06-26

989 downloads per month

MIT license

5KB
67 lines

asm-delay

no_std implementation of embedded-hal's DelayMs & DelayUs for cortex-m.

Build Status

Basic usage

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);

Documentation

API Docs available on docs.rs.

License

Licensed under


lib.rs:

no_std implementation of DelayMs and DelayUs for cortex-m

Dependencies

~1MB
~17K SLoC