Advantech ITA-5831 Series User Manual page 77

Intel the 6rd generation core i processor fanless system for railway applications
Hide thumbs Also See for ITA-5831 Series:
Table of Contents

Advertisement

/////////////////////////////////////////////////////////////////////
BYTE
check_data (W ORD addr)
{
int i;
BYTE data;
for(i = 0; i <= 6; i++)
{
data = inportb(addr);
if (data!= 0)
break;
}
return data;
}
/////////////////////////////////////////////////////////////////////
void newiodelay()
//Shorter delay
{
outportb(0xeb, 0); // IO port 0xeb No real device occupies.
Write a value to this port can realize delay function. You can also
choose other method according to the real situation.
}
/////////////////////////////////////////////////////////////////////
void
moredelay()
//longerdelay
{
int i;
for (i = 0; i < 20; i++)
{
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 situation.
}
}
67
ITA-5831 User Manual

Advertisement

Table of Contents
loading

Table of Contents