TDS e28 User Manual page 32

Epic sbc supports intel atom n270 processor with gigabit lan / lvds / tv out / 2com / wifi
Table of Contents

Advertisement

char *Model_Name="AR-B5432";
unsigned char
IO_PORT_BASE=0x2E; // DATA_PORT = IO_PORT_BASE + 1;
unsigned char data;
int result=0;
if ( argc > 1 )
{ Show_Help();
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_PORT_BASE+1,(inportb(IO_PORT_BASE+1) | 0x08));
// Select GPIO Port device
outportb(IO_PORT_BASE,0x07);
outportb(IO_PORT_BASE+1,0x06);
return 1; }
32
E28 User Manual
||");
||");
||");

Advertisement

Table of Contents
loading

Related Products for TDS e28

Table of Contents