wdt_avr.h File Reference
Watchdog interface for AVR architecture. More...
#include "cfg/cfg_wdt.h"#include <cfg/compiler.h>#include <avr/io.h>#include <avr/wdt.h>Go to the source code of this file.
Functions | |
| void | wdt_start (uint32_t _timeout) |
| Reset the watchdog timer. | |
| void | wdt_stop (void) |
| Stop watchdog timer. | |
Detailed Description
Watchdog interface for AVR architecture.
- Note:
- The avr-libc already provide an api to manage the watchdog on AVR architecture. In avr-libc are also available several constants used to set the timeout value (see documentation for more detail).
- Version:
- Id
- wdt_avr.h 1977 2008-12-09 11:28:30Z asterix
Definition in file wdt_avr.h.
Function Documentation
| void wdt_start | ( | uint32_t | _timeout | ) | [inline] |
Reset the watchdog timer.
This functions is already defind in avr-libc. Start the watchdog timer that fire at the select timeout.
- Parameters:
-
_timeout you can use the macro that are defineded in avr/wdt.h.
(from avr libc documentation) WDTO_15MS WDTO_30MS WDTO_60MS WDTO_120MS WDTO_250MS WDTO_500MS WDTO_1S WDTO_2S WDTO_4S WDTO_8S
