1.40.26.6 WDT_ClearWithSync Function

C

void WDT_ClearWithSync( void )

Summary

Restarts the WDT counter with write sync.

Description

This API must be used if application intends to enter low power mode after clearing WDT. It waits for write synchronization to complete as the device must not enter low power mode while write sync is in progress.

Precondition

WDT must be enabled using WDT_Enable().

Parameters

None.

Returns

None.

Example

//Application

WDT_Initialize();

WDT_Enable();

while(true)
{
    // Application Code executes here.
    // Clear the WDT periodically.
    WDT_ClearWithSync();
}

Remarks

None.