becomes cleared) Setting the counter lower then 0x40 causes
an immediate reset (if WWDG enabled)
Reference Manual to
LL API cross
reference:
LL_WWDG_GetCounter
__STATIC_INLINE uint32_t LL_WWDG_GetCounter
(WWDG_TypeDef * WWDGx)
Return current Watchdog Counter Value (7 bits counter value)
7: bit Watchdog Counter value
Reference Manual to
LL API cross
reference:
LL_WWDG_SetPrescaler
__STATIC_INLINE void LL_WWDG_SetPrescaler
(WWDG_TypeDef * WWDGx, uint32_t Prescaler)
Set the time base of the prescaler (WDGTB).
WWDGx: WWDG Instance
Prescaler: This parameter can be one of the following
values:
LL_WWDG_PRESCALER_1
LL_WWDG_PRESCALER_2
LL_WWDG_PRESCALER_4
LL_WWDG_PRESCALER_8
Prescaler is used to apply ratio on PCLK clock, so that
Watchdog counter is decremented every (4096 x
2expWDGTB) PCLK cycles
Reference Manual to
LL API cross
reference:
CFR WDGTB LL_WWDG_SetPrescaler
LL_WWDG_GetPrescaler
__STATIC_INLINE uint32_t LL_WWDG_GetPrescaler
(WWDG_TypeDef * WWDGx)
Return current Watchdog Prescaler Value.
Returned: value can be one of the following values:
LL_WWDG_PRESCALER_1
LL_WWDG_PRESCALER_2
LL_WWDG_PRESCALER_4