Acrosser Technology AR-V6002FL User Manual page 55

Hide thumbs Also See for AR-V6002FL:
Table of Contents

Advertisement

//===========================================================================
// Extern Function
//===========================================================================
//===========================================================================
// Normal procedure
//===========================================================================
void Show_Title()
{
clrscr();
printf("WatchDog Test for W83627HG\n");
printf("1. WDT.EXE 10 s ==--> 10 seconds to reset.\n");
printf("2. WDT.EXE 20 m ==--> 20 minutes to reset.\n");
}
//===========================================================================
// Main procedure
//===========================================================================
int main(int argc, char *argv[])
{
char Time_Format;
BYTE IO_Port_Address=0x2E;
BYTE Time=10;
// Default is 10
BYTE Format=0x00;
if ( argc != 3 )
{ Show_Title();
clrscr();
textcolor(YELLOW+BLINK);
Time=atoi(argv[1]);
Time_Format=argv[2][0];
if(Time_Format=='m' || Time_Format=='M')
Format=0x08;
// Minutes
if(Time_Format=='s' || Time_Format=='S')
// Default is 0x00 = Seconds
return 1;
}
55
Revision: 1.0

Advertisement

Table of Contents
loading

Table of Contents