FreeCalypso > hg > freecalypso-sw
comparison loadtools/clmain.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 | 278052b6afda |
children | e4257294102b |
comparison
equal
deleted
inserted
replaced
83:ebe258a85813 | 84:ccc5161848c7 |
---|---|
17 extern char default_loadagent_image[]; | 17 extern char default_loadagent_image[]; |
18 extern struct srecreader xramimage; | 18 extern struct srecreader xramimage; |
19 extern char hw_init_script[]; | 19 extern char hw_init_script[]; |
20 extern struct baudrate baud_rate_table[]; | 20 extern struct baudrate baud_rate_table[]; |
21 extern struct baudrate *current_baud_rate; | 21 extern struct baudrate *current_baud_rate; |
22 extern int gta_modem_poweron; | |
22 | 23 |
23 extern struct baudrate *find_baudrate_by_name(); | 24 extern struct baudrate *find_baudrate_by_name(); |
24 | 25 |
25 struct baudrate *xram_load_baudrate; | 26 struct baudrate *xram_load_baudrate; |
26 struct baudrate *xram_run_baudrate = baud_rate_table; /* 1st entry default */ | 27 struct baudrate *xram_run_baudrate = baud_rate_table; /* 1st entry default */ |
31 extern char *optarg; | 32 extern char *optarg; |
32 extern int optind; | 33 extern int optind; |
33 int c; | 34 int c; |
34 struct baudrate *br; | 35 struct baudrate *br; |
35 | 36 |
36 while ((c = getopt(argc, argv, "a:b:B:h:H:i:")) != EOF) | 37 while ((c = getopt(argc, argv, "a:b:B:h:H:i:n")) != EOF) |
37 switch (c) { | 38 switch (c) { |
38 case 'a': | 39 case 'a': |
39 iramimage.filename = optarg; | 40 iramimage.filename = optarg; |
40 continue; | 41 continue; |
41 case 'b': | 42 case 'b': |
53 case 'H': | 54 case 'H': |
54 read_hwparam_file_fullpath(optarg); | 55 read_hwparam_file_fullpath(optarg); |
55 continue; | 56 continue; |
56 case 'i': | 57 case 'i': |
57 set_beacon_interval(optarg); | 58 set_beacon_interval(optarg); |
59 continue; | |
60 case 'n': | |
61 gta_modem_poweron = 0; | |
58 continue; | 62 continue; |
59 case '?': | 63 case '?': |
60 default: | 64 default: |
61 usage: fprintf(stderr, | 65 usage: fprintf(stderr, |
62 "usage: fc-xram [options] ttyport xramimage.srec [runbaud]\n"); | 66 "usage: fc-xram [options] ttyport xramimage.srec [runbaud]\n"); |