38 #if defined(WDOG_COUNT) && (WDOG_COUNT > 0)
90 #if defined( _WDOG_CTRL_WARNSEL_MASK )
95 wdogWarnTime25pct = 1,
96 wdogWarnTime50pct = 2,
97 wdogWarnTime75pct = 3,
98 } WDOG_WarnSel_TypeDef;
101 #if defined( _WDOG_CTRL_WINSEL_MASK )
105 wdogIllegalWindowDisable = 0,
106 wdogIllegalWindowTime12_5pct = 1,
107 wdogIllegalWindowTime25_0pct = 2,
108 wdogIllegalWindowTime37_5pct = 3,
109 wdogIllegalWindowTime50_0pct = 4,
110 wdogIllegalWindowTime62_5pct = 5,
111 wdogIllegalWindowTime75_0pct = 6,
112 wdogIllegalWindowTime87_5pct = 7,
113 } WDOG_WinSel_TypeDef;
150 #if defined( _WDOG_CTRL_WARNSEL_MASK )
152 WDOG_WarnSel_TypeDef warnSel;
155 #if defined( _WDOG_CTRL_WINSEL_MASK )
157 WDOG_WinSel_TypeDef winSel;
160 #if defined( _WDOG_CTRL_WDOGRSTDIS_MASK )
168 #if defined( _WDOG_CTRL_WARNSEL_MASK ) \
169 && defined( _WDOG_CTRL_WDOGRSTDIS_MASK ) \
170 && defined( _WDOG_CTRL_WINSEL_MASK )
171 #define WDOG_INIT_DEFAULT \
184 wdogIllegalWindowDisable, \
188 #define WDOG_INIT_DEFAULT \
214 #if defined( _WDOG_IF_MASK )
226 __STATIC_INLINE
void WDOGn_IntClear(
WDOG_TypeDef *wdog, uint32_t flags)
242 __STATIC_INLINE
void WDOGn_IntDisable(
WDOG_TypeDef *wdog, uint32_t flags)
263 __STATIC_INLINE
void WDOGn_IntEnable(
WDOG_TypeDef *wdog, uint32_t flags)
282 __STATIC_INLINE uint32_t WDOGn_IntGet(
WDOG_TypeDef *wdog)
301 __STATIC_INLINE uint32_t WDOGn_IntGetEnabled(
WDOG_TypeDef *wdog)
308 return wdog->IF & tmp;
322 __STATIC_INLINE
void WDOGn_IntSet(
WDOG_TypeDef *wdog, uint32_t flags)
330 #if !defined(DEFAULT_WDOG)
332 #define DEFAULT_WDOG WDOG
334 #define DEFAULT_WDOG WDOG0
#define _WDOG_CTRL_CLKSEL_ULFRCO
WDOG_ClkSel_TypeDef clkSel
__STATIC_INLINE void WDOG_Init(const WDOG_Init_TypeDef *init)
Initialize watchdog (assuming the watchdog configuration has not been locked).
void WDOGn_Lock(WDOG_TypeDef *wdog)
Lock the watchdog configuration.
__STATIC_INLINE void WDOG_Enable(bool enable)
Enable/disable the watchdog timer.
__STATIC_INLINE void WDOG_Lock(void)
Lock the watchdog configuration.
#define _WDOG_CTRL_CLKSEL_LFXO
WDOG_PeriodSel_TypeDef perSel
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
void WDOGn_Init(WDOG_TypeDef *wdog, const WDOG_Init_TypeDef *init)
Initialize watchdog (assuming the watchdog configuration has not been locked).
__STATIC_INLINE void WDOG_Feed(void)
Feed the watchdog.
#define _WDOG_CTRL_CLKSEL_LFRCO
void WDOGn_Enable(WDOG_TypeDef *wdog, bool enable)
Enable/disable the watchdog timer.
void WDOGn_Feed(WDOG_TypeDef *wdog)
Feed the watchdog.