Mercurial > avr_jtag
comparison src/cmd_proto.c @ 10:cc106f278d7d
Get identify of components
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 24 Feb 2009 13:32:04 +0800 |
parents | e410832c3280 |
children |
comparison
equal
deleted
inserted
replaced
9:705da39cdf91 | 10:cc106f278d7d |
---|---|
118 } | 118 } |
119 | 119 |
120 return cmd; | 120 return cmd; |
121 } | 121 } |
122 | 122 |
123 int cmd_proto_cmd_fill(char *buf, int seq, cp_ccode_t code, int data_sz) { | 123 int cmd_proto_cmd_fill(unsigned char *buf, int seq, |
124 cp_ccode_t code, int data_sz) { | |
124 int i, last = data_sz + CP_CMD_HEAD_SZ; | 125 int i, last = data_sz + CP_CMD_HEAD_SZ; |
125 int csum = 0; | 126 int csum = 0; |
126 | 127 |
127 buf[0] = CP_MAGIC[0]; | 128 buf[0] = CP_MAGIC[0]; |
128 buf[1] = CP_MAGIC[1]; | 129 buf[1] = CP_MAGIC[1]; |