EasyManua.ls Logo

ST STM32F2 - 100 LL WWDG Generic Driver; Ll_Wwdg_Enable; Ll_Wwdg_Isenabled; Ll_Wwdg_Setcounter

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1940
LL WWDG Generic Driver
DocID028236 Rev 2
1297/1371
70 LL WWDG Generic Driver
70.1 WWDG Firmware driver API description
70.1.1 Detailed description of functions
LL_WWDG_Enable
Function name
__STATIC_INLINE void LL_WWDG_Enable (WWDG_TypeDef *
WWDGx)
Function description
Enable Window Watchdog.
Parameters
WWDGx: WWDG Instance
Return values
None:
Notes
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:
CR WDGA LL_WWDG_Enable
LL_WWDG_IsEnabled
Function name
__STATIC_INLINE uint32_t LL_WWDG_IsEnabled
(WWDG_TypeDef * WWDGx)
Function description
Checks if Window Watchdog is enabled.
Parameters
WWDGx: WWDG Instance
Return values
State: of bit (1 or 0).
Reference Manual to
LL API cross
reference:
CR WDGA LL_WWDG_IsEnabled
LL_WWDG_SetCounter
Function name
__STATIC_INLINE void LL_WWDG_SetCounter
(WWDG_TypeDef * WWDGx, uint32_t Counter)
Function description
Set the Watchdog counter value to provided value (7-bits T[6:0])
Parameters
WWDGx: WWDG Instance
Counter: 0..0x7F (7 bit counter value)
Return values
None:
Notes
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

Table of Contents

Related product manuals