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

Defines a driver for the watchdog interface. More...

Macros

#define wiced_hal_watchdog_disable   wiced_hal_wdog_disable
 Disable the system watchdog. More...
 
#define wiced_hal_watchdog_reset_system   wiced_hal_wdog_reset_system
 Execute a soft reset of the system. More...
 
#define wiced_hal_watchdog_restart   wiced_hal_wdog_restart
 Restart the watchdog (restart the watchdog's internal timer). More...
 
#define wiced_hal_watchdog_coredump_set_uart_delay   wiced_hal_wdog_coredump_set_uart_delay
 

Functions

void wiced_hal_watchdog_disable (void)
 
void wiced_hal_watchdog_reset_system (void)
 
void wiced_hal_watchdog_restart (void)
 
void wiced_hal_watchdog_coredump_set_uart_delay (uint16_t delayus)
 
wiced_bool_t wiced_watchdog_get_reset_reason (void)
 
wiced_result_t wiced_watchdog_configure_reset_gpio (wiced_bt_gpio_numbers_t gpio, wiced_bool_t active_level)
 
void wiced_watchdog_configure_reset_delay (uint32_t delay_ms)
 
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.

Macro Definition Documentation

#define wiced_hal_watchdog_disable   wiced_hal_wdog_disable

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
#define wiced_hal_watchdog_reset_system   wiced_hal_wdog_reset_system

Execute a soft reset of the system.

Parameters
none
Returns
none
#define wiced_hal_watchdog_restart   wiced_hal_wdog_restart

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

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