#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

#243 in Embedded development

Download history 202/week @ 2024-07-31 196/week @ 2024-08-07 489/week @ 2024-08-14 211/week @ 2024-08-21 204/week @ 2024-08-28 231/week @ 2024-09-04 233/week @ 2024-09-11 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 201/week @ 2024-11-13

574 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