F81866 Watchdog Timer Initial Program - Aaeon FSB-H81H Manual

Full-size, intel core i7 / i5 / i3, lga 1150 processor, full-size cpu card, with ddr3 / l, 2 gigabit ethernet usb 3.0 / usb2.0, sata 6.0gb/s, sata 3.0 gb/s
Table of Contents

Advertisement

F u l l - s i z e S B C
A.2 F81866 Watchdog Timer Initial Program
Main
(){
aaeonSuperIOOpen();
aaeonWdtSetCountMode(BOOL bMinute); // Set wdt count mode
aaeonWdtSetTimeoutCount(BYTE tTimeout); // Set wdt timer
aaeonWdtSetEnable(BOOL bEnable); // Enable wdt
aaeonSuperIOClose();
}
Void aaeonSuperIOOpen(){
aaeonioWritePortByte(F81866_INDEX, 0x87);
aaeonioWritePortByte(F81866_INDEX, 0x87);
}
Void aaeonWdtSetCountMode(BOOL bMinute){
BYTE WDT_CONTROL = f81866ReadByte(F81866_WDT_CONTROL_REG);
if(bMinute)
f81866WriteByte(F81866_WDT_CONTROL_REG, WDT_CONTROL | 0x08);
else
f81866WriteByte(F81866_WDT_CONTROL_REG, WDT_CONTROL & 0xF7);
}
// Config F81866 Entry key
Appendix A Programming the Watchdog Timer
F S B - H 8 1 H
A-5

Advertisement

Table of Contents
loading

Table of Contents