FreeCalypso > hg > fc-rfcal-tools
comparison cmu200/main.c @ 68:3ec82dc1dbda
fc-cmu200d: implemented reading and parsing of cable config files (-c arg)
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 14 Jul 2017 04:34:15 +0000 |
parents | 498b90f6e224 |
children | 348c29b7d02a |
comparison
equal
deleted
inserted
replaced
67:3f92d88fbb1c | 68:3ec82dc1dbda |
---|---|
17 { | 17 { |
18 extern char *optarg; | 18 extern char *optarg; |
19 extern int optind; | 19 extern int optind; |
20 int c; | 20 int c; |
21 | 21 |
22 while ((c = getopt(argc, argv, "1at:")) != EOF) | 22 while ((c = getopt(argc, argv, "12ac:t:")) != EOF) |
23 switch (c) { | 23 switch (c) { |
24 case '1': | 24 case '1': |
25 cmu200_rf_port = 1; | 25 cmu200_rf_port = 1; |
26 continue; | 26 continue; |
27 case '2': | |
28 cmu200_rf_port = 2; | |
29 continue; | |
27 case 'a': | 30 case 'a': |
28 cmu200_tx_name = "AUXT"; | 31 cmu200_tx_name = "AUXT"; |
32 continue; | |
33 case 'c': | |
34 read_cable_conf_file(optarg); | |
29 continue; | 35 continue; |
30 case 't': | 36 case 't': |
31 bind_socket_pathname = optarg; | 37 bind_socket_pathname = optarg; |
32 continue; | 38 continue; |
33 default: | 39 default: |