172 void wdt_restart(Wdt *p_wdt)
Restart the watchdog timer.
#define WDT_INVALID_ARGUMENT
uint32_t wdt_get_status(Wdt *p_wdt)
Check the watchdog timer status.
#define WDT_MR_WDV(value)
__I uint32_t WDT_SR
(Wdt Offset: 0x08) Status Register
#define WDT_MR_WDD(value)
void wdt_disable(Wdt *p_wdt)
Disable the watchdog timer.
uint32_t wdt_get_timeout_value(uint32_t ul_us, uint32_t ul_sclk)
Get counter value or permitted range value of watchdog timer from the desired timeout period (in us)...
#define min(a, b)
Takes the minimal value of a and b.
#define max(a, b)
Takes the maximal value of a and b.
#define WDT_CR_WDRSTT
(WDT_CR) Watchdog Restart
#define WDT
(WDT ) Base Address
__IO uint32_t WDT_MR
(Wdt Offset: 0x04) Mode Register
__O uint32_t WDT_CR
(Wdt Offset: 0x00) Control Register
Watchdog Timer (WDT) driver for SAM.
#define RSWDT_CR_WDRSTT
(RSWDT_CR) Watchdog Restart
#define RSWDT_CR_KEY(value)
uint32_t wdt_get_us_timeout_period(Wdt *p_wdt, uint32_t ul_sclk)
Get the timeout period of the WatchDog Timer in microseconds.
void wdt_init(Wdt *p_wdt, uint32_t ul_mode, uint16_t us_counter, uint16_t us_delta)
Initialize watchdog timer with the given mode.
#define WDT_MR_WDDIS
(WDT_MR) Watchdog Disable