
Operations Manual Watch dog timer card
DECISION Computer International
21
printf("Please enter your choices: ");
UserChoice = getche();
delay(70);
switch(UserChoice) { /* Action to do based on choices */
case '1': /* Enable Disable function */
if (Boolean == 'F')
{
Boolean = 'T'; /* Enable Watch Dog */
inportb((unsigned int)WDAddress);
printf("\nThe Watch Dog has been enabled. . .");
getch();
}
else /* Disable Watch Dog */
{
Boolean = 'F';
inportb((unsigned int)WD1);
printf("\nThe Watch Dog has been disabled. . .");
getch();
}
goto Inquire;
case '2': /* Refresh function */
if (Boolean == 'T')
{ /* If Watch Dog is enabled */
inportb((unsigned int)WD1);
inportb((unsigned int)WDAddress);
printf("\nWatch Dog Refresh");delay(500);
}
else /* If Watch Dog is disabled */
{
printf("\nThe Watch Dog is currently not enable. . .\n");
printf("You have to enable the Watch Dog first to refresh it");
Содержание Watch dog 1
Страница 9: ...Operations Manual Watch dog timer card DECISION Computer International 9 WATCH DOG I ...
Страница 10: ...Operations Manual Watch dog timer card DECISION Computer International 10 WATCH DOG II ...
Страница 55: ...Operations Manual Watch dog timer card DECISION Computer International 55 Data Type String ...