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

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

Detailed Description

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

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

Parameters
void
Returns
void
Note
This is for debugging purposes only. Hence, there is no complementary "Enable Watchdog" function. Please do not use this function in production applications.
void wiced_hal_wdog_reset_system ( void  )

Executes a soft reset of the chip by tripping the watchdog timer.

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

Parameters
void
Returns
void