@CHIP-RTOS C Library V2.06 - 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.
- 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.
SC1x Comments- The watchdog timeout period on SC11/SC12/SC13 is 800 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.
SC1x3 Comments- The watchdog timeout period on SC123/SC143 is 699 ms.
If you select the User Program
mode, you must call the HAL
hal_refresh_watchdog function
at least every 699 ms to prevent the watchdog from resetting the
system.
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.00 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|