Acrosser AR-B1631ET User Manual
Page 30

AR-B1631ET User’s Guide
30/30
void Enter_Config(BYTE IO_PORT_BASE)
{
outportb(IO_PORT_BASE,0x87);
outportb(IO_PORT_BASE,0x87);
}
/*[]=====================================================================[]*/
/*|| Function : Exit_Config()
||*/
/*|| Input : BYTE IO_PORT_BASE
||*/
/*||
Change
:
-
||*/
/*||
Return :
-
||*/
/*|| Description: Exit chip configuration key.
||*/
/*[]=====================================================================[]*/
void Exit_Config(BYTE IO_PORT_BASE)
{
outportb(IO_PORT_BASE,0xAA);
}
/*[]=====================================================================[]*/
/*|| Function : Init_SIO()
||*/
/*||
Input
:
-
||*/
/*||
Change
:
-
||*/
/*|| Return
: character 'y' or 'n'
||*/
/*|| Description: Confirm get 'Y' or 'N' key.
||*/
/*[]=====================================================================[]*/
void Init_SIO(BYTE IO_PORT_BASE)
{
/* Set Multi-function Pins to GPIO */
outportb(IO_PORT_BASE,0x2A);
outportb(IO_PORT_BASE+1,(inportb(IO_PORT_BASE+1) | 0xFC));
// Select GPIO Port device
outportb(IO_PORT_BASE,0x07);
outportb(IO_PORT_BASE+1,0x07);
// Set GPIO Port Active
outportb(IO_PORT_BASE,0x30);
outportb(IO_PORT_BASE+1,0x01);
}