AIROC™ BTSDK v4.9 - Documentation | ||||
Defines a driver for the watchdog interface. More...
Functions | |
void | wiced_hal_wdog_disable (void) |
Disable the system watchdog. More... | |
void | wiced_hal_wdog_reset_system (void) |
Execute a soft reset of the system. More... | |
void | wiced_hal_wdog_restart (void) |
Restart the watchdog (restart the watchdog's internal timer). More... | |
Defines a driver for the watchdog interface.
This driver manages the hardware watchdog countdown timer. When enabled, the watchdog timer will generate an interrupt when the timer counts down to zero, then will reload the counter. If the counter counts down to zero again, the hardware performs a device reset. The lowest priority "idle" thread restarts the watchdog counter preiodically, and other operations that may keep the system busy call wiced_hal_wdog_restart to extend the watchdog countdown.
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).
NOTE: This is for debugging purposes only. Hence, there is no complementary "Enable Watchdog" function. Please do not use this function in production applications.
none |
void wiced_hal_wdog_reset_system | ( | void | ) |
Execute a soft reset of the system.
none |
void wiced_hal_wdog_restart | ( | void | ) |
Restart the watchdog (restart the watchdog's internal timer).
Used to manually "pet" the watchdog when certain processes might otherwise cause the watchdog to trigger and reset the system. The default timeout for watchdog reset is two seconds.
none |