Software Reset Button Sample Code - Asus AAEON FWS-7821 User Manual

Hide thumbs Also See for AAEON FWS-7821:
Table of Contents

Advertisement

C.3.2

Software Reset Button Sample Code

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

Advertisement

Table of Contents
loading

Table of Contents