70 LL WWDG Generic Driver
70.1 WWDG Firmware driver API description
70.1.1 Detailed description of functions
LL_WWDG_Enable
__STATIC_INLINE void LL_WWDG_Enable (WWDG_TypeDef *
WWDGx)
It is enabled by setting the WDGA bit in the WWDG_CR
register, then it cannot be disabled again except by a reset.
This bit is set by software and only cleared by hardware after
a reset. When WDGA = 1, the watchdog can generate a
reset.
Reference Manual to
LL API cross
reference:
LL_WWDG_IsEnabled
__STATIC_INLINE uint32_t LL_WWDG_IsEnabled
(WWDG_TypeDef * WWDGx)
Checks if Window Watchdog is enabled.
Reference Manual to
LL API cross
reference:
CR WDGA LL_WWDG_IsEnabled
LL_WWDG_SetCounter
__STATIC_INLINE void LL_WWDG_SetCounter
(WWDG_TypeDef * WWDGx, uint32_t Counter)
Set the Watchdog counter value to provided value (7-bits T[6:0])
WWDGx: WWDG Instance
Counter: 0..0x7F (7 bit counter value)
When writing to the WWDG_CR register, always write 1 in the
MSB b6 to avoid generating an immediate reset This counter
is decremented every (4096 x 2expWDGTB) PCLK cycles A
reset is produced when it rolls over from 0x40 to 0x3F (bit T6