BIOS Setup Information
33
GMB-C2165-LLVA User
‟
s Manual
}
return NULL;
}
/*******************************************************
Procedure Name: Set GPIO Pin 3 Mode & In/Out data
Description: Set GPIO Pin I/O Mode
if GPIOMode is Input , input 2 data will
don‟t care and this function will return
read value.
Pin 3:GP62
Input 1: INT GPIOMode
Input 2: INT Data
Out 1: INT Data
*******************************************************/
int SET_GPIO_PIN3(
int GPIOMode,
int Data ){
//GPIO Mode is Output
if(GPIOMode = 0){
Set_IT8783_Byte_Val(0x2E,0xCD, Get_IT8783_Byte_Val(0x2E,0xCD) |
(1<<2));
//if Data is HIGH
if(Data==1){
outportb( 5, 1<<2 );
}
//if Data is LOW
if(Data==0){
outportb( 5, (inportb( 5) & ~(1<<2) ) );
}
return NULL;
}
//GPIO Mode is Input
else if(GPIOMode = 1){
Set_IT8783_Byte_Val(0x2E,0xCD, Get_IT8783_Byte_Val(0x2E,0xCD) &
~(1<<2));
Data = inportb( 5) & (1<<2);
return
Data;
}
return NULL;
}
/*******************************************************