AAEON FWS-2200 User Manual
Page 78

N e t w o r k Ap p l i a n c e
F W S - 2 2 0 0
Appendix A Programming the Watchdog Timer
A-8
************************************************************************************
// Procedure :
void AaeonWDTEnable (Byte Timer, boolean Unit){
Byte val;
//Super I/O Entry Key
outportb(SIOIndex,0x87);
outportb(SIOIndex,0x87);
// Select Logic Device Number Register
outportb(SIOIndex,0x07);
outportb(SIOData,0x08);
// Setting WDT Operation Mode
outportb(SIOIndex,0xF5);
val = inportb((SIOData);
outportb(SIOIndex,0xF5);
outportb(SIOData, val | Unit << 3 );
// Setting WDT Counter
outportb(SIOIndex,0xF6);
outportb(SIOData,Timer);
}
************************************************************************************