
100
Watchdog Timer (WDT) Function Library
/* set timeout value as 10 seconds */
/* WDT start automatically while timeout value is set
*/
w_reg(0xF6,0x0A);
printf("----------------------------------------------
-----\n");
printf("WDT is set and counting down
now.<<<<<<<<<<<<<<<<<<\n");
printf("----------------------------------------------
-----\n");
for(count=10;count!=0;count--)
{
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;
}
PRELIMINARY
Summary of Contents for MXC-6300
Page 10: ...x List of Tables This page intentionally left blank PRELIM INARY...
Page 12: ...xii List of Figures This page intentionally left blank PRELIM INARY...
Page 20: ...8 Introduction Figure 1 3 MXC 6300 Top View Figure 1 4 MXC 6300 Front View 174 2 PRELIM INARY...
Page 46: ...34 Introduction This page intentionally left blank PRELIM INARY...
Page 57: ...Getting Started 45 MXC 6300 5 Remove the external CF socket cover PRELIM INARY...
Page 67: ...Getting Started 55 MXC 6300 PRELIM INARY...
Page 68: ...56 Getting Started This page intentionally left blank PRELIM INARY...
Page 94: ...82 BIOS Setup PRELIM INARY...
Page 97: ...Activating RAID Function 85 MXC 6300 PRELIM INARY...
Page 106: ...94 Activating RAID Function PRELIM INARY...
Page 124: ...112 Digital Input Output Function Library This page intentionally left blank PRELIM INARY...