IBM SBC-658 Computer Hardware User Manual


 
Appendix A Watchdog Timer 103
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);
}
}