Efco EBC-3330 User Manual page 91

Smartec embedded box pc
Table of Contents

Advertisement

IOWriteByte(SIODataPort, WDT1_Base_Timer); //reference SIO Spec for more
info
ExitConfigurationRegister ();
}
//******************************************************************//
//
// The following code is for disable WDT device
//
//******************************************************************//
void SIODisableWDT (void) {
UINT16 SIOIndexPort = mSIOChipIndex [x];
UINT16 SIODataPort = SIOIndexPort + 1;
EnterConfigurationRegister ();
//
// Select logic device
//
IOWriteByte(SIOIndexPort, SIO_Logical_Device_Selection);
IOWriteByte(SIODataPort, Logical_Device_Number);
//
// WDT device disable
//
IOWriteByte(SIOIndexPort, SIO_Configuration_Register_30);
Data = IOReadByte(SIODataPort);
IOWriteByte(SIODataPort, (Data & (~BIT0))); // bit 0: Enable/Disable WDT
ExitConfigurationRegister ();
}
81

Advertisement

Table of Contents
loading

Table of Contents