Asus Aaeon EPIC-CFS7-PUC User Manual page 91

Table of Contents

Advertisement

*******************************************************************************
// Procedure : AaeonWDTEnable
VOID EnterSIOconfig
IOWriteByte (IoConfAddr,0x87);
IOWriteByte (IoConfAddr,0x87);
}
()
VOID ExitSIOconfig
IOWriteByte (IoConfAddr,0xAA);
}
()
VOID SetWDT
IOWriteByte (IoConfAddr,0x2B);
IOWriteByte(IoConfAddr+1, (IOReadByte(IoConfAddr+1)&0xFC));
}
// Procedure : AaeonWDTEnable
AaeonWDTEnable ()
VOID
WDTEnableDisable(1);
}
// Procedure : AaeonWDTConfig
AaeonWDTConfig (byte Counter, BOOLEAN Unit)
VOID
// Disable WDT counting
WDTEnableDisable(
// Clear Watchdog Timeout Status
WDTClearTimeoutStatus();
// WDT relative parameter setting
WDTParameterSetting(Timer, Unit);
}
WDTEnableDisable(byte Value)
VOID
If (Value == 1)
WDTSetBit(
else
WDTSetBit(
}
WDTParameterSetting(byte Counter, BOOLEAN Unit)
VOID
// Watchdog Timer counter setting
WDTWriteByte(
// WDT counting unit setting
Appendix B – Watchdog Timer Programming
()
{
{
{
);
0
{
);
TimerReg, EnableBit, 1
);
TimerReg, EnableBit, 0
);
CounterReg, Counter
{
{
78

Advertisement

Table of Contents
loading

Table of Contents