ADLINK MXC-6000 Series User Manual
Page 95
Advertising
Watchdog Timer (WDT) Function Library
83
MXC-6000
{
printf("Countdown %2d : 0xF6=%2x Press any key to
invoke keyboard interrupt.\n",count,r_reg(0xF6));
/* reset WDT timeout value to 10 seconds */
/* w_reg(0xF6,0x0A); */
sleep(1);
}
printf("At least one keyboard interrupt must occur
during countdown.\n");
printf("Otherwise WDT has already reset system.\n\n");
printf("Try again and leave keyboard.\n\n");
/* disable WDT */
/* WDT stop while timeout value is set to zero */
w_reg(0xF6,0x00);
printf("WDT is disable. Program is terminating.");
ExitConfig();
return 0;
}
Advertising