1.2.27.5 1.3.28.5 1.4.28.5 1.5.28.5 1.6.27.5 1.7.27.5 1.9.25.5 1.10.24.5 1.11.24.5 1.12.25.5 1.13.23.5 1.14.18.5 1.15.19.5 1.16.26.5 1.17.21.5 1.18.22.5 1.19.22.5 1.20.26.3 1.21.27.3 1.22.29.5 1.23.28.5 1.24.24.5 1.25.25.2 1.26.22.2 1.27.27.2 1.28.27.2 1.29.28.5 1.30.20.3 1.31.20.3 1.32.31.5 1.33.20.3 1.34.28.2 1.35.19.2 1.36.19.2 1.37.20.3 1.38.27.5 1.39.23.5 1.40.26.5 1.41.23.2 1.42.22.2 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.