WinSystems EBC-LP Operation Manual page 81

Small, high-performance, embeddable computer system on a single board
Table of Contents

Advertisement

temp = inportb(base_port+9);
/* See if any bit set, if so return the bit number */
if(temp !=0)
{
for(x=0; x <=7; x++)
{
int */
}
}
/* Lastly, read status of port 2 int id */
temp = inportb(base_port+0x0a);
/* If any pending, return the appropriate bit number */
if(temp !=0)
{
for(x=0; x <=7; x++)
{
int */
}
}
/* We should never get here unless the hardware is misbehaving but just
to be sure. We'll turn the page access back to 0 and return a 0 for
no interrupt found.
*/
outportb(base_port+7,0);
return 0;
}
if(temp & (1 << x))
{
outportb(base_port+7,0);
return(x+9);
}
if(temp & (1 << x))
{
outportb(base_port+7,0);
return(x+17);
}
/* Turn off access */
/* Return bitnumber with active
/* Read port 2 status */
/* Turn off access */
/* Return bitnumber with active

Advertisement

Table of Contents
loading

Table of Contents