The following example shows how to set the watchdog to power cycle if the watchdog is not
restarted within 20 seconds, generate an NMI if there is less than 10 seconds before the
watchdog expires, define its use as an “operating system load” watchdog, clear any OEM
expiration flags, log the watchdog failure in the event log:
wSetWatchdog (FALSE, 200, TO_ACTION_POWER_CYCLE,
10, PRE_TO_INT_NMI,
USAGE_OS_LOAD, FLAG_OEM);
The
wSetWatchdog
function does not start the watchdog facility and the
wResetWatchdog
function must be used. This function simply restarts from the internal watchdog timer to the
value specified in the
vSetWatchdog
function. The
wResetWatchdog
function is used thus:
wResetWatchdog ();
The
vSetWatchdog
function is used to disable the watchdog facilities and is used thus:
wSetWatchdog (FALSE, 0, 0, 0, 0, 0, 0);
7-18
PP 110/01x
Intelligent Platform Manager Interface
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com