TDS e28 User Manual page 33

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

Advertisement

// Set GPIO Port Active
outportb(IO_PORT_BASE,0x30);
outportb(IO_PORT_BASE+1,0x01);
// Set F81865 GPIO50~53 to Output, GPIO54~GPIO57 to Input
outportb(IO_PORT_BASE,0xA0);
outportb(IO_PORT_BASE+1,0x0F);
// Set F81865 GPIO50~53 to High
outportb(IO_PORT_BASE,0xA1);
outportb(IO_PORT_BASE+1,0x0F);
// Read F81865 GPIO54~57 Status, if not High error.
outportb(IO_PORT_BASE,0xA2);
data=inportb(IO_PORT_BASE+1)&0xF0;
if(data!=0xF0)
result=1;
// Set F81865 GPIO50~53 to Low
outportb(IO_PORT_BASE,0xA1);
outportb(IO_PORT_BASE+1,0x00);
// Read F81865 GPIO54~57 Status, if not Low error.
outportb(IO_PORT_BASE,0xA2);
data=inportb(IO_PORT_BASE+1)&0xF0;
if(data!=0x00)
result=1;
// Set F81865 GPIO50~53 to input, GPIO54~GPIO57 to Output
outportb(IO_PORT_BASE,0xA0);
outportb(IO_PORT_BASE+1,0xF0);
// Set F81865 GPIO54~57 to High
outportb(IO_PORT_BASE,0xA1);
outportb(IO_PORT_BASE+1,0xF0);
// Read F81865 GPIO50~53 Status, if not High error.
outportb(IO_PORT_BASE,0xA2);
data=inportb(IO_PORT_BASE+1)&0x0F;
if(data!=0x0F)
result=1;
33
E28 User Manual

Advertisement

Table of Contents
loading

Related Products for TDS e28

Table of Contents