#time

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

#548 in #time

Download history 308/week @ 2024-07-28 201/week @ 2024-08-04 346/week @ 2024-08-11 326/week @ 2024-08-18 155/week @ 2024-08-25 287/week @ 2024-09-01 164/week @ 2024-09-08 437/week @ 2024-09-15 267/week @ 2024-09-22 89/week @ 2024-09-29 168/week @ 2024-10-06 134/week @ 2024-10-13 130/week @ 2024-10-20 11/week @ 2024-10-27 253/week @ 2024-11-03 142/week @ 2024-11-10

549 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