Winmate ID31 User Manual page 95

3.5” fanless sbc with intel atom dual core n2600 1.6 ghz, vga, lvds, dual giga ethernet, and mini-pcie interface
Hide thumbs Also See for ID31:
Table of Contents

Advertisement

USER MANUAL
APPENDIX B
WATCHDOG SAMPLE CODE
Set_W83627_Reg(0xF6,0); //Disable Watchdog timer
return 0;
}
//---------------------------------------------------------------------------
void Unlock_W83627 (void)
{
outportb(W83627_INDEX_PORT, W83627_UNLOCK); outportb(W83627_INDEX_PORT,
W83627_UNLOCK);
}
//============================================================
void Lock_W83627 (void)
{
outportb(W83627_INDEX_PORT, W83627_LOCK);
}
//============================================================
void Set_W83627_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_W83627(); outportb(W83627_INDEX_PORT, REG);
outportb(W83627_DATA_PORT, DATA); Lock_W83627();
}
//============================================================
unsigned char Get_W83627_Reg( unsigned char REG)
{
unsigned char Result; Unlock_W83627();
outportb(W83627_INDEX_PORT, REG); Result = inportb(W83627_DATA_PORT);
Lock_W83627();
return Result;
}
//============================================================
ID31 MOTHERBOARD
87

Advertisement

Table of Contents
loading

Table of Contents