FreeCalypso > hg > freecalypso-tools
comparison loadtools/romdump.c @ 574:aba969153d20
loadtools code: removed provisions for special GTA02 AP build
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 02 Feb 2020 19:37:50 +0000 |
parents | 2e4ab60919b9 |
children | cef70d53fc5e |
comparison
equal
deleted
inserted
replaced
573:b22cc34b6fc9 | 574:aba969153d20 |
---|---|
16 | 16 |
17 extern struct srecreader iramimage; | 17 extern struct srecreader iramimage; |
18 extern char default_dspdump_image[]; | 18 extern char default_dspdump_image[]; |
19 extern struct baudrate *current_baud_rate; | 19 extern struct baudrate *current_baud_rate; |
20 extern void (*default_exit)(); | 20 extern void (*default_exit)(); |
21 extern int gta_modem_poweron; | |
22 | 21 |
23 extern struct baudrate *find_baudrate_by_name(); | 22 extern struct baudrate *find_baudrate_by_name(); |
24 | 23 |
25 static struct baudrate *romdump_baudrate; | 24 static struct baudrate *romdump_baudrate; |
26 static char *output_filename; | 25 static char *output_filename; |
43 extern int optind; | 42 extern int optind; |
44 int c; | 43 int c; |
45 struct baudrate *br; | 44 struct baudrate *br; |
46 char *targv[2]; | 45 char *targv[2]; |
47 | 46 |
48 while ((c = getopt(argc, argv, "a:b:B:c:C:h:H:i:n")) != EOF) | 47 while ((c = getopt(argc, argv, "a:b:B:c:C:h:H:i:")) != EOF) |
49 switch (c) { | 48 switch (c) { |
50 case 'a': | 49 case 'a': |
51 iramimage.filename = optarg; | 50 iramimage.filename = optarg; |
52 continue; | 51 continue; |
53 case 'b': | 52 case 'b': |
71 case 'H': | 70 case 'H': |
72 read_hwparam_file_fullpath(optarg); | 71 read_hwparam_file_fullpath(optarg); |
73 continue; | 72 continue; |
74 case 'i': | 73 case 'i': |
75 set_beacon_interval(optarg); | 74 set_beacon_interval(optarg); |
76 continue; | |
77 case 'n': | |
78 gta_modem_poweron = 0; | |
79 continue; | 75 continue; |
80 case '?': | 76 case '?': |
81 default: | 77 default: |
82 usage: fprintf(stderr, | 78 usage: fprintf(stderr, |
83 "usage: fc-dspromdump [options] ttyport output-file\n"); | 79 "usage: fc-dspromdump [options] ttyport output-file\n"); |