[][src]Crate cortex_m_systick_countdown

Wrappers around the Cortex-M SysTick peripheral for making embedded_hal::timer::CountDown instances.

The CountDown trait is by default non-blocking, but can be made blocking with nb::block!.

Usage

Create an instance of PollingSysTick after you have configured your clocks. It consumes the SYST peripheral in order to get exclusive control over it.

You can use the embedded_hal::blocking::delay::DelayMs trait on PollingSysTick directly, or you can use PollingSysTick to make MillisCountDown instances that are independent, non-blocking counters.

Structs

MillisCountDown

CountDown that uses an underlying CountsMillis (probably PollingSysTick).

PollingSysTick

Millisecond counter based on SysTick

SysTickCalibration

Configuration information for setting the SysTick reload value.

Traits

CountsMillis

Trait that abstracts a counter that increases as milliseconds go by.