#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

#275 in Embedded development

Download history 482/week @ 2024-09-18 134/week @ 2024-09-25 185/week @ 2024-10-02 60/week @ 2024-10-09 168/week @ 2024-10-16 72/week @ 2024-10-23 130/week @ 2024-10-30 160/week @ 2024-11-06 217/week @ 2024-11-13 208/week @ 2024-11-20 302/week @ 2024-11-27 501/week @ 2024-12-04 454/week @ 2024-12-11 102/week @ 2024-12-18 46/week @ 2024-12-25 446/week @ 2025-01-01

1,124 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