libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
wdt.h File Reference
Include dependency graph for wdt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WDT_CR   MMIO32(WDT_BASE + 0x0)
 
#define WDT_TORR   MMIO32(WDT_BASE + 0x04)
 
#define WDT_CCVR   MMIO32(WDT_BASE + 0x08)
 
#define WDT_CRR   MMIO32(WDT_BASE + 0x0C)
 
#define WDT_STAT   MMIO32(WDT_BASE + 0x10)
 
#define WDT_EOI   MMIO32(WDT_BASE + 0x14)
 

Enumerations

enum  wdt_modes { WDT_MODE_RESET , WDT_MODE_INT }
 

Functions

void wdt_setup (enum wdt_modes mode, uint8_t time1, uint8_t time2)
 Sets up the WDT before the call to wdt_enable(). More...
 
void wdt_enable (bool en)
 Enables the WDT. More...
 
void wdt_mode (enum wdt_modes mode)
 Sets the WDT's mode of operation. More...
 
void wdt_reset (void)
 Reset the WDT's counter. More...
 
bool wdt_int_status (void)
 Gets the WDT's interrupt status. More...
 
void wdt_clear_int (void)
 Clears the WDT's interrupt. More...
 
void wdt_clock_enable (bool en)
 Enables the WDT's clock. More...
 
uint32_t wdt_get_value (void)
 Gets the current WDT counter value. More...
 
void wdt_set_time (uint8_t time1, uint8_t time2)
 Sets the WDT's initial counter values. More...