Intel MB879 Computer Hardware User Manual


 
APPENDIX
}
//=======================================================================
void Set_ITE8712_LD( unsigned char LD)
{
Unlock_ITE8712();
outportb(ITE8712_INDEX_PORT, ITE8712_REG_LD);
outportb(ITE8712_DATA_PORT, LD);
Lock_ITE8712();
}
//=======================================================================
void Set_ITE8712_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_ITE8712();
outportb(ITE8712_INDEX_PORT, REG);
outportb(ITE8712_DATA_PORT, DATA);
Lock_ITE8712();
}
//=======================================================================
unsigned char Get_ITE8712_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_ITE8712();
outportb(ITE8712_INDEX_PORT, REG);
Result = inportb(ITE8712_DATA_PORT);
Lock_ITE8712();
return Result;
}
//=======================================================================
File : 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 <stdio.h>
#include <stdlib.h>
#include "ITE8712.H"
//=======================================================================
int main (int argc, char *argv[]);
void copyright(void);
void EnableWDT(int);
void DisableWDT(void);
//=======================================================================
int main (int argc, char *argv[])
{
unsigned char bTime;
char **endptr;
copyright();
if (argc != 2)
{
printf(" Parameter incorrect!!\n");
MB879 User’s Manual 61