Fortec Star iBASE IB836 Series Manual page 84

3,5“ embedded single-board computer with intel atom x6000 series / pentium / celeron elkhard lake processor
Table of Contents

Advertisement

}
//---------------------------------------------------------------------------
void Set_F81866_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81866();
outportb(F81866_INDEX_PORT, REG);
outportb(F81866_DATA_PORT, DATA);
Lock_F81866();
}
//---------------------------------------------------------------------------
unsigned char Get_F81866_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_F81866();
outportb(F81866_INDEX_PORT, REG);
Result = inportb(F81866_DATA_PORT);
Lock_F81866();
return Result;
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
// 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.
//
//---------------------------------------------------------------------------
#ifndef
F81866_H
#define
F81866_H
//---------------------------------------------------------------------------
#define
F81866_INDEX_PORT
#define
F81866_DATA_PORT
//---------------------------------------------------------------------------
#define
F81866_REG_LD
//---------------------------------------------------------------------------
#define
F81866_UNLOCK
#define
F81866_LOCK
//---------------------------------------------------------------------------
unsigned int Init_F81866(void);
void Set_F81866_LD( unsigned char);
void Set_F81866_Reg( unsigned char,
unsigned char); unsigned char
Get_F81866_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif // F81866_H
74
1
(F81866_BASE)
(F81866_BASE+1)
0x07
0x87
0xAA
IB836 User's Manual

Advertisement

Table of Contents
loading

Table of Contents