IBM SBC-658 manual Appendix a Watchdog Timer

Models: SBC-658

1 116
Download 116 pages 61.98 Kb
Page 112
Image 112

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);

}

}

Appendix A Watchdog Timer 103

Page 112
Image 112
IBM SBC-658 manual Appendix a Watchdog Timer