Low-level interface to the Independent Watchdog Timer of a target. More...
|Watchdog HAL tests|
|Greentea tests for the Watchdog HAL. |
|Watchdog configuration. More...|
|Watchdog features. More...|
|watchdog_status_t||hal_watchdog_init (const watchdog_config_t *config)|
|Initialize and start a watchdog timer with the given configuration. More...|
|Refreshes the watchdog timer. More...|
|Stops the watchdog timer. More...|
|Get the watchdog timer refresh value. More...|
|Get information on the current platforms supported watchdog functionality. More...|
Low-level interface to the Independent Watchdog Timer of a target.
This module provides platform independent access to the system watchdog timer which is an embedded peripheral that will reset the system in the case of system failures or malfunctions.
The watchdog timer initializes a system timer with a time period specified in the configuration. This timer counts down and triggers a system reset when it wraps. To prevent the system reset the timer must be continually kicked/refreshed by calling hal_watchdog_kick which will reset the countdown to the user specified reset value.
UINT32_MAXmilliseconds; minimum timeout is 1 millisecond.
Get information on the current platforms supported watchdog functionality.
Get the watchdog timer refresh value.
This function returns the configured refresh timeout of the watchdog timer.
Initialize and start a watchdog timer with the given configuration.
If the watchdog timer is configured and starts successfully, this function returns WATCHDOG_STATUS_OK.
If the timeout specified is outside the range supported by the platform, it returns WATCHDOG_STATUS_INVALID_ARGUMENT.
|[in]||config||Configuration settings for the watchdog timer|
Refreshes the watchdog timer.
Call this function periodically before the watchdog times out. Otherwise, the system resets.
If a watchdog is not running, this function does nothing.
Stops the watchdog timer.
Calling this function disables any running watchdog timers if the current platform supports them.