Watchdog Timer
71
NuPRO-E72
Appendix B - Watchdog Timer
A sample program for configuring the NuPRO-E72’s watchdog
timer is included on the ADLINK All-in-One DVD in the following
directory: \NuPRO\NuPRO-E72\WDT.
B.1 Sample Code
#include<stdio.h>
#include<dos.h>
static unsigned int IT8783_ioPort = 0x2e;
void Enter_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
switch(IT8783_ioPort)
{
case 0x2E: //Address port = 0x2E, enter keys =
0x87, 0x01, 0x55, 0x55
outportb(0x2E, 0x87);
outportb(0x2E, 0x01);
outportb(0x2E, 0x55);
outportb(0x2E, 0x55);
break;
case 0x4E: //Address port = 0x4E, enter keys =
0x87, 0x01, 0x55, 0xAA
outportb(0x4E, 0x87);
outportb(0x4E, 0x01);
outportb(0x4E, 0x55);
outportb(0x4E, 0xAA);
break;
default:
break;
}
}
void Exit_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
outportb(IT8783_ioPort, 0x02);
Содержание NuPRO-E72
Страница 8: ...viii Table of Contents This page intentionally left blank...
Страница 10: ...x List of Figures This page intentionally left blank...
Страница 12: ...xii List of Tables This page intentionally left blank...
Страница 34: ...22 Introduction This page intentionally left blank...
Страница 46: ...34 Getting Started This page intentionally left blank...
Страница 75: ...63 NuPRO E72 Integrated Clock Chip Configuration ICC Enable Integrated Clock Chip Options Enabled Disabled...
Страница 82: ...70 the current boot order If you are booting to the EFI Shell an exit from the shell returns to Setup...