Aaeon HSB-440I Manual page 50

Half-size cpu card
Table of Contents

Advertisement

H a l f - s i z e C P U C a r d
H S B - 4 4 0 I
//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("WinBond 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");
printf(" time range : 1 ~ 256 \n\n");
return ;
}
if (argc > 1)
{
ptr = argv[1];
time_value = atoi(ptr);
}
if (time_value > 0 && time_value < 256)
{
SetWatchDogTime((unsigned char) time_value);
init_w83977tf_aw_watchdog();
printf("Watch Dog Timer set up : %d \n",time_value);
}
}
A-5
Appendix A Programming the Watchdog Timer

Advertisement

Table of Contents
loading

Table of Contents