Here is one of the test cases I used which should illustrate it's use:
// Due Watchdog test case
// - enable the watchdog and demonstrate that wdt_reset() prevents timeout
void watchdogSetup(void)
{
watchdogEnable(1000);
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println ("start");
}
void loop() {
// put your main code here, to run repeatedly:
// this should not cause a watchdog timeout
while (1){
delay (100);
Serial.println(millis());
watchdogReset();
}
}