RTEMS: Working with WDT

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Working with WDT
Board Support Packages » ARM » Atmel/Microchip SAM E70, S70, V70 and V71 » Contributed Code

The WDT driver provides the interface to configure and use the WDT peripheral.

The WDT can be used to prevent system lock-up if the software becomes trapped in a deadlock. It can generate a general reset or a processor reset only. It is clocked by slow clock divided by 128.

The WDT is running at reset with 16 seconds watchdog period (slow clock at 32.768 kHz) and external reset generation enabled. The user must either disable it or reprogram it to meet the application requires.

To use the WDT, the user could follow these few steps:

- Enable watchdog with given mode using WDT_Enable().
- Restart the watchdog using WDT_Restart() within the watchdog period.

For more accurate information, please look at the WDT section of the Datasheet.

Note
  The Watchdog Mode Register (WDT_MR) can be written only once.
  Related files :
  wdt.c
  wdt.h.