RtResetWatchdog
RtResetWatchdog resets the watchdog timer counter on the specified RTSS core(s).
Syntax
BOOL RtResetWatchdog(
[in] UINT64 affinity
);
Parameters
[in] affinity
Affinity mask that specifies the RTSS core(s) on which the watchdog timer counter will be reset. See Specifying a Processor Affinity Bitmask for more information.
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE. Call GetLastError to obtain an error code.
Possible error codes:
| Error code | Meaning |
|---|---|
|
ERROR_NOT_SUPPORTED |
Monitor for runaway threads is disabled in the wRTOS Settings. |
Remarks
RtResetWatchdog should be called in a higher priority thread than the potential timeout-causing thread, or on a free core. See Runaway Thread Management for more information on the use of the watchdog timer.
RtResetWatchdog returns ERROR_NOT_SUPPORTED if called when watchdog expiration is disabled.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtssApi.h |
Startup.lib |
See Also: