32
IO function In file SMBus.c
1. Press the "Start" button to test DIO function
2. Press the "Enable" button to test WDT function
3. Press the "Disable" button to disable WDT
4. Check the "Enable Loop" box and press "Enable" to do WDT loop test
5. Press "Install" to set the system to autorun this application when booting,
press "Uninstall" to remove this application when booting.
6. If WDT enable, system icon will be blinking.
p.s.
f75111 send "F75111_SetWDTEnable(BYTE byteTimer)" including a parameter "timer",
if there's no disable signal (F75111_SetWDTDisable()) to stop it before timer countdown to 0, System will reboot.
if there's disable signal received, resent Enable WDT signal, for a loop to prevent from reboot
Introduction
void SMBusIoWrite(BYTE byteOffset,BYTE byteData)
{
outb( byteData , m_SMBusMap byteOffset);
}
BYTE SMBusIoRead(BYTE byteOffset)
{
DWORD dwAddrVal;
dwAddrVal = inb(m_SMBusMap byteOffset);
return (BYTE)(dwAddrVal & 0x0FF);
}
Initial internal F75111
void F75111::InitInternalF75111()
{
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO1X_CONTROL_MODE ,0x00); //set GPIO1X to Input function
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO3X_CONTROL_MODE ,0x00); //set GPIO3X to Input function
this->Write_Byte(F75111_INTERNAL_ADDR,GPIO2X_CONTROL_MODE ,0xFF); //set GPIO2X to Output function
this->Write_Byte(F75111_INTERNAL_ADDR,F75111_CONFIGURATION, 0x03); //Enable WDT OUT function
}