STM32L443xx HAL User Manual
|
Initialization and Start functions. More...
Functions | |
HAL_StatusTypeDef | HAL_IWDG_Init (IWDG_HandleTypeDef *hiwdg) |
Initialize the IWDG according to the specified parameters in the IWDG_InitTypeDef and start watchdog. |
Initialization and Start functions.
=============================================================================== ##### Initialization and Start functions ##### =============================================================================== [..] This section provides functions allowing to: (+) Initialize the IWDG according to the specified parameters in the IWDG_InitTypeDef of associated handle. (+) Manage Window option. (+) Once initialization is performed in HAL_IWDG_Init function, Watchdog is reloaded in order to exit function with correct time base.
HAL_StatusTypeDef HAL_IWDG_Init | ( | IWDG_HandleTypeDef * | hiwdg | ) |
Initialize the IWDG according to the specified parameters in the IWDG_InitTypeDef and start watchdog.
Before exiting function, watchdog is refreshed in order to have correct time base.
hiwdg | pointer to a IWDG_HandleTypeDef structure that contains the configuration information for the specified IWDG module. |
HAL | status |
Definition at line 170 of file stm32l4xx_hal_iwdg.c.
References __HAL_IWDG_RELOAD_COUNTER, __HAL_IWDG_START, assert_param, HAL_GetTick(), HAL_IWDG_DEFAULT_TIMEOUT, IWDG_HandleTypeDef::Init, IWDG_HandleTypeDef::Instance, IS_IWDG_PRESCALER, IS_IWDG_RELOAD, IS_IWDG_WINDOW, IWDG_ENABLE_WRITE_ACCESS, IWDG_KERNEL_UPDATE_FLAGS, IWDG_InitTypeDef::Prescaler, IWDG_InitTypeDef::Reload, and IWDG_InitTypeDef::Window.