The endstate now reports the endstate of the queue instead of

reading endstate variable internal to the driver.


git-svn-id: svn://svn.berlios.de/openocd/trunk@546 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
oharboe 2008-04-08 09:03:49 +00:00
parent 0d4f8fc824
commit 4b2defe678
2 changed files with 8 additions and 1 deletions

View File

@ -43,6 +43,8 @@ int bitbang_execute_queue(void);
/* The bitbang driver leaves the TCK 0 when in idle */
static enum tap_state end_state;
static enum tap_state cur_state;
void bitbang_end_state(enum tap_state state)
{

View File

@ -109,6 +109,11 @@ char* jtag_event_strings[] =
"JTAG controller reset(tms or TRST)"
};
/* kludge!!!! these are just global variables that the
* interface use internally. They really belong
* inside the drivers, but we don't want to break
* linking the drivers!!!!
*/
enum tap_state end_state = TAP_TLR;
enum tap_state cur_state = TAP_TLR;
int jtag_trst = 0;
@ -1812,7 +1817,7 @@ int handle_endstate_command(struct command_context_s *cmd_ctx, char *cmd, char *
}
}
}
command_print(cmd_ctx, "current endstate: %s", tap_state_strings[end_state]);
command_print(cmd_ctx, "current endstate: %s", tap_state_strings[cmd_queue_end_state]);
return ERROR_OK;
}