IO operation functions.
More...
IO operation functions.
==============================================================================
##### IO operation functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Refresh the WWDG.
(+) Handle WWDG interrupt request and associated function callback.
◆ HAL_WWDG_EarlyWakeupCallback()
WWDG Early Wakeup callback.
- Parameters
-
| hwwdg | pointer to a WWDG_HandleTypeDef structure that contains the configuration information for the specified WWDG module. |
- Return values
-
Definition at line 382 of file stm32l4xx_hal_wwdg.c.
◆ HAL_WWDG_IRQHandler()
Handle WWDG interrupt request.
- Note
- The Early Wakeup Interrupt (EWI) can be used if specific safety operations or data logging must be performed before the actual reset is generated. The EWI interrupt is enabled by calling HAL_WWDG_Init function with EWIMode set to WWDG_EWI_ENABLE. When the downcounter reaches the value 0x40, and EWI interrupt is generated and the corresponding Interrupt Service Routine (ISR) can be used to trigger specific actions (such as communications or data logging), before resetting the device.
- Parameters
-
| hwwdg | pointer to a WWDG_HandleTypeDef structure that contains the configuration information for the specified WWDG module. |
- Return values
-
Definition at line 353 of file stm32l4xx_hal_wwdg.c.
356 if (__HAL_WWDG_GET_IT_SOURCE(hwwdg, WWDG_IT_EWI) != RESET)
359 if (__HAL_WWDG_GET_FLAG(hwwdg, WWDG_FLAG_EWIF) != RESET)
362 __HAL_WWDG_CLEAR_FLAG(hwwdg, WWDG_FLAG_EWIF);
364 #if (USE_HAL_WWDG_REGISTER_CALLBACKS == 1) void(* EwiCallback)(struct __WWDG_HandleTypeDef *hwwdg)
void HAL_WWDG_EarlyWakeupCallback(WWDG_HandleTypeDef *hwwdg)
WWDG Early Wakeup callback.
◆ HAL_WWDG_Refresh()
Refresh the WWDG.
- Parameters
-
| hwwdg | pointer to a WWDG_HandleTypeDef structure that contains the configuration information for the specified WWDG module. |
- Return values
-
Definition at line 330 of file stm32l4xx_hal_wwdg.c.