summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 06:56:22 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 06:56:22 +0000
commit9ab49135c639e6ed5e3997356b54c6cf79d04985 (patch)
tree74aae898df694a9470aae207146078d3c2df7127 /src/jtag/jtag.h
parentde7cb1c76b8279b9f1f08b5b26447efdb444b519 (diff)
downloadopenocd+libswd-9ab49135c639e6ed5e3997356b54c6cf79d04985.tar.gz
openocd+libswd-9ab49135c639e6ed5e3997356b54c6cf79d04985.tar.bz2
openocd+libswd-9ab49135c639e6ed5e3997356b54c6cf79d04985.tar.xz
openocd+libswd-9ab49135c639e6ed5e3997356b54c6cf79d04985.zip
JTAG_TRST_ASSERTED event cleanup. More clear where and when it is invoked and some duplicate(harmless) invocations avoided.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2040 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r--src/jtag/jtag.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index 04eefaad..5fbe7dc1 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -218,6 +218,17 @@ enum reset_line_mode {
LINE_PUSH_PULL = 0x1,
};
+/*
+ * There are three cases when JTAG_TRST_ASSERTED callback is invoked. The
+ * event is invoked *after* TRST is asserted(or queued rather). It is illegal
+ * to communicate with the JTAG interface during the callback(as there is
+ * currently a queue being built).
+ *
+ * - TMS reset
+ * - SRST pulls TRST
+ * - TRST asserted
+ *
+ **/
enum jtag_event {
JTAG_TRST_ASSERTED
};