28#ifndef LIBOPENCM3_WDT_H
29#define LIBOPENCM3_WDT_H
48#define WDT_CR MMIO32(WDT_BASE + 0x0)
49#define WDT_TORR MMIO32(WDT_BASE + 0x04)
50#define WDT_CCVR MMIO32(WDT_BASE + 0x08)
51#define WDT_CRR MMIO32(WDT_BASE + 0x0C)
52#define WDT_STAT MMIO32(WDT_BASE + 0x10)
53#define WDT_EOI MMIO32(WDT_BASE + 0x14)
void wdt_reset(void)
Reset the WDT's counter.
void wdt_mode(enum wdt_modes mode)
Sets the WDT's mode of operation.
void wdt_set_time(uint8_t time1, uint8_t time2)
Sets the WDT's initial counter values.
uint32_t wdt_get_value(void)
Gets the current WDT counter value.
void wdt_clear_int(void)
Clears the WDT's interrupt.
void wdt_enable(bool en)
Enables the WDT.
bool wdt_int_status(void)
Gets the WDT's interrupt status.
void wdt_clock_enable(bool en)
Enables the WDT's clock.
void wdt_setup(enum wdt_modes mode, uint8_t time1, uint8_t time2)
Sets up the WDT before the call to wdt_enable().
@ WDT_MODE_RESET
On timeout, reset the system.
@ WDT_MODE_INT
On timeout, generate an interrupt.