1.2.7.2 1.6.9.2 1.7.10.2 1.8.6.2 1.9.6.2 1.32.10.2 1.34.4.2 1.35.3.2 1.36.5.2 1.42.2.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);