Intel
®
NetStructure
TM
ZT 5515 Compute Processor Board Technical Product Specification
45
Watchdog Timer
8.2.2.2
Enabling the Watchdog NMI
To activate the NMI feature, enable it in the watchdog register (Port 79h). The code to do this
might look like the following:
#define WD_NMI_EN_BIT_SET
0x10
void EnableWatchdogNmi(void){
unsigned char WdValue;
// Holds watchdog register values.
//
WdValue = inb(WD_CSR_IO_ADDRESS);// Read the current contents of the
// watchdog register.
WdValue |= WD_NMI_EN_BIT_SET;
// Assert the enable bit in the
// local copy.
outb(WD_CSR_IO_ADDRESS,WdValue);
// Assert the enable in the watchdog
// register.
}
electronic components distributor