// Read W83627HF GPIO34~37 Status, if not 0x50 error.
delay(100);
data=inportb(IO_PORT_BASE+1)&0xF0;
if(data!=0x50)
result=1;
// Set W83627HF GPIO30~33 to 0x0A
outportb(IO_PORT_BASE,0xF1);
outportb(IO_PORT_BASE+1,0x0A);
// Read W83627HF GPIO34~37 Status, if not 0xA0 error.
delay(100);
data=inportb(IO_PORT_BASE+1)&0xF0;
if(data!=0xA0)
result=1;
// Exit W83627HF Config
outportb(IO_PORT_BASE,0xAA);
if(result)
Show_Fail();
else
Show_Pass();
return result;
}
//===========================================================================
// Function : Show_Help()
// Input
: -
// Change : -
// Return : -
// Description : Show Title string.
//===========================================================================
void Show_Help()
{
clrscr();
printf("GPIO Test utility for W83627HF\n\n");
迋芼
printf("GPIO0
奼迋 GPIO1\n");
60
Revision: 1.0