beautypg.com

Acrosser AR-ES6050FLD User Manual

Page 40

background image

Revision: 1.0

40

void Show_Fail();
void Show_Pass();

//====================================================================
=======
// Main procedure
//====================================================================
=======
int main(int argc)
{
char *Model_Name="AR-B6050";
char *Version="v1.0";
unsigned char IO_PORT_BASE=0x2E; // DATA_PORT = IO_PORT_BASE + 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("|| W83627EHF GPIO Test Utility %s Acrosser Technology Co., Ltd.
||",Version);
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 W83627EHF Config
outportb(IO_PORT_BASE,0x87);
outportb(IO_PORT_BASE,0x87);

// Set Multi-function Pins to GPIO
outportb(IO_PORT_BASE,0x29);