User manual
ID70 Motherboard User Manual
71
//Exit
if (kbhit())
{
getch();
break;
}
//Delay
delay(500);
}
return 0;
}
//============================================================
void ClrKbBuf(void)
{
while(kbhit())
{ getch(); }
}
//============================================================
void Unlock_F81865 (void)
{
outportb(F81865_INDEX_PORT, F81865_UNLOCK);
outportb(F81865_INDEX_PORT, F81865_UNLOCK);
}
//============================================================
void Lock_F81865 (void)
{
outportb(F81865_INDEX_PORT, F81865_LOCK);
}
//============================================================
void Set_F81865_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81865();
outportb(F81865_INDEX_PORT, REG);
outportb(F81865_DATA_PORT, DATA);
Lock_F81865();
}
//============================================================
unsigned char Get_F81865_Reg( unsigned char REG)