www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - Hardware API


hal_set_watchdog_mode

Get/Set watchdog mode

unsigned char hal_set_watchdog_mode ( unsigned char mode );

Parameters

mode

0 = only get mode
2 = Watchdog will be triggered by user program
3 = Watchdog will be triggered by @CHIP-RTOS (default)

Return Value

Watchdog mode:
    2 = Watchdog will be triggered by user program
    3 = Watchdog will be triggered by @CHIP-RTOS (default)

Comments

Get or set the watchdog mode.

The watchdog timeout period on SC12 is 800 ms.
The watchdog timeout period on SC11/SC13 is 650 ms.

If you select the User Program mode, you must call the HAL hal_refresh_watchdog function at least every 800 ms to prevent the watchdog from resetting the system.   In @CHIP-RTOS mode, the @CHIP-RTOS 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.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document