1.9.6.2 DWT_DelayUs Function
C
void DWT_DelayUs(uint32_t delay_us)
Summary
Blocking function to generate delay in microseconds
Description
This function generates delay in units of microseconds using DWT.
Precondition
DWT_Initialize must have been called
Parameters
Param | Description |
---|---|
delay_us | The delay in units of microseconds |
Returns
None.
Example
DWT_Initialize(); // Generates 1000 us blocking delay DWT_DelayUs(1000);