1.2.7.3 1.6.9.3 1.7.10.3 1.8.6.3 1.9.6.3 1.32.10.3 1.34.4.3 1.35.3.3 1.36.5.3 1.42.2.3 DWT_DelayMs Function

C

void DWT_DelayMs(uint32_t delay_ms)

Summary

Blocking function to generate delay in milliseconds

Description

This function generates delay in units of milliseconds using DWT.

Precondition

DWT_Initialize must have been called

Parameters

Param Description
delay_ms The delay in units of milliseconds

Returns

None.

Example

DWT_Initialize();

// Generates 1000 ms blocking delay
DWT_DelayMs(1000);