User’s Manual
142 ECM-3610/3610L User’s Manual
void DisabledWatchDogTimer()
{
SetWatchDogTime(0);
}
void main(int argc, char* argv[])
{
int time_value=0;
char *ptr;
printf("ECM-3610 WatchDog Timer Test Utility Version 1.0 \n");
printf("Copyright (c) 2002 Evalue Technology Inc.\n");
printf("(only support ECM-3610 board and will reset the system)\n");
if (argc == 1)
{ printf("\n Syntax: 3610WDT [step] \n");
printf(" step range : 0 ~ 255 steps \n");
printf(" timer setting: 0:disabled , 1 ~ 255 seconds \n");
return ;
}
if (argc > 1)
{
ptr = argv[1];
time_value = atoi(ptr);
}
if (time_value > 0 && time_value < 256)
{
DisabledWatchDogTimer();
SetTimeoutEvent(TRIGGER_RESET);
SetWatchDogTime((unsigned char) time_value);
printf("Watch Dog reset Timer set up : %02d:%02d ",(time_value)/60,
(time_value)%60);
}
}