Intel 386 Computer Hardware User Manual


 
C-13
EXAMPLE CODE HEADER FILES
BYTE PreScale);
extern WORD SSerialReadWord(BYTE MasterSlave);
extern void SSerialWriteWord(WORD Ch,BYTE MasterSlave);
void interrupt far SSIO_ISR(void);
extern void Service_RHBF(void);
extern void Service_THBE(void);
/********************* Watch Dog Timer ***********************/
#define SetWatchDogReload(ReloadHi,ReloadLow) \
_SetEXRegWord(WDTRLDL,ReloadLow);_SetEXRegWord(WDTRLDH,ReloadHi);
#define WatchDogClockDisable()\
_SetEXRegByte(WDTSTATUS, _GetEXRegByte(WDTSTATUS) | BIT0MSK)
#define WatchDogClockEnable()\
_SetEXRegByte(WDTSTATUS, _GetEXRegByte(WDTSTATUS) & ~BIT0MSK)
/* Watch Dog Timer Function Definitions */
extern void ReLoadDownCounter(void);
extern DWORD GetWDT_Count(void);
extern void WDT_BusMonitor(BYTE EnableDisable);
extern void EnableWDTInterrupt(void);
void interrupt far wdtISR(void);
/********************Refresh Control Unit*********************/
#define EnableRCU() \
_SetEXRegWord(RDFSCON, _GetEXRegWord(RDFSCON) | 0x8000)
#define DisableRCU() \
_SetEXRegWord(RDFSCON, _GetEXRegWord(RDFSCON) & 0x7fff)
/* Refresh Control Unit Function Definitions */
extern int InitRCU(WORD counter_value);
extern WORD Get_RCUCounterValue(void);
/****************Clock and Power Management Unit**************/
#define IDLE 0x02
#define PWDWN 0x01
#define ACTIVE 0x00
/* Clock and Power Management Function Definitions */
extern int Set_Prescale_Value(WORD prescale);
extern void Enter_Idle_Mode(void);
extern void Enter_Powerdown_Mode(void);
extern void Mode_Setting_To_Active(void);