Appendix
AMS210
User Manual
67
F81966_BASE = 0x00;
result = F81966_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_F81966 (void)
{
outportb(F81966_INDEX_PORT, F81966_UNLOCK);
outportb(F81966_INDEX_PORT, F81966_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_F81966 (void)
{
outportb(F81966_INDEX_PORT, F81966_LOCK);
}
//---------------------------------------------------------------------------
void Set_F81966_LD( unsigned char LD)
{
Unlock_F81966();
outportb(F81966_INDEX_PORT, F81966_REG_LD);
outportb(F81966_DATA_PORT, LD);
Lock_F81966();
}
//---------------------------------------------------------------------------
void Set_F81966_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_F81966();
outportb(F81966_INDEX_PORT, REG);
outportb(F81966_DATA_PORT, DATA);
Lock_F81966();
}
//---------------------------------------------------------------------------
unsigned char Get_F81966_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_F81966();
outportb(F81966_INDEX_PORT, REG);
Result = inportb(F81966_DATA_PORT);
Lock_F81966();
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 F81966_H
#define F81966_H
1
//---------------------------------------------------------------------------
#define F81966_INDEX_PORT
(F81966_BASE)
#define F81966_DATA_PORT (F8191)
//---------------------------------------------------------------------------
#define F81966_REG_LD
0x07
//---------------------------------------------------------------------------
#define F81966_UNLOCK
0x87
#define F81966_LOCK 0xAA
//---------------------------------------------------------------------------
unsigned int Init_F81966(void);
void Set_F81966_LD( unsigned char);
void Set_F81966_Reg( unsigned char,
unsigned char); unsigned char
Get_F81966_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif // F81966_H
Содержание AMS210
Страница 1: ...AMS210 Embedded System with MB211 User s Manual Version 1 0 March 2020...
Страница 14: ...8 AMS210 User Manual 1 7 Dimensions AMS210 Unit mm...
Страница 15: ...Hardware Configuration AMS210 User Manual 9 2 This page is intentionally left blank...
Страница 32: ...26 AMS210 User Manual 2 5 8 J16 DDR SO DIMM Channel A 2 5 9 J15 DDR SO DIMM Channel B...
Страница 41: ...Hardware Configuration AMS210 User Manual 35 2 This page is intentionally left blank...