System Installation
WADE-8044 User’s Manual
3-9
Read W_GP21
unsigned char readSO_21()
{
unsigned char TempData,ret;
/* Enter to Extension Mode */
outportb(IOADDRESS, 0x87);
outportb(IOADDRESS, 0x87);
/* Select Logical Device 9 */
outportb(IOADDRESS, 0x07);
outportb(IODATA, 0x09);
outportb(IOADDRESS,0xE4);
ret = inportb(IODATA)& 0x02;
/* Exit Extension Mode */
outportb(IOADDRESS, 0xAA);
return ret;