Basic delay functionality.
Simple delay routines for use with components that require small delays.
|void||delay_microseconds (uint32_t usecs)|
|void||delay_milliseconds (uint32_t msecs, bool blocking)|
Delay for a number of microseconds.
- This function can be used without calling delay_init() first. This is not an accurate microsecond delay and can have a delay greater than expected, of about +50%. This error becomes significant for lower values delay.
Number of microseconds to delay
Initialize the delay driver's millisecond counter.
Delay for a number of milliseconds.
Number of milliseconds to delay
Whether to block until the delay has expired. If false, the delay_expired() function can be called to check whether the delay has expired.
Check whether the current delay has expired.
- True if the delay has expired