Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Watchdog Interface

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...
 

Detailed Description

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.

Function Documentation

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.

Parameters
none
Returns
none
void wiced_hal_wdog_reset_system ( void  )

Execute a soft reset of the system.

Parameters
none
Returns
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.

Parameters
none
Returns
none