American Megatrends IB892 User Manual page 56

Intel atom eg20t chipset 3.5” disk size sbc
Table of Contents

Advertisement

APPENDIX
}
//---------------------------------------------------------------------------
void Dio5Initial(void)
{
unsigned char ucBuf;
Set_W627UHG_LD(0x08);
//enable the GP5 group
ucBuf = Get_W627UHG_Reg(0x30);
ucBuf |= 0x02;
Set_W627UHG_Reg(0x30, ucBuf);
}
//---------------------------------------------------------------------------
void Dio5SetOutput(unsigned char NewData)
{
Set_W627UHG_LD(0x08);
Set_W627UHG_Reg(0xE1, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetInput(void)
{
unsigned char result;
Set_W627UHG_LD(0x08);
result = Get_W627UHG_Reg(0xE1);
return (result);
}
//---------------------------------------------------------------------------
void Dio5SetDirection(unsigned char NewData)
{
//NewData : 1 for input, 0 for output
Set_W627UHG_LD(0x08);
Set_W627UHG_Reg(0xE0, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetDirection(void)
{
unsigned char result;
Set_W627UHG_LD(0x08);
result = Get_W627UHG_Reg(0xE0);
return (result);
}
//---------------------------------------------------------------------------
52
IB892 User's Manual
//switch to logic device 8
//switch to logic device 8
//switch to logic device 8
//switch to logic device 8
//switch to logic device 8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents