beautypg.com

Revision: 1.0 19 – Acrosser AR-N8601FL User Manual

Page 19

background image

Revision: 1.0

19

outportb(IO_PORT_BASE+1,0x00);

// Read W83697HF GPIO14~17 Status, if not Low error.

data=inportb(IO_PORT_BASE+1)&0xF0;

if(data!=0x00)

result=1;

// Set W83697HF GPIO10~13 to input, GPIO14~GPIO17 to Output

outportb(IO_PORT_BASE,0xF0);

outportb(IO_PORT_BASE+1,0x0F);

// Set W83697HF GPIO14~17 to High

outportb(IO_PORT_BASE,0xF1);

outportb(IO_PORT_BASE+1,0xF0);

// Read W83697HF GPIO10~13 Status, if not High error.

data=inportb(IO_PORT_BASE+1)&0x0F;

if(data!=0x0F)

result=1;

// Set W83697HF GPIO14~17 to Low

outportb(IO_PORT_BASE,0xF1);

outportb(IO_PORT_BASE+1,0x00);

// Read W83697HF GPIO14~17 Status, if not Low error.

data=inportb(IO_PORT_BASE+1)&0x0F;

if(data!=0x00)

result=1;

// Exit W83697HF Config

outportb(IO_PORT_BASE,0xAA);

if(result)

Show_Fail();

else

Show_Pass();

return result;

}