WDOG - Watchdog

Description

Watchdog (WDOG) Peripheral API.

This module contains functions to control the WDOG peripheral of Silicon Labs 32-bit MCUs and SoCs. The WDOG resets the system in case of a fault condition.

Data Structures

struct WDOG_Init_TypeDef
Watchdog initialization structure.

Functions

void WDOGn_Enable (WDOG_TypeDef *wdog, bool enable)
Enable/disable the watchdog timer.
void WDOGn_Feed (WDOG_TypeDef *wdog)
Feed WDOG.
void WDOGn_Init (WDOG_TypeDef *wdog, const WDOG_Init_TypeDef *init)
Initialize WDOG (assuming the WDOG configuration has not been locked).
void WDOGn_Lock (WDOG_TypeDef *wdog)
Lock the WDOG configuration.
void WDOGn_SyncWait (WDOG_TypeDef *wdog)
Wait for the WDOG to complete all synchronization of register changes and commands.
void WDOGn_Unlock (WDOG_TypeDef *wdog)
Unlock the WDOG configuration.
bool WDOGn_IsEnabled (WDOG_TypeDef *wdog)
Get enabled status of the watchdog.
bool WDOGn_IsLocked (WDOG_TypeDef *wdog)
Get locked status of the watchdog.
void WDOG_Enable (bool enable)
Enable/disable the watchdog timer.
void WDOG_Feed (void)
Feed the watchdog.
void WDOG_Init (const WDOG_Init_TypeDef *init)
Initialize watchdog (assuming the watchdog configuration has not been locked).
void WDOG_Lock (void)
Lock the watchdog configuration.
bool WDOG_IsEnabled (void)
Get enabled status of the watchdog.
bool WDOG_IsLocked (void)
Get locked status of the watchdog.

Macros

#define WDOG_SYNC_TIMEOUT 30000
In some scenarioes when the watchdog is disabled the synchronization register might be set and not be cleared until the watchdog is enabled again.
#define DEFAULT_WDOG WDOG
Default WDOG instance for deprecated functions.
#define WDOG_INIT_DEFAULT
Suggested default configuration for WDOG initialization structure.

Enumerations

enum WDOG_ClkSel_TypeDef {
wdogClkSelULFRCO = _WDOG_CTRL_CLKSEL_ULFRCO,
wdogClkSelLFRCO = _WDOG_CTRL_CLKSEL_LFRCO,
wdogClkSelLFXO = _WDOG_CTRL_CLKSEL_LFXO
}
Watchdog clock selection.
enum WDOG_PeriodSel_TypeDef {
wdogPeriod_9 = 0x0,
wdogPeriod_17 = 0x1,
wdogPeriod_33 = 0x2,
wdogPeriod_65 = 0x3,
wdogPeriod_129 = 0x4,
wdogPeriod_257 = 0x5,
wdogPeriod_513 = 0x6,