beautypg.com

Main – AAEON FWS-7810 User Manual

Page 99

background image

N e t w o r k Ap p l i a n c e

F W S - 7 8 1 0

Appendix C Standard LAN Bypass Platform Setting

C-7

delay100ms();

TmpValue |= (Value << BitNum);

outport(IoAddr, TmpValue);

}

************************************************************************************

************************************************************************************

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

(){

//Select LAN kit refer to table 1

SET_Value (LAN_ID2, LANID2, UnitVal);

SET_Value (LAN_ID1, LANID1, UnitVal);

SET_Value (LAN_ID0, LANID1, UnitVal);

//Set the PWR_ON parameter

SET_Value (PWR_ON, PWR_ON_R, UnitVal);

//Set the PWR_OFF parameter

SET_Value (PWR_OFF, PWR_OFF_R, UnitVal);

//Set the WDT_EN parameter

SET_Value (PWR_OFF, PWR_OFF_R, UnitVal);

//Active LAN Bypass setting