wdt.h File Reference

watchdog peripheral interface definitions More...

Detailed Description

#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 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...