Microsecond Delay

Description

Microsecond delay function.

Functions

void sl_udelay_wait (unsigned us)
Delay a number of microseconds.

Function Documentation

sl_udelay_wait()

void sl_udelay_wait ( unsigned us )

Delay a number of microseconds.

This function will use a busy loop to delay code execution by a certain number of microseconds before returning to the caller. This function will not return to the caller earlier than the time given as the input parameter. This function will not use any hardware timing peripherals, it is using the core clock frequency to calculate the delay.

Note that there will always be some overhead associated with calling this function in addition to the internal delay loop. This overhead is relatively small when the delay is large (>= 100us).

Parameters
[in] us This is the number of microseconds to delay execution. This function will try to return after this amount of time has elapsed.