STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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. Before exiting function, watchdog is refreshed in order to have correct time base. | |
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. (+) 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 | ) |
#include <stm32f4xx_hal_iwdg.h>
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 163 of file stm32f4xx_hal_iwdg.c.
References __HAL_IWDG_RELOAD_COUNTER, __HAL_IWDG_START, assert_param, HAL_ERROR, HAL_GetTick(), HAL_IWDG_DEFAULT_TIMEOUT, HAL_OK, HAL_TIMEOUT, IWDG_HandleTypeDef::Init, IWDG_HandleTypeDef::Instance, IS_IWDG_PRESCALER, IS_IWDG_RELOAD, IWDG_ENABLE_WRITE_ACCESS, IWDG_KERNEL_UPDATE_FLAGS, IWDG_InitTypeDef::Prescaler, and IWDG_InitTypeDef::Reload.