Skip to content
Snippets Groups Projects
Commit 8580c701 authored by zwelch's avatar zwelch
Browse files

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
parent a8473262
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment