FreeCalypso > hg > freecalypso-sw
comparison loadtools/ltmain.c @ 84:ccc5161848c7
loadtools: support building for GTA0x AP
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 20 Aug 2013 04:51:15 +0000 |
parents | aa62352647f7 |
children | 5e0e9bb26060 |
comparison
equal
deleted
inserted
replaced
83:ebe258a85813 | 84:ccc5161848c7 |
---|---|
12 extern char *target_ttydev; | 12 extern char *target_ttydev; |
13 extern struct srecreader iramimage; | 13 extern struct srecreader iramimage; |
14 extern char default_loadagent_image[]; | 14 extern char default_loadagent_image[]; |
15 extern char hw_init_script[]; | 15 extern char hw_init_script[]; |
16 extern void (*default_exit)(); | 16 extern void (*default_exit)(); |
17 extern int gta_modem_poweron; | |
17 | 18 |
18 main(argc, argv) | 19 main(argc, argv) |
19 char **argv; | 20 char **argv; |
20 { | 21 { |
21 extern char *optarg; | 22 extern char *optarg; |
22 extern int optind; | 23 extern int optind; |
23 int c; | 24 int c; |
24 char command[512]; | 25 char command[512]; |
25 | 26 |
26 while ((c = getopt(argc, argv, "a:b:h:H:i:")) != EOF) | 27 while ((c = getopt(argc, argv, "a:b:h:H:i:n")) != EOF) |
27 switch (c) { | 28 switch (c) { |
28 case 'a': | 29 case 'a': |
29 iramimage.filename = optarg; | 30 iramimage.filename = optarg; |
30 continue; | 31 continue; |
31 case 'b': | 32 case 'b': |
37 case 'H': | 38 case 'H': |
38 read_hwparam_file_fullpath(optarg); | 39 read_hwparam_file_fullpath(optarg); |
39 continue; | 40 continue; |
40 case 'i': | 41 case 'i': |
41 set_beacon_interval(optarg); | 42 set_beacon_interval(optarg); |
43 continue; | |
44 case 'n': | |
45 gta_modem_poweron = 0; | |
42 continue; | 46 continue; |
43 case '?': | 47 case '?': |
44 default: | 48 default: |
45 usage: fprintf(stderr, | 49 usage: fprintf(stderr, |
46 "usage: fc-loadtool [options] ttyport\n"); | 50 "usage: fc-loadtool [options] ttyport\n"); |