summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-07-31 21:45:56 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-08-02 09:54:06 +0200
commit803351ec59cb57c63129c77d95b5edf2fc65c302 (patch)
tree35ea721d89a115af2e6e17ec3ad5a621ba3b1669 /src/jtag/jtag.h
parent630fc86ee339aa400f58fe80cbc5a1926eb3ef39 (diff)
downloadopenocd_libswd-803351ec59cb57c63129c77d95b5edf2fc65c302.tar.gz
openocd_libswd-803351ec59cb57c63129c77d95b5edf2fc65c302.tar.bz2
openocd_libswd-803351ec59cb57c63129c77d95b5edf2fc65c302.tar.xz
openocd_libswd-803351ec59cb57c63129c77d95b5edf2fc65c302.zip
jtag: add jtag_flush_queue_sleep debug command
it can be useful to throttle performance: test differences in behavior, test performance effect of long roundtrips. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r--src/jtag/jtag.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index 3b0a145b..d6e49e0a 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -311,6 +311,10 @@ int adapter_init(struct command_context* cmd_ctx);
/// Shutdown the debug adapter upon program exit.
int adapter_quit(void);
+/// Set ms to sleep after jtag_execute_queue() flushes queue. Debug
+/// purposes.
+void jtag_set_flush_queue_sleep(int ms);
+
/**
* Initialize JTAG chain using only a RESET reset. If init fails,
* try reset + init.