Table of Contents

Advertisement

C.3.3 Sample Code
************************************************************************************
#define Word
BTN_STS
#define Byte BTN_STS_R
************************************************************************************
Byte GET_Value (Word IoAddr, Byte BitNum,Byte Value){
BYTE TmpValue;
TmpValue = inportb (IoAddr);
return (TmpValue & (1 << BitNum))
}
************************************************************************************
VOID Main(){
Byte RstBtn;
RstBtn = GET_Value (BTN_STS, BTN_STS_R); // Active Low
}
************************************************************************************
Appendix C – Standard LAN Bypass Platform Setting
//This parameter is represented from Note1
//This parameter is represented from Note2
101

Advertisement

Table of Contents
loading

Table of Contents