User manual
ID70 Motherboard User Manual
76
printf("Watchdog Minute Mode\n");
printf("Input Watchdog Timer time-out value [0-255] : ");
scanf("%d",&g_iWatchdog_timeout);
if(g_iWatchdog_timeout <= 0 || g_iWatchdog_timeout > 255)
{
printf("Time-out value out of range!!\n\n");
printf("Input Watchdog Timer time-out value [0-255] : ");
scanf("%d",&g_iWatchdog_timeout);
}
Set_F81865_Reg(0x07,0x07);//switch to logic device 7
Set_F81865_Reg(0x30,0x01);//Activate watchdog
Set_F81865_Reg(0xF6,g_iWatchdog_timeout); //Set Watch Dog Timer
Time-out value
if (Watchdog_mode==0)
Set_F81865_Reg(0xF5,0x60);//Select WDTO# count mode.seconds
Mode.
else
Set_F81865_Reg(0xF5,0x68);//Select WDTO# count mode.minutes
Mode.
g_iCount = g_iWatchdog_timeout;
while(1)
{
if (kbhit())
{
if(getch()==0x1B) //Esc
{
g_bDisableWatchdog=1;
}
else
{
g_iCount=g_iWatchdog_timeout; //Reset Watchdog timer