Appendix A – Watchdog Timer Programming
91
Fan
les
s E
mb
ed
ded
Bo
x
PC
BO
XE
R-
6651
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);
}
*******************************************************************************
*******************************************************************************
Summary of Contents for BOXER-6651
Page 1: ...Last Updated November 4 2015 BOXER 6651 Fanless Embedded Box PC User s Manual 2nd Ed...
Page 15: ...Fanless Embedded Box PC BOXER 6651 Chapter 1 Chapter 1 Product Specifications...
Page 19: ...Fanless Embedded Box PC BOXER 6651 Chapter 2 Chapter 2 Hardware Information...
Page 20: ...Chapter 2 Hardware Information 6 Fanless Embedded Box PC BOXER 6651 2 1 Dimensions...
Page 21: ...Chapter 2 Hardware Information 7 Fanless Embedded Box PC BOXER 6651 2 2 Jumpers and Connectors...
Page 62: ...Fanless Embedded Box PC BOXER 6651 Chapter 3 Chapter 3 AMI BIOS Setup...
Page 83: ...Fanless Embedded Box PC BOXER 6651 3 4 7 Advanced Hardware Monitor...
Page 94: ...Fanless Embedded Box PC BOXER 6651 Chapter 4 Chapter 4 Drivers Installation...
Page 101: ...Chapter 4 Driver Installation 87 Fanless Embedded Box PC BOXER 6651...
Page 102: ...Fanless Embedded Box PC BOXER 6651 Appendix A Appendix A Watchdog Timer Programming...
Page 107: ...Fanless Embedded Box PC BOXER 6651 Appendix B Appendix B I O Information...
Page 108: ...Appendix B I O Information 94 Fanless Embedded Box PC BOXER 6651 B 1 I O Address Map...
Page 109: ...Appendix B I O Information 95 Fanless Embedded Box PC BOXER 6651 B 2 Memory Address Map...
Page 110: ...Appendix B I O Information 96 Fanless Embedded Box PC BOXER 6651 B 3 IRQ Mapping Chart...