Advantech ITA-5831 Series User Manual page 82

Fanless embedded industrial computer with 6th gen intel core i processor 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++)
{
}
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++)
{
pies. Write a value to this port can realize delay function. You can
also choose other method according to the real situation.
}
}
ITA-5831 User Manual
data = inportb(addr);
if (data!= 0)
break;
outportb(0xeb, 0); // IO port 0xeb No real device occu-
72

Advertisement

Table of Contents
loading

Table of Contents