1.40.26.5 WDT_Clear Function

C

void WDT_Clear( void )

Summary

Restarts the WDT counter.

Description

This function is used to restart the WDT counter to avoid timeout. Calling this will clear the WDT timeout counter and restart the counting from 0. Failure to call this function before the WDT timeout period will cause the system to reset.

Precondition

WDT must be enabled using WDT_Enable().

Parameters

None.

Returns

None.

Example

//Application

WDT_Enable();

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

Remarks

None.