VIA Technologies NAB-7400 User Manual page 73

Hide thumbs Also See for NAB-7400:
Table of Contents

Advertisement

int
printf("===========================================
=============================\n");
printf(" Fintek Watchdog testing program Ver:00 2007-2-5\n");
printf("===========================================
=============================\n");
if (detect_sio()) print_err_help(argv);
if ((argc<2)||(argc>3))
{
}
//
printf("the parameter=%s\n", argv[1]);
sscanf(argv[1], "%d", &value);
//
printf("you input=%d\n", value);
if(value >255) print_help(argv);
write_sio_reg(0x08, 0x60, 0x03); //Set Watch Dog timer base
address High byte = 03h
write_sio_reg(0x08, 0x61, 0x00); //Set Watch Dog timer base
address Low byte = 00h
write_sio_reg(0x08, 0x30, 0x01); //enable watchdog function
value;
print_help(argv);
65
Watchdog Timer Configuration

Advertisement

Table of Contents
loading

Table of Contents