FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/ffs2resp.c @ 0:e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Jun 2016 00:13:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e7502631a0f9 |
---|---|
1 /* | |
2 * Handling of TMFFS2 responses from ETM | |
3 */ | |
4 | |
5 #include <sys/types.h> | |
6 #include <stdio.h> | |
7 | |
8 extern u_char rvi_msg[]; | |
9 extern int rvi_msg_len; | |
10 | |
11 void | |
12 handle_ffs2_response() | |
13 { | |
14 if (rvi_msg[3]) | |
15 print_etm_pkt_raw("FFS2 error"); | |
16 else if (rvi_msg_len == 5) | |
17 async_msg_output("FFS2 command successful"); | |
18 else | |
19 print_etm_pkt_raw("FFS2 response"); | |
20 } |