ITA-1611 User Manual
54
}
if (data & 0x04)
{
//If bit 2 is set to 1 (this means SMBUS error), then error has
occurred in SMBUS. This rarely happens
result = 1;
//SMBUS error
break;
}
}
returnresult;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
/
BYTEcheck_data(WORD addr)
{
int i;
BYTE data;
for(i = 0; i <= 6; i++)
{
data = inportb(addr);
if (data != 0)
break;
}
returndata;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
/
voidnewiodelay()
//shot time delay
{
outportb(0xeb, 0);
//IO port 0xeb is not occupied by any device actually.
Writing value to this port can cause time delay. The user can also use other
methods instead
}
////////////////////////////////////////////////////////////////////////////////////////////////////
/
voidmoredelay()
//long time delay
{
int i;
for (i = 0; i < 20; i++)
{
outportb(0xeb, 0);
//IO port 0xeb is not occupied by any device actually.
Writing value to this port can cause time delay. The user can also use other
methods instead
}
}
***********************************************************************
*
GPIO simulation code
Summary of Contents for ITA-1611 Series
Page 1: ...User Manual ITA 1611 Series Fanless Embedded Celeron Dual Core Compact Industrial Computer...
Page 11: ...Chapter 1 1 Overview This chapter provides general Information about the ITA 1611...
Page 15: ...Chapter 2 2 H W Installation This chapter provides H W Instal lation about the ITA 1611...
Page 27: ...Chapter 3 3 System Setup This chapter introduces the instal lation process of ITA 1611...
Page 33: ...Chapter 4 4 AMI BIOS This chapter introduces how to configure AMI BIOS...
Page 52: ...ITA 1611 User Manual 42...
Page 53: ...Chapter 5 5 Driver Installation This chapter describes how to Install drivers...
Page 57: ...Chapter 6 6 GPIO Programming Guide This chapter introduces GPIO pro gramming guide...
Page 66: ...ITA 1611 User Manual 56...