Aaeon AEC-6402 Manual page 81

Embedded controller
Table of Contents

Advertisement

E m b e d d e d C o n t r o l l e r
// Procedure : AaeonWDTEnable
// This procudure will enable the WDT counting.
AaeonWDTEnable();
}
**************************************************************************
*****
**************************************************************************
*****
// Procedure : AaeonWDTEnable
AaeonWDTEnable ()
VOID
WDTEnableDisable(1);
}
// Procedure : AaeonWDTConfig
AaeonWDTConfig (byte Counter, BOOLEAN Unit)
VOID
// Disable WDT counting
WDTEnableDisable(
// Clear Watchdog Timeout Status
WDTClearTimeoutStatus();
// WDT relative parameter setting
WDTParameterSetting(Timer, Unit);
}
WDTEnableDisable(byte Value)
VOID
If (Value == 1)
WDTSetBit(
else
WDTSetBit(
}
WDTParameterSetting(byte Counter, BOOLEAN Unit)
VOID
// Watchdog Timer counter setting
WDTWriteByte(
// WDT counting unit setting
WDTSetBit(
Appendix A Programming the Watchdog Timer A-4
{
);
0
TimerReg, EnableBit, 1
TimerReg, EnableBit, 0
CounterReg, Counter
TimerReg, UnitBit, Unit
A E C - 6 4 0 2
{
);
);
);
);
{
{

Advertisement

Table of Contents
loading

Table of Contents