IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


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 800 ms expires.
In @CHIP-RTOS-PPC mode, the @CHIP-RTOS-PPC 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-PPC 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:
mode 0 = only get mode
2 = Watchdog will be triggered by user program
3 = Watchdog will be triggered by @CHIP-RTOS-PPC (default)
4 = Watchdog will be triggered by @CHIP-RTOS-PPC watchdog manager
Returns:
Watchdog mode:
2 = Watchdog will be triggered by user program
3 = Watchdog will be triggered by @CHIP-RTOS-PPC (default)
4 = Watchdog will be triggered by @CHIP-RTOS-PPC watchdog manager
Since:
SC2x3 V1.00 - CLIB V1.00
Changes:
SC2x3 V1.10 / CLIB V1.05 - Added watchdog manager mode





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1