watchdog peripheral interface definitions More...
watchdog peripheral interface definitions
Definition in file wdt.h.
#include <stdint.h>#include "periph_cpu.h"
 Include dependency graph for wdt.h:Go to the source code of this file.
Macros | |
| #define | NWDT_TIME_LOWER_LIMIT | 
| Lower limit in ms for wdt operating in NORMAL mode.  | |
| #define | NWDT_TIME_UPPER_LIMIT | 
| Upper limit in ms for wdt operating in NORMAL mode.  | |
| #define | WWDT_TIME_LOWER_LIMIT | 
| Lower limit in ms for wdt operating in WINDOW mode.  | |
| #define | WWDT_TIME_UPPER_LIMIT | 
| Upper limit in ms for wdt operating in WINDOW mode.  | |
| #define | WDT_HAS_STOP (0) | 
| Set to 1 if the platform supports wdt_stop(), 0 otherwise.  | |
| #define | WDT_HAS_INIT (0) | 
| Set to 1 if the platform implements wdt_init(), 0 otherwise.  | |
| #define | CONFIG_PERIPH_WDT_WIN_MIN_MS (0) | 
If periph_wdt_auto_start is used, this will be the lower bound of when the WDT can be kicked.  | |
| #define | CONFIG_PERIPH_WDT_WIN_MAX_MS (1024) | 
If periph_wdt_auto_start is used, this will be the max period after which the WDT must be kicked or else it will reboot the system.  | |
| #define | CONFIG_WDT_WARNING_PERIOD (1) | 
| Period (ms) before reboot where wdt_cb() is executed.  More... | |
Typedefs | |
| typedef void(* | wdt_cb_t) (void *arg) | 
| Signature for the watchdog early warning callback.  More... | |
Functions | |
| void | wdt_start (void) | 
| Start watchdog timer.  | |
| void | wdt_stop (void) | 
| Stop watchdog timer.  More... | |
| void | wdt_kick (void) | 
| Reset the watchdog timer counter, delay system reset.  | |
| void | wdt_setup_reboot (uint32_t min_time, uint32_t max_time) | 
| Set up the wdt timer.  More... | |
| void | wdt_init (void) | 
| Initialize WDT module.  More... | |
| void | wdt_setup_reboot_with_callback (uint32_t min_time, uint32_t max_time, wdt_cb_t wdt_cb, void *arg) | 
| Set up the wdt timer with callback.  More... | |