AR-B5432 series User Manual
32
char *Model_Name="AR-B5432";
unsigned char
IO_PORT_BASE=0x2E; // DATA_PORT = IO_POR 1;
unsigned char data;
int result=0;
if ( argc > 1 )
{ Show_Help(); return 1; }
clrscr();
textcolor(WHITE);
gotoxy(1, 1);
cprintf("<>==========================================================================<>");
gotoxy(1, 2); cprintf("|| F81865 GPIO Test Utility v1.0 Acrosser Technology Co., Ltd. ||");
gotoxy(1, 3);
cprintf("<>==========================================================================<>");
gotoxy(1, 4);
cprintf("<>==========================================================================<>");
gotoxy(1, 5); cprintf("|| Model Name : ||");
gotoxy(1, 6); cprintf("|| SIO IO Base : ||");
gotoxy(1, 7);
cprintf("<>==========================================================================<>");
// Show Got Parameter Informat
textcolor(LIGHTGRAY);
gotoxy(18,5); cprintf("%s",Model_Name);
gotoxy(18,6); cprintf("%X",IO_PORT_BASE);
// Enter F81865 Config
outportb(IO_PORT_BASE,0x87);
outportb(IO_PORT_BASE,0x87);
// Set Multi-function Pins to GPIO
outportb(IO_PORT_BASE,0x2A);
outportb(IO_PO1,(inportb(IO_PO1) | 0x08));
// Select GPIO Port device
outportb(IO_PORT_BASE,0x07);
outportb(IO_PO1,0x06);