#cortex-m #arm #time

asm-delay

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

16 releases (1 stable)

1.0.0 Jan 28, 2024
0.9.0 Jul 12, 2020
0.8.1 Jul 12, 2020
0.7.0 Jun 4, 2019
0.5.1 Mar 17, 2019

#212 in Embedded development

Download history 550/week @ 2024-06-21 577/week @ 2024-06-28 402/week @ 2024-07-05 548/week @ 2024-07-12 307/week @ 2024-07-19 426/week @ 2024-07-26 233/week @ 2024-08-02 163/week @ 2024-08-09 468/week @ 2024-08-16 219/week @ 2024-08-23 231/week @ 2024-08-30 205/week @ 2024-09-06 335/week @ 2024-09-13 411/week @ 2024-09-20 89/week @ 2024-09-27 189/week @ 2024-10-04

1,043 downloads per month
Used in sent-driver

MIT license

4KB
62 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

~600KB