Mercurial > avr_jtag
diff src/avr_jtag.c @ 7:61f27549de57
Support TRST.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 22 Feb 2009 14:20:57 +0800 |
parents | e410832c3280 |
children | cc106f278d7d |
line wrap: on
line diff
--- a/src/avr_jtag.c Sun Feb 22 14:12:29 2009 +0800 +++ b/src/avr_jtag.c Sun Feb 22 14:20:57 2009 +0800 @@ -120,6 +120,13 @@ send_client(client_buf, bsz); break; + case CPCMD_TRST: + jtag_trst(); + bsz = cmd_proto_cmd_fill(client_buf, cmd->seq, + CPCMD_ACK, 0); + send_client(client_buf, bsz); + break; + default: sprintf(buf, "CODE 0x%02x", cmd->code); nak(cmd->seq, buf);