1.16.22.2 WDT_Disable Function

C

void WDT_Disable( void )

Summary

Disables the WDT peripheral.

Description

This function is used to stop the WDT counter and disable WDT peripheral.

For devices which have Early Warning interrupt support, This function also disables the Early Warning interrupt if it has been has been enabled in MHC.

Preconditions

WDT must be enabled using WDT_Enable().

Parameters

None.

Returns

None.

Example

WDT_Disable();

Remarks

  • For some device families this API is generated to disable the WDT in firmware if the WDT is disabled by setting FWDTEN fuse bit to OFF in MHC device configuration.

  • Certain devices does not allow disabling Watchdog timers once enabled. This API will not have any effect if ALWAYSON bit in watchdog is enabled.