CLRWDT Macro

A macro that clears the watchdog timer.

Include

<xc.h>

Prototype

void CLRWDT(void);

Remarks

This macro executes a clrwdt instruction.

Example

#include <xc.h>

int main (void)
{
  WDTCONbits.SWDTEN = 1;      /* enable the WDT */
  while (1) {
    CLRWDT();
  }
}