Watchdog Timer Interface
Watchdog Timer Platform interface
Watchdog Timer Overview
A Watchdog Timer (WDT) is a hardware timer designed to monitor the operation of a system and ensure its proper functioning. It serves as a fail-safe mechanism by automatically resetting the system if it detects abnormal behavior, such as a software hang or malfunction.
Application Interface
Users can directly call the API’s though most of them will be called by device drivers.
The below table captures the functions that are to be called from the application layer.
Function |
Description |
|---|---|
rs_wdt_init |
To open the watchdog timer |
rs_wdt_kick |
To refresh the watchog timer. |
rs_wdt_process |
To processes the watchdog timer feature |
rs_task_wdt_kick |
To alled for kick the watchdog timer |
rs_task_wdt_enable |
To called for Enable the watchdog timer. |
Error Code
Every API’s for the WDT returns some success or failure values. Please refer below section,
Documentation from the relevant header as follows:
Warning
doxygenfile: Cannot find file “rs_wdt.h