#timer #delay #atsamd #embedded-hal

no-std cortex-m-systick-countdown

Wrapper around Cortex-M SysTick to provide multiple concurrent CountDown values

1 unstable release

0.1.0 Aug 3, 2019

#69 in #delay

MIT/Apache

14KB
126 lines

cortex-m-systick-countdown

This crate provides PollingSysTick, a wrapper around the Cortex-M SysTick peripheral that makes it easy to get values of the embedded_hal::timer::CountDown trait.

Unlike the atsamd-hal Delay struct, PollingSysTick is non-blocking and lets you have multiple separate CountDown values at once.

Documentation

See the Rust documentation.

Development

There’s an example binary that’s set up for a lm3s6965evb with qemu. Run it with cargo run --example qemu

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1MB
~12K SLoC