Specifications
INTELLIGENT PLATFORM MANAGEMENT INTERFACE
7-18 PP 41x/03x
unsigned char bLength;
unsigned short int wStatus = E_OK;
abRequest [0] = NFC_APP_REQUEST << 2;
abRequest [1] = CMD_WATCHDOG_RESET; /* command */
vBmcSmicSmsMessageWrite (abRequest, 2);
vBmcSmicSmsMessageRead (abResponse, &bLength);
if (abResponse [2] != COMPLETION_OK)
wStatus = E_COMPLETION;
return wStatus;
}
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);