Watchdog Sample Program - Efco EBC-3330 User Manual

Smartec embedded box pc
Table of Contents

Advertisement

B.2 Watchdog Sample Program
#define SIO_Logical_Device_Selection
#define SIO_Configuration_Register_30
#define SIO_Configuration_Register_F0
#define SIO_WDT1_Counter_Register
#define BIT0
//
// Choose the corresponding Index port value to access right Super I/O
//
UINT16 mSIOChipIndex [] = {0x2E, 0x4E, 0x162E, 0x164E};
void
IOWriteByte (word Register, byte Value) {
// Access IO port to write byte into Register
}
byte
IOReadByte (word Register) {
// Access IO port to read byte from Register
}
void
EnterConfigurationRegister (void) {
// Enter the Extended Function Mode
// Please refer SIO specification about "CONFIGURATION REGISTER ACCESS
PROTOCOL"
}
void
ExitConfigurationRegister (void) {
// Exit the Extended Function Mode
// Please refer SIO specification about "CONFIGURATION REGISTER ACCESS
PROTOCOL"
}
0x07;
0x30;
0xF0;
0xF1;
0x00000001;
79

Advertisement

Table of Contents
loading

Table of Contents