35 #if defined(WDOG_COUNT) && (WDOG_COUNT > 0)
198 #if defined( _WDOG_CTRL_WDOGRSTDIS_MASK )
199 if (init->resetDisable)
201 setting |= WDOG_CTRL_WDOGRSTDIS;
205 #
if defined( _WDOG_CTRL_WARNSEL_MASK )
206 | ((uint32_t)(init->warnSel) << _WDOG_CTRL_WARNSEL_SHIFT)
208 #
if defined( _WDOG_CTRL_WINSEL_MASK )
209 | ((uint32_t)(init->winSel) << _WDOG_CTRL_WINSEL_SHIFT)
218 wdog->
CTRL = setting;
WDOG_ClkSel_TypeDef clkSel
void WDOGn_Lock(WDOG_TypeDef *wdog)
Lock the watchdog configuration.
RAM and peripheral bit-field set and clear API.
#define WDOG_SYNCBUSY_CMD
WDOG_PeriodSel_TypeDef perSel
#define WDOG_CTRL_DEBUGRUN
#define _WDOG_CTRL_CLKSEL_SHIFT
void WDOGn_Init(WDOG_TypeDef *wdog, const WDOG_Init_TypeDef *init)
Initialize watchdog (assuming the watchdog configuration has not been locked).
__STATIC_INLINE unsigned int BUS_RegBitRead(volatile const uint32_t *addr, unsigned int bit)
Perform a single-bit read operation on a peripheral register.
#define _WDOG_CTRL_PERSEL_SHIFT
void WDOGn_Enable(WDOG_TypeDef *wdog, bool enable)
Enable/disable the watchdog timer.
#define _WDOG_CTRL_LOCK_SHIFT
#define _WDOG_CTRL_EN_SHIFT
#define WDOG_CTRL_SWOSCBLOCK
#define WDOG_SYNCBUSY_CTRL
__STATIC_INLINE void BUS_RegBitWrite(volatile uint32_t *addr, unsigned int bit, unsigned int val)
Perform a single-bit write operation on a peripheral register.
Watchdog (WDOG) peripheral API.
void WDOGn_Feed(WDOG_TypeDef *wdog)
Feed the watchdog.
#define WDOG_CTRL_EM4BLOCK