summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 23:52:58 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-04 23:52:58 +0000
commit8580c70172d61b2809a04ab1dd4904d8e1d0136f (patch)
tree19d92a8976450b87ce965bf76451da36330ea931 /src
parenta8473262165a456e46b70e58ff36ef9712b3db2a (diff)
downloadopenocd_libswd-8580c70172d61b2809a04ab1dd4904d8e1d0136f.tar.gz
openocd_libswd-8580c70172d61b2809a04ab1dd4904d8e1d0136f.tar.bz2
openocd_libswd-8580c70172d61b2809a04ab1dd4904d8e1d0136f.tar.xz
openocd_libswd-8580c70172d61b2809a04ab1dd4904d8e1d0136f.zip
Add jtag_get_flush_queue_count accessor to help future factoring.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2057 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jtag.c7
-rw-r--r--src/jtag/jtag.h3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index e818e92f..6f65a3ec 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -909,6 +909,11 @@ void jtag_execute_queue_noclear(void)
}
}
+int jtag_get_flush_queue_count(void)
+{
+ return jtag_flush_queue_count;
+}
+
int jtag_execute_queue(void)
{
int retval;
@@ -2480,7 +2485,7 @@ static int Jim_Command_drscan(Jim_Interp *interp, int argc, Jim_Obj *const *args
static int Jim_Command_flush_count(Jim_Interp *interp, int argc, Jim_Obj *const *args)
{
- Jim_SetResult(interp, Jim_NewIntObj(interp, jtag_flush_queue_count));
+ Jim_SetResult(interp, Jim_NewIntObj(interp, jtag_get_flush_queue_count()));
return JIM_OK;
}
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index a63aa371..8f427fbe 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -640,4 +640,7 @@ extern void jtag_add_dr_out(jtag_tap_t* tap,
*/
extern int jtag_add_statemove(tap_state_t goal_state);
+/// @returns the number of times the scan queue has been flushed
+int jtag_get_flush_queue_count(void);
+
#endif /* JTAG_H */