#include <avr/wdt.h>
Go to the source code of this file.
Functions | |
void | HAL_StartWdt (HAL_WdtInterval_t interval) |
Starts WDT within a given interval. | |
void | HAL_RegisterWdtCallback (void(*wdtCallback)()) |
Registers WDT fired callback. | |
static void | HAL_StopWdt (void) |
Stops the WDT. | |
static void | HAL_ResetWdt (void) |
Resets the WDT. |
Definition in file wdtCtrl.h.
void HAL_RegisterWdtCallback | ( | void(*)() | wdtCallback | ) |
Registers WDT fired callback.
Registered functions is called when WDT is fired. After returning from the registered function device is rebooted itself.
[in] | wdtCallback | - pointer to the callback function. |
static void HAL_ResetWdt | ( | void | ) | [inline, static] |
void HAL_StartWdt | ( | HAL_WdtInterval_t | interval | ) |
Starts WDT within a given interval.
[in] | interval | - interval. Must be chosen from: WDT_INTERVAL_16 // 16 ms WDT_INTERVAL_32 // 32 ms WDT_INTERVAL_64 // 64 ms WDT_INTERVAL_125 // 125 ms WDT_INTERVAL_250 // 250 ms WDT_INTERVAL_500 // 500 ms WDT_INTERVAL_1000 // 1 second WDT_INTERVAL_2000 // 2 seconds WDT_INTERVAL_4000 // 4 seconds WDT_INTERVAL_8000 // 8 seconds |
static void HAL_StopWdt | ( | void | ) | [inline, static] |