Mercurial > avr_jtag
comparison src/jtag.c @ 7:61f27549de57
Support TRST.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 22 Feb 2009 14:20:57 +0800 |
parents | eb14cac68cbb |
children | cc106f278d7d |
comparison
equal
deleted
inserted
replaced
6:42dec3428c77 | 7:61f27549de57 |
---|---|
27 CLK_DELAY(); \ | 27 CLK_DELAY(); \ |
28 TCK_HI(); \ | 28 TCK_HI(); \ |
29 CLK_DELAY(); \ | 29 CLK_DELAY(); \ |
30 } while(0) | 30 } while(0) |
31 #define GET_TDO() (JTAG_PIN & _BV(JTAG_TDO)) | 31 #define GET_TDO() (JTAG_PIN & _BV(JTAG_TDO)) |
32 | |
33 void jtag_trst(void) { | |
34 SEND_BIT(JTAG_TRST, 1); | |
35 TCK_LO(); | |
36 pin_lo(JTAG_PORT, JTAG_TRST); | |
37 } | |
32 | 38 |
33 /*! | 39 /*! |
34 * Before shifting registers, TAP controller must move to last state before | 40 * Before shifting registers, TAP controller must move to last state before |
35 * shift state. The state machine transite to shift state when shifting | 41 * shift state. The state machine transite to shift state when shifting |
36 * starts. | 42 * starts. |