Asus Aaeon EPIC-CFS7-PUC User Manual page 92

Table of Contents

Advertisement

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
}
WDTClearTimeoutStatus()
VOID
WDTSetBit(
TimerReg, StatusBit, 1
}
*******************************************************************************
*******************************************************************************
WDTWriteByte(byte Register, byte Value)
VOID
IOWriteByte(WDTAddr+Register, Value);
}
WDTReadByte(byte Register)
byte
return IOReadByte(WDTAddr+Register);
}
WDTSetBit(byte Register, byte Bit, byte Val)
VOID
byte TmpValue;
TmpValue = WDTReadByte(Register);
TmpValue &= ~(1 << Bit);
TmpValue |= Val << Bit;
WDTWriteByte(Register, TmpValue);
}
*******************************************************************************
Appendix B – Watchdog Timer Programming
);
);
);
);
);
{
);
{
{
{
79

Advertisement

Table of Contents
loading

Table of Contents