Asus Aaeon VPC-3350S User Manual page 77

Mobile nvr
Hide thumbs Also See for Aaeon VPC-3350S:
Table of Contents

Advertisement

************************************************************************************
// Procedure : AaeonWDTEnable
VOID AaeonWDTEnable (){
WDTEnableDisable(EnableLDN, EnableReg, EnableBit, 1);
}
// Procedure : AaeonWDTConfig
VOID AaeonWDTConfig (){
// Disable WDT counting
WDTEnableDisable(EnableLDN, EnableReg, EnableBit, 0);
// Clear Watchdog Timeout Status
WDTClearTimeoutStatus();
// WDT relative parameter setting
WDTParameterSetting();
}
VOID WDTEnableDisable(byte LDN, byte Register, byte BitNum, byte Value){
SIOBitSet(LDN, Register, BitNum, Value);
}
VOID WDTParameterSetting(){
// Watchdog Timer counter setting
SIOByteSet(TimerLDN, TimerReg, TimerVal);
// WDT counting unit setting
SIOBitSet(UnitLDN, UnitReg, UnitBit, UnitVal);
// WDT output mode setting, level / pulse
SIOBitSet(ModeLDN, ModeReg, ModeBit, ModeVal);
// Watchdog timeout output via WDTRST#
SIOBitSet(WDTRstLDN, WDTRstReg, WDTRstBit, WDTRstVal);
}
VOID WDTClearTimeoutStatus(){
SIOBitSet(StatusLDN, StatusReg, StatusBit, 1);
}
************************************************************************************
Appendix A – Watchdog Timer Programming
64

Advertisement

Table of Contents
loading

Table of Contents