diff 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
line wrap: on
line diff
--- a/src/jtag.c	Sun Feb 22 14:12:29 2009 +0800
+++ b/src/jtag.c	Sun Feb 22 14:20:57 2009 +0800
@@ -30,6 +30,12 @@
     } while(0)
 #define GET_TDO() (JTAG_PIN & _BV(JTAG_TDO))
 
+void jtag_trst(void) {
+    SEND_BIT(JTAG_TRST, 1);
+    TCK_LO();
+    pin_lo(JTAG_PORT, JTAG_TRST);
+}
+
 /*!
  * Before shifting registers, TAP controller must move to last state before
  * shift state.  The state machine transite to shift state when shifting