Appendix
outportb(0x0300, 0x03); //Select unit to one second and clear time
out status
outportb(0x0301, value);
outportb(0x0301, value); //Set timer to value second and enable
timer
printf("Program %d seconds success\n", value);
return;
}
void print_help(char *argv[])
{
printf("!!! Wrong argument !!!\n");
printf("using: %s nnn\n", argv[0]);
printf("
printf("
printf("Program terminated !!!\n");
exit(1);
}
void print_err_help(char *argv[])
{
printf("!!! Wrong platform !!!\n");
printf("!!! This is not Fintek \n");
printf("!!! Program terminated !!!\n");
exit(1);
}
nnn=1~255 seconds\n");
nnn=0 to disbale watchdog \n");
66