IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ watchdogSetMode()

unsigned char watchdogSetMode ( unsigned char  mode)

Set/get the current watchdog mode.

If you select the user program mode, you must cyclically call the HAL watchdogRefresh function before the watchdog timeout period of 1000 ms expires.
In @CHIP-RTOS-LNX mode, the @CHIP-RTOS-LNX performs the watchdog strobing provided that the system's timer interrupt is allowed to execute. Beware that excessive interrupt masking periods can lead to system resets.
If you select the @CHIP-RTOS-LNX watchdog manager mode, the manager will refresh the watchdog every 200 ms provided that all tasks that have signed on to the manager have refreshed the manager in time. If one task fails to refresh the manager in time, the manager will stop to refresh the hardware watchdog. Note that from that point it will still take the watchdog timeout period of 800 ms before the watchdog hardware resets the system.

Parameters
mode0 = only get mode
2 = Watchdog will be triggered by user program
3 = Watchdog will be triggered by @CHIP-RTOS-LNX (default)
4 = Watchdog will be triggered by @CHIP-RTOS-LNX watchdog manager
Returns
Watchdog mode:
2 = Watchdog will be triggered by user program
3 = Watchdog will be triggered by @CHIP-RTOS-LNX (default)
4 = Watchdog will be triggered by @CHIP-RTOS-LNX watchdog manager
Since
V0.80





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jan 26 2018 10:26:50 by Doxygen 1.8.13