48
************************************************************************************
#define Word
LED2Add //This parameter is represented from Note1
#define Word
LED1Add //This parameter is represented from Note2
#define Word
LED0Add //This parameter is represented from Note3
#define Byte
LED2Bit //This parameter is represented from Note4
#define Byte
LED1Bit //This parameter is represented from Note5
#define Byte
LED0Bit //This parameter is represented from Note6
#define Byte
UnitVal //This parameter is represented from Note7
************************************************************************************
VOID
SET Value (Word IoAddr, Byte BitNum,Byte Value)
{
BYTE TmpValue;
TmpValue = inportb (IoAddr);
TmpValue &= ~(1 << BitNum);
TmpValue |= (Value << BitNum);
outport(IoAddr, TmpValue);
}
************************************************************************************
VOID
Main
(){
SET_Value (LED2Add, LED2Bit, UnitVal); //Setting STA_LED2
SET_Value (LED1Add, LED1Bit, UnitVal); //Setting STA_LED1
SET_Value (LED0Add, LED0Bit, UnitVal); //Setting STA_LED0
}
************************************************************************************
Содержание BNX-H81
Страница 1: ...1 Security Board BNX H81 Always at the forefront of innovation User Manual ...
Страница 7: ...7 Chapter 1 General Information ...
Страница 11: ...11 Figure 1 1 Board Layout of BNX H81 1 4 Board Layout ...
Страница 12: ...12 Chapter 2 Preparation ...
Страница 16: ...16 2 5 Locations Of Jumpers and Connectors ...
Страница 21: ...21 Chapter 3 Operation ...
Страница 29: ...29 Chapter 4 BIOS Setup ...
Страница 41: ...41 Chapter 5 Programming Guide ...