AVR32 - Watchdog Driver Documentation
This is the documentation for the data structures, functions, variables, defines, enums, and typedefs for the WDT software driver.
It also comes bundled with an example.
This example will start a watchdog scheduler and scroll led until a reset occurs.
At first, the watchdog is enabled with the min value WDT_MIN_VALUE(i.e. 1s), then :
- If a Watchdog reset occurs, the watchdog is reenabled with the current value
- If a External reset occurs, the watchdog is enabled with the current value incremented of 1s. When the WDT timeout period reaches 4s, it is reset back to 1s. So, possible wdt delays(in this example) are 1s, 2s and 3s.
- If a Power On reset occurs, the watchdog is reset and enabled with the default value, WDT_MIN_VALUE(i.e. 1s).
This software is written for GNU GCC for AVR32 and for IAR Embedded Workbench for Atmel AVR32. Other compilers may or may not work.
All AVR32 devices with a WDT module can be used.
This example has been tested with the following configuration:
- UC3C_EK evaluation kit;
- CPU clock:
For further information, visit
Atmel AVR32.
Support and FAQ:
http://support.atmel.no/