American Megatrends MB967 User Manual page 27

Intel ivy bridge / c216 pch
Table of Contents

Advertisement

void Dio5SetOutput(unsigned char NewData)
{
Set_F81865_LD(0x06);
Set_F81865_Reg(0xA1, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetInput(void)
{
unsigned char result;
Set_F81865_LD(0x06);
result = Get_F81865_Reg(0xA2);
return (result);
}
//---------------------------------------------------------------------------
void Dio5SetDirection(unsigned char NewData)
{
//NewData : 1 for input, 0 for output
Set_F81865_LD(0x06);
Set_F81865_Reg(0xA0, NewData);
}
//---------------------------------------------------------------------------
unsigned char Dio5GetDirection(void)
{
unsigned char result;
Set_F81865_LD(0x06);
result = Get_F81865_Reg(0xA0);
return (result);
}
//---------------------------------------------------------------------------
Filename:81865.cpp
//---------------------------------------------------------------------------
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
//---------------------------------------------------------------------------
#include "F81865.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int F81865_BASE;
void Unlock_F81865 (void);
void Lock_F81865 (void);
//---------------------------------------------------------------------------
unsigned int Init_F81865(void)
{
unsigned int result;
unsigned char ucDid;
F81865_BASE = 0x4E;
result = F81865_BASE;
ucDid = Get_F81865_Reg(0x20);
if (ucDid == 0x07||ucDid == 0x10)
{
goto Init_Finish;
F81865_BASE = 0x2E;
result = F81865_BASE;
ucDid = Get_F81865_Reg(0x20);
if (ucDid == 0x07||ucDid == 0x10)
{
goto Init_Finish;
F81865_BASE = 0x00;
result = F81865_BASE;
}
}
MB967 User's Manual
INSTALLATIONS
//switch to logic device 6
//switch to logic device 6
//switch to logic device 6
//switch to logic device 6
//Fintek 81865/66
//Fintek 81865/66
27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents