FreeCalypso > hg > freecalypso-sw
comparison rvinterf/etm/etmbasic.c @ 189:a95d253ef952
fc-tmsh: some basic tmcore commands implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 25 Nov 2013 03:10:41 +0000 |
parents | 9f4f331ac24d |
children | 2f285f20d617 |
comparison
equal
deleted
inserted
replaced
188:9f4f331ac24d | 189:a95d253ef952 |
---|---|
74 c ^= b; | 74 c ^= b; |
75 } | 75 } |
76 pkt[di++] = c; | 76 pkt[di++] = c; |
77 send_pkt_to_target(pkt, di); | 77 send_pkt_to_target(pkt, di); |
78 } | 78 } |
79 | |
80 void | |
81 send_etm_cmd(buf, len) | |
82 u_char *buf; | |
83 { | |
84 int i, c; | |
85 | |
86 buf[0] = RVT_TM_HEADER; | |
87 c = 0; | |
88 for (i = 1; i <= len; i++) | |
89 c ^= buf[i]; | |
90 buf[i] = c; | |
91 send_pkt_to_target(buf, len + 2); | |
92 } |