AAEON FWS-7400 User Manual

Page 80

Advertising
background image

N e t w o r k Ap p l i a n c e

F W S - 7 4 0 0

Appendix A Programming the Watchdog Timer A-5

************************************************************************************

// 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); 

} 

 

VOID   

WDTClearTimeoutStatus()

{ 

 

SIOBitSet(StatusLDN, StatusReg, StatusBit, 1); 

} 
************************************************************************************

Advertising