FreeCalypso > hg > freecalypso-reveng
comparison pircharge/pktsort.c @ 229:84a4f6ef2d28
pirchgdbg: complete enough for first test
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 19 Dec 2017 04:02:32 +0000 |
parents | fec90990f613 |
children |
comparison
equal
deleted
inserted
replaced
228:fec90990f613 | 229:84a4f6ef2d28 |
---|---|
71 return; | 71 return; |
72 if (rvi_msg_len != 22) | 72 if (rvi_msg_len != 22) |
73 return; | 73 return; |
74 if (strncmp(rvi_msg + 7, "IQ EXT: ADC End", 15)) | 74 if (strncmp(rvi_msg + 7, "IQ EXT: ADC End", 15)) |
75 return; | 75 return; |
76 /* ADC End handling will go here */ | 76 adc_end_process(); |
77 } | 77 } |
78 | 78 |
79 void | 79 void |
80 process_pkt_from_target() | 80 process_pkt_from_target() |
81 { | 81 { |
82 switch (rvi_msg[1]) { | 82 switch (rvi_msg[1]) { |
83 case RVT_RV_HEADER: | 83 case RVT_RV_HEADER: |
84 rvt_packet_rx(); | 84 rvt_packet_rx(); |
85 return; | 85 return; |
86 case RVT_TM_HEADER: | 86 case RVT_TM_HEADER: |
87 /* etm_packet_rx(); */ | 87 etm_packet_rx(); |
88 return; | 88 return; |
89 default: | 89 default: |
90 fprintf(stderr, "unexpected fwd of MUX %02X from rvinterf\n", | 90 fprintf(stderr, "unexpected fwd of MUX %02X from rvinterf\n", |
91 rvi_msg[1]); | 91 rvi_msg[1]); |
92 exit(ERROR_RVINTERF); | 92 exit(ERROR_RVINTERF); |