|
From: <zw...@ma...> - 2009-06-05 01:53:04
|
Author: zwelch
Date: 2009-06-05 01:52:58 +0200 (Fri, 05 Jun 2009)
New Revision: 2057
Modified:
trunk/src/jtag/jtag.c
trunk/src/jtag/jtag.h
Log:
Add jtag_get_flush_queue_count accessor to help future factoring.
Modified: trunk/src/jtag/jtag.c
===================================================================
--- trunk/src/jtag/jtag.c 2009-06-04 23:49:52 UTC (rev 2056)
+++ trunk/src/jtag/jtag.c 2009-06-04 23:52:58 UTC (rev 2057)
@@ -909,6 +909,11 @@
}
}
+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_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;
}
Modified: trunk/src/jtag/jtag.h
===================================================================
--- trunk/src/jtag/jtag.h 2009-06-04 23:49:52 UTC (rev 2056)
+++ trunk/src/jtag/jtag.h 2009-06-04 23:52:58 UTC (rev 2057)
@@ -640,4 +640,7 @@
*/
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 */
|