AIROC™ BTSDK v4.9 - Documentation | ||||
This driver manages the hardware watchdog countdown timer. More...
Functions | |
void | wiced_hal_wdog_disable (void) |
Disable the system watchdog. More... | |
void | wiced_hal_wdog_reset_system (void) |
Executes a soft reset of the chip by tripping the watchdog timer. More... | |
void | wiced_hal_wdog_restart (void) |
Kicks the watchdog timer, resetting the 2 second timer. More... | |
This driver manages the hardware watchdog countdown timer.
By default the watchdog is enabled on a two second timeout. The system must reach the lowest priority 'idle' thread once every two seconds in order to kick the watchdog. If the system is being held somewhere (e.g. a busy loop in an application level event handler), then the idle thread will not be reached and the watchdog will trigger a soft reset of the chip.
The timeout period of the watchdog cannot be altered, but the below functions allow the watchdog to be disabled (for debug purposes), kicked (reset the two two second countdown), or tripped (trigger a soft reset manually).
void wiced_hal_wdog_disable | ( | void | ) |
Disable the system watchdog.
Useful for debugging when the watchdog would interfere and reset the system when not desired (e.g. when the system is connected to a debugger, etc).
void |
void wiced_hal_wdog_reset_system | ( | void | ) |
Executes a soft reset of the chip by tripping the watchdog timer.
void |
void wiced_hal_wdog_restart | ( | void | ) |
Kicks the watchdog timer, resetting the 2 second timer.
Used when a process might otherwise cause the watchdog to trigger a system reset.
void |