This application note includes a source code package with a basic watchdog timer driver implemented in C.
It is designed as a library to get started with the XMEGA watchdog timer. For timing and code space critical application development, you should access the watchdog timer registers directly. Refer to the driver source code and device data sheet for more details.