Intel Compact Board Computer Hardware User Manual


 
Compact Board PCM - 6 892 Rev.B
Appendix B Programming the Watchdog Timer B - 7
//Set Register 2B (PIN 58) Bit 0 = 0/1 (KBLOCK/GP13)
//set to GP13 for WD Rst
WriteAData(0x2B,ReadAData(0x2B)|0x01);
}
else if(watch_dog_output_GP==16)
{
//Set Register 2C (PIN 119) Bit 5-4 = 01 (GP16)
//set to GP16 for WD Rst
WriteAData(0x2C,ReadAData(0x2C)|0x10);
}
//Exit W83977 Configure mode
ExitConfigMode();
}
void main(int argc, char* argv[])
{
int time_value=0;
char *ptr;
printf( inBond 83977 WatchDog Timer Setup Utility
Version 1.0 \n" );
printf( copyright (c) 2000 AAEON Technology Inc.\n");
printf( this version only for W83977 that using GP%d to
Reset System.\n",watch_dog_output_GP);
if (argc == 1)
{
printf( n Syntax: WATCHDOG [time] \n" );