comparison rvinterf/tmsh/pktsort.c @ 71:27c41e4b21ae

fc-tmsh one-shot operation mode implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 23:51:47 +0000
parents 21a79f465d6a
children
comparison
equal deleted inserted replaced
70:2c6dca514a20 71:27c41e4b21ae
14 #include "etm.h" 14 #include "etm.h"
15 #include "exitcodes.h" 15 #include "exitcodes.h"
16 16
17 extern u_char rvi_msg[]; 17 extern u_char rvi_msg[];
18 extern int rvi_msg_len; 18 extern int rvi_msg_len;
19
20 int got_tm_response;
19 21
20 static void 22 static void
21 print_etm_trace() 23 print_etm_trace()
22 { 24 {
23 char buf[MAX_PKT_FROM_TARGET*4]; 25 char buf[MAX_PKT_FROM_TARGET*4];
61 case RVT_RV_HEADER: 63 case RVT_RV_HEADER:
62 process_rvt(); 64 process_rvt();
63 return; 65 return;
64 case RVT_TM_HEADER: 66 case RVT_TM_HEADER:
65 etm_packet_rx(); 67 etm_packet_rx();
68 got_tm_response = 1;
66 return; 69 return;
67 default: 70 default:
68 tty_cleanup(); 71 tty_cleanup();
69 fprintf(stderr, "unexpected fwd of MUX %02X from rvinterf\n", 72 fprintf(stderr, "unexpected fwd of MUX %02X from rvinterf\n",
70 rvi_msg[1]); 73 rvi_msg[1]);