72
Watchdog Timer
outportb(IT87831, 0x02);
}
void Get_IT8783_ID(unsigned int &ID1, unsigned int &ID2)
{
outportb(IT8783_ioPort, 0x20);
ID1 = inportb(IT87831);
outportb(IT8783_ioPort, 0x21);
ID2 = inportb(IT87831);
}
void IT8783_WDTRun(unsigned int count_value, unsigned int
PLEDflag) //for NuPRO-E72
{
unsigned long tempCount;
unsigned int registerValue;
outportb(IT8783_ioPort, 0x07);
outportb(IT87831, 0x07);// Device 7
outportb(IT8783_ioPort, 0xf8);
outportb(IT87831, 0x00);// PLED mapping to
nothing, disable PLED function
if(PLEDflag == 1)
{
outportb(IT8783_ioPort, 0x27);
registerValue = inportb(IT8783_ 1);
registerValue |= 0x80; // set Pin09 is GPIO
function GP37
outportb(IT87831, registerValue);
outportb(IT8783_ioPort, 0xc2);
registerValue = inportb(IT8783_ 1);
registerValue &= 0x7fb; // set GP37 is alternate
function
outportb(IT87831, registerValue);
outportb(IT8783_ioPort, 0xca);
registerValue = inportb(IT8783_ 1);
registerValue |= 0x80; // set GP42 is output
Summary of Contents for NuPRO-E72
Page 8: ...viii Table of Contents This page intentionally left blank...
Page 10: ...x List of Figures This page intentionally left blank...
Page 12: ...xii List of Tables This page intentionally left blank...
Page 34: ...22 Introduction This page intentionally left blank...
Page 46: ...34 Getting Started This page intentionally left blank...