Asus AAEON BOXER-6615 User Manual page 76

Fanless embedded box pc
Table of Contents

Advertisement

VOID AaeonWDTEnable (){
WDTEnableDisable(1);
}
// Procedure : AaeonWDTConfig
VOID AaeonWDTConfig (byte Counter, BOOLEAN Unit){
// Disable WDT counting
WDTEnableDisable(0);
// Clear Watchdog Timeout Status
WDTClearTimeoutStatus();
// WDT relative parameter setting
WDTParameterSetting(Timer, Unit);
}
VOID WDTEnableDisable(byte Value){
If (Value == 1)
WDTSetBit(TimerReg, EnableBit, 1);
else
WDTSetBit(TimerReg, EnableBit, 0);
}
VOID WDTParameterSetting(byte Counter, BOOLEAN Unit){
// Watchdog Timer counter setting
WDTWriteByte(CounterReg, Counter);
// WDT counting unit setting
WDTSetBit(TimerReg, UnitBit, Unit);
// WDT output mode set to pulse
WDTSetBit(TimerReg, ModeBit, ModeVal);
// WDT output mode set to active low
WDTSetBit(TimerReg, PolarityBit, PolarityVal);
// WDT output pulse width is 25ms
WDTSetBit(TimerReg, PSWidthBit, PSWidthVal);
// Watchdog WDTRST# Enable
WDTSetBit(DevReg, WDTRstBit, WDTRstVal);
}
VOID WDTClearTimeoutStatus(){
WDTSetBit(TimerReg, StatusBit, 1);
}
*******************************************************************************
*******************************************************************************
Appendix A – Watchdog Timer Programming
63

Advertisement

Table of Contents
loading

Table of Contents