7.4. Function Reference

7.4.1. wdt_disable

#include <wdt.h>
	    

void wdt_disable(void);

description. Disables the watchdog timer. This function actually generates six inline assembly instructions.

7.4.2. wdt_enable

#include <wdt.h>
	    

void wdt_enable(uint8_t timeout);

description. Enables the watchdog timer. The passed value, timeout, is loaded in the watchdog control register. This function generates five inline assembly instructions.

This function should probably never be used, since the startup code can already start up the watchdog timer (and it does it using less instructions.) The only reason it would be used is if wdt_disable is used.

7.4.3. wdt_reset

#include <wdt.h>
	    

void wdt_reset(void);

description. Resets the watchdog timer. This function generates a single wdr instruction. Your application must guarantee that this function is called sooner than the timeout rate of the watchdog. Otherwise the processor will reset.