ADLINK cPCI-6520 User Manual
Page 73
Utilities
61
cPCI-6520
tempCount = count_value / 60;
if((count_value%60) > 30)
tempCount++;
if(tempCount > 255)
tempCount = 255;
printf("WDT timeout in %d minutes.\n",
tempCount);
}
else
{
outportb(W83627UHG_ioPort, 0xf5);
registerValue = inportb(W83627UHG_ioPort+1);
registerValue &= 0xfb;
outportb(W83627UHG_ioPort+1, registerValue); /
/ set second mode
tempCount = count_value;
}
if(tempCount)
{
outportb(W83627UHG_ioPort, 0x30);
registerValue = inportb(W83627UHG_ioPort+1);
registerValue |= 0x01;
outportb(W83627UHG_ioPort+1, registerValue); /
/ set WDTO# and PLED are active.
outportb(W83627UHG_ioPort, 0xf5);
registerValue = inportb(W83627UHG_ioPort+1);
registerValue |= 0x02;
outportb(W83627UHG_ioPort+1, registerValue); /
/ Enable KCB reset.
if(PLEDflag)
{
outportb(W83627UHG_ioPort, 0x07);
outportb(W83627UHG_ioPort+1, 9); // CR07
set Logical Device 9
outportb(W83627UHG_ioPort, 0x30);
registerValue =
inportb(W83627UHG_ioPort+1);