Module embedded_hal::blocking::delay[][src]

Delays

What’s the difference between these traits and the timer::CountDown trait?

The Timer trait provides a non-blocking timer abstraction and it’s meant to be used to build higher level abstractions like I/O operations with timeouts. OTOH, these delays traits only provide blocking functionality. Note that you can also use the timer::CountDown trait to implement blocking delays.

Traits

DelayMs

Millisecond delay

DelayUs

Microsecond delay