|
From: <zw...@ma...> - 2009-06-03 02:34:46
|
Author: zwelch
Date: 2009-06-03 02:33:22 +0200 (Wed, 03 Jun 2009)
New Revision: 2011
Modified:
trunk/src/jtag/interface.h
trunk/src/jtag/jtag.c
Log:
Add missed accessor for checking the current TMS table.
Modified: trunk/src/jtag/interface.h
===================================================================
--- trunk/src/jtag/interface.h 2009-06-03 00:24:21 UTC (rev 2010)
+++ trunk/src/jtag/interface.h 2009-06-03 00:33:22 UTC (rev 2011)
@@ -169,6 +169,8 @@
/// Allow switching between old and new TMS tables. @see tap_get_tms_path
void tap_use_new_tms_table(bool use_new);
+/// @returns True if new TMS table is active; false otherwise.
+bool tap_uses_new_tms_table(void);
#ifdef _DEBUG_JTAG_IO_
/**
Modified: trunk/src/jtag/jtag.c
===================================================================
--- trunk/src/jtag/jtag.c 2009-06-03 00:24:21 UTC (rev 2010)
+++ trunk/src/jtag/jtag.c 2009-06-03 00:33:22 UTC (rev 2011)
@@ -3227,6 +3227,10 @@
{
tms_seqs = use_new ? &short_tms_seqs : &old_tms_seqs;
}
+bool tap_uses_new_tms_table(void)
+{
+ return tms_seqs == &short_tms_seqs;
+}
static int handle_tms_sequence_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
{
@@ -3246,7 +3250,8 @@
tap_use_new_tms_table(use_new_table);
}
- command_print(cmd_ctx, "tms sequence is %s", (tms_seqs==&short_tms_seqs) ? "short": "long");
+ command_print(cmd_ctx, "tms sequence is %s",
+ tap_uses_new_tms_table() ? "short": "long");
return ERROR_OK;
}
|