FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/rvifmain.c @ 909:16ed75e266f2
rvinterf LCD output inversion option implemented
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 07 Sep 2015 17:25:30 +0000 |
parents | ed5dcc53e0b3 |
children | 0d7cc054ef72 |
comparison
equal
deleted
inserted
replaced
908:ed5dcc53e0b3 | 909:16ed75e266f2 |
---|---|
16 #include "client.h" | 16 #include "client.h" |
17 | 17 |
18 extern int target_fd, listener; | 18 extern int target_fd, listener; |
19 extern char *baudrate_name; | 19 extern char *baudrate_name; |
20 extern char *extlcd_program; | 20 extern char *extlcd_program; |
21 extern u_char extlcd_invert; | |
21 | 22 |
22 extern u_char rxpkt[]; | 23 extern u_char rxpkt[]; |
23 extern size_t rxpkt_len; | 24 extern size_t rxpkt_len; |
24 | 25 |
25 struct client *client_head; | 26 struct client *client_head; |
42 extern int optind; | 43 extern int optind; |
43 int c; | 44 int c; |
44 fd_set fds; | 45 fd_set fds; |
45 struct client *cli, **clip; | 46 struct client *cli, **clip; |
46 | 47 |
47 while ((c = getopt(argc, argv, "bB:d:l:ns:S:w:X:")) != EOF) | 48 while ((c = getopt(argc, argv, "bB:d:l:ns:S:vw:X:")) != EOF) |
48 switch (c) { | 49 switch (c) { |
49 case 'b': | 50 case 'b': |
50 background++; | 51 background++; |
51 /* FALL THRU */ | 52 /* FALL THRU */ |
52 case 'n': | 53 case 'n': |
64 case 's': | 65 case 's': |
65 socket_pathname = optarg; | 66 socket_pathname = optarg; |
66 continue; | 67 continue; |
67 case 'S': | 68 case 'S': |
68 socketpair_fd = atoi(optarg); | 69 socketpair_fd = atoi(optarg); |
70 continue; | |
71 case 'v': | |
72 extlcd_invert = 0xFF; | |
69 continue; | 73 continue; |
70 case 'w': | 74 case 'w': |
71 wakeup_after_sec = strtoul(optarg, 0, 0); | 75 wakeup_after_sec = strtoul(optarg, 0, 0); |
72 continue; | 76 continue; |
73 case 'X': | 77 case 'X': |