
AEWIN Technologies Co., Ltd MB-8390 User Manual
64
}
else{
help();
}
Exit_SIO();
return;
}
void Enter_SIO()
{
outportb(index_port, 0x87);
delay(1);
outportb(index_port, 0x87);
outportb(index_port, 0x07);
outportb(data_port, 0x06);
}
void Exit_SIO()
{
outportb(index_port, 0xAA);
}
void help()
{
printf("AEWIN GPIO test program\n");
printf("==============================================\n");
printf("gpio -hhh (Set GP80~87 to high)\n");
printf("gpio -lll (Set GP80~87 to low )\n");
printf("gpio -lte (Set GP80~83 to high, GP84~87 to low)\n");
printf("gpio -ltd (Set GP80~83 to low, GP84~87 to high)\n");
printf("gpio -gpr (Read GPIO status)\n");
printf("gpio -xxh (Set xx to high)\n");
printf("gpio -xxl (Set xx to low)\n");
printf(" (xx=80~87)\n");
printf("==============================================\n");
}