ADLINK NuPRO-E320 User Manual
Page 88
![background image](/manuals/733619/88/background.png)
74
Watchdog Timer
//
temp = temp | 0x40;//enable WDT output through
KBRST
temp = temp | 0x10;//enable WDT output through
PWROK2 (pulse)
outportb(config_port+1, temp);
} // end of (count_value<=60)
else if(((count_value>60) && (count_value<=15300))
|| (count_value > 15300))
{
//Count the timeout value
if(count_value > 15300)
count_value = 15300;
counter = count_value/60;
if((count_value%60)>30)
counter=counter+1;
printf("WDT timeout in %d minutes.",counter);
// temp = temp | 0x40;//enable WDT output through
KBRST
temp = temp | 0x10;//enable WDT output through
PWROK2 (pulse)
outportb(config_port+1, temp);
} // end of (count_value>60)
//reset WDT by KB, MS interrupt
// outportb(config_port, 0x71);
// temp = inportb(config_port + 1);
// temp = temp | 0x60;//Bit 6 = KB interrupt, Bit 5 =
MS interrupt
// outportb(config_port+1, temp);
//Write count value
outportb(config_port, 0x73);
outportb(config_port+1, counter);
} // end of WDTRUN