FreeCalypso > hg > freecalypso-tools
diff loadtools/sertool.c @ 683:ecea01f65146
loadtools: implemented -t option for boot ROM wait timeout
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 10 Mar 2020 07:05:32 +0000 |
parents | cef70d53fc5e |
children | 9ecbf1bf2e1b |
line wrap: on
line diff
--- a/loadtools/sertool.c Tue Mar 10 04:10:05 2020 +0000 +++ b/loadtools/sertool.c Tue Mar 10 07:05:32 2020 +0000 @@ -26,7 +26,7 @@ extern int optind; int c; - while ((c = getopt(argc, argv, "b:c:C:h:H:i:P:")) != EOF) + while ((c = getopt(argc, argv, "b:c:C:h:H:i:P:t:")) != EOF) switch (c) { case 'b': set_romload_baudrate(optarg); @@ -50,6 +50,9 @@ if (find_bootctrl_entry(optarg) < 0) exit(1); /* error msg already printed */ continue; + case 't': + set_romload_timeout(optarg); + continue; case '?': default: usage: fprintf(stderr,