Advantech ARK-5420 Series User Manual page 72

Intel 3rd generation core i processor based fanless system with pcie x 4 & pci slot
Table of Contents

Advertisement

SMBUS), error occurs on SMBUS which is rarely the case
}
returnresult;
}
//////////////////////////////////////////////////////////////
///////////////////////////////////////
BYTE
check_data(WORD addr)
{
int i;
BYTE data;
for(i = 0; i <= 6; i++)
{
}
returndata;
}
//////////////////////////////////////////////////////////////
///////////////////////////////////////
void
newiodelay()
//Shorter delay
{
outportb(0xeb, 0);//IO port 0xeb No real device occu-
pies. Write a value to this port can realize delay function.
You can also choose other method according to the real situa-
tion.
}
//////////////////////////////////////////////////////////////
///////////////////////////////////////
void
moredelay()
//Longer delay
{
int i;
for (i = 0; i < 20; i++)
{
ARK-5420 User Manual
if (data & 0x04)
{
//If bit 2 is set (which means error occurs on
result = 1;//SMBUS error
break;
}
data = inportb(addr);
if (data != 0)
break;
60

Advertisement

Table of Contents
loading

Table of Contents