Appendix A – Watchdog Timer Programming57Fanless Embedded Box PC BOXER-6403WT************************************************************************************// Procedure : AaeonWDTEnableVOID AaeonWDTEnable (){WDTEnableDisable(EnableLDN, EnableReg, EnableBit, 1);}// Procedure : AaeonWDTConfigVOID AaeonWDTConfig (){// Disable WDT countingWDTEnableDisable(EnableLDN, EnableReg, EnableBit, 0);// Clear Watchdog Timeout StatusWDTClearTimeoutStatus();// WDT relative parameter settingWDTParameterSetting();}VOID WDTEnableDisable(byte LDN, byte Register, byte BitNum, byte Value){SIOBitSet(LDN, Register, BitNum, Value);}VOID WDTParameterSetting(){// Watchdog Timer counter settingSIOByteSet(TimerLDN, TimerReg, TimerVal);// WDT counting unit settingSIOBitSet(UnitLDN, UnitReg, UnitBit, UnitVal);// WDT output mode setting, level / pulseSIOBitSet(ModeLDN, ModeReg, ModeBit, ModeVal);// Watchdog timeout output via WDTRST#SIOBitSet(WDTRstLDN, WDTRstReg, WDTRstBit, WDTRstVal);}VOID WDTClearTimeoutStatus(){SIOBitSet(StatusLDN, StatusReg, StatusBit, 1);}************************************************************************************