Intel386™ EX EMBEDDED MICROPROCESSOR USER’S MANUAL
17-14
Parameters:
None
Returns:
16-bit down-counter value
Assumptions:
None
Syntax:
WORD counter_value;
counter_value = GetWDT_Count();
Real/Protected Mode:
No changes required.
******************************************************************************/
DWORD GetWDT_Count(void)
{
WORD LowWord, HiWord;
LowWord = _GetEXRegWord(WDTCNTL);
HiWord = _GetEXRegWord(WDTCNTH);
return (((DWORD)HiWord << 16) + LowWord);
}/* GetWDT_Count */
/*****************************************************************************
WDT_BusMonitor:
Description:
Enables the bus monitor mode of the Watch Dog Timer.
Parameters:
EnableDisable Nonzero if bus monitor mode is to be enabled,
Zero if it is to be disabled
Returns:
None
Assumptions:
None
Syntax:
#define Enable 0x01
#define Disable 0x00