* Argument 'help' for the -f flag provides information about the rd flags
This commit is contained in:
1 parent
5b5425e0d0
commit
5e3de1ba06
1 file changed
+9
@@ -200,6 +200,15 @@ int main(int argc, char **argv)
|
|||||||
reverseto = optarg;
|
reverseto = optarg;
|
||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
|
if (!strcmp(optarg,"help")) {
|
||||||
|
printf("* Flags are composed of:\n");
|
||||||
|
printf(" 0x02 - disable OMAP watchdog (possibly)\n");
|
||||||
|
printf(" 0x04 - disable RETU watchdog (possibly)\n");
|
||||||
|
printf(" 0x08 - disable lifeguard reset\n");
|
||||||
|
printf(" 0x10 - enable serial console\n");
|
||||||
|
printf(" 0x20 - disable USB timeout\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
rd_flags = (unsigned short) strtoul(optarg, NULL, 16);
|
rd_flags = (unsigned short) strtoul(optarg, NULL, 16);
|
||||||
case 'U':
|
case 'U':
|
||||||
usb_mode = atoi(optarg);
|
usb_mode = atoi(optarg);
|
||||||
|
|||||||
Reference in new issue
Block a user