FreeCalypso > hg > freecalypso-tools
comparison loadtools/romdump.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 | 464a531122ab |
comparison
equal
deleted
inserted
replaced
| 682:a7496a1e0df7 | 683:ecea01f65146 |
|---|---|
| 42 extern int optind; | 42 extern int optind; |
| 43 int c; | 43 int c; |
| 44 struct baudrate *br; | 44 struct baudrate *br; |
| 45 char *targv[2]; | 45 char *targv[2]; |
| 46 | 46 |
| 47 while ((c = getopt(argc, argv, "a:b:B:c:C:h:H:i:P:")) != EOF) | 47 while ((c = getopt(argc, argv, "a:b:B:c:C:h:H:i:P:t:")) != EOF) |
| 48 switch (c) { | 48 switch (c) { |
| 49 case 'a': | 49 case 'a': |
| 50 iramimage.filename = optarg; | 50 iramimage.filename = optarg; |
| 51 continue; | 51 continue; |
| 52 case 'b': | 52 case 'b': |
| 74 set_beacon_interval(optarg); | 74 set_beacon_interval(optarg); |
| 75 continue; | 75 continue; |
| 76 case 'P': | 76 case 'P': |
| 77 if (find_bootctrl_entry(optarg) < 0) | 77 if (find_bootctrl_entry(optarg) < 0) |
| 78 exit(1); /* error msg already printed */ | 78 exit(1); /* error msg already printed */ |
| 79 continue; | |
| 80 case 't': | |
| 81 set_romload_timeout(optarg); | |
| 79 continue; | 82 continue; |
| 80 case '?': | 83 case '?': |
| 81 default: | 84 default: |
| 82 usage: fprintf(stderr, | 85 usage: fprintf(stderr, |
| 83 "usage: fc-dspromdump [options] ttyport output-file\n"); | 86 "usage: fc-dspromdump [options] ttyport output-file\n"); |
