![background image](http://html1.mh-extra.com/html/ibase-technology/mb837-d25/mb837-d25_user-manual_3252933055.webp)
APPENDIX
MB837-D25 / MB837-D25-R User’s Manual
49
File of the MAIN.CPP
//---------------------------------------------------------------------------
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
//---------------------------------------------------------------------------
#include <dos.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include "W627UHG.H"
//---------------------------------------------------------------------------
int main (void);
void WDTInitial(void);
void WDTEnable(unsigned char);
void WDTDisable(void);
//---------------------------------------------------------------------------
int main (void)
{
char SIO;
SIO = Init_W627UHG();
if (SIO == 0)
{
............................................... printf("Can not detect Winbond 83627UHG, program abort.\n");
.................................................................................................................................... return(1);
}
WDTInitial();
WDTEnable(10);
WDTDisable();
return 0;
}
//---------------------------------------------------------------------------
void WDTInitial(void)
{
unsigned char bBuf;
Set_W627UHG_LD(0x08); ................................................................. //switch to logic device 8
bBuf = Get_W627UHG_Reg(0x30);
bBuf &= (~0x01);
Set_W627UHG_Reg(0x30, bBuf); ................................................................... //Enable WDTO
}
//---------------------------------------------------------------------------
void WDTEnable(unsigned char NewInterval)
{
unsigned char bBuf;
Set_W627UHG_LD(0x08); ................................................................. //switch to logic device 8
Set_W627UHG_Reg(0x30, 0x01); ....................................................................... //enable timer
Summary of Contents for MB837-D25
Page 1: ...MB837 D25 MB837 D25 R Intel Atom D2550 5 25 inch SBC USER S MANUAL Version 1 2...
Page 5: ...MB837 D25 User s Manual v This page is intentionally left blank...
Page 6: ......
Page 10: ...INSTALLATIONS 4 MB837 D25 MB837 D25 R User s Manual Board Dimensions...
Page 42: ...BIOS Setup 36 MB837 D25 MB837 D25 R User s Manual This page is intentionally left blank...
Page 52: ...APPENDIX 46 MB837 D25 MB837 D25 R User s Manual void Unlock_W627UHG void...