diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-03 00:17:42 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-03 00:17:42 +0000 |
commit | 2c69be13ea143fded2ad33b2b8405003c34e50ba (patch) | |
tree | 523d0828309e66fac6c208d04e845602804eacc4 | |
parent | def4ed3b2ad6ef039a996b6b680096f15f46da81 (diff) | |
download | openocd_libswd-2c69be13ea143fded2ad33b2b8405003c34e50ba.tar.gz openocd_libswd-2c69be13ea143fded2ad33b2b8405003c34e50ba.tar.bz2 openocd_libswd-2c69be13ea143fded2ad33b2b8405003c34e50ba.tar.xz openocd_libswd-2c69be13ea143fded2ad33b2b8405003c34e50ba.zip |
Make tap_state_by_name available in new JTAG interface API header.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2009 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/jtag/interface.h | 3 | ||||
-rw-r--r-- | src/jtag/jtag.c | 10 |
2 files changed, 4 insertions, 9 deletions
diff --git a/src/jtag/interface.h b/src/jtag/interface.h index 920f0ecf..2f9f7373 100644 --- a/src/jtag/interface.h +++ b/src/jtag/interface.h @@ -164,6 +164,9 @@ tap_state_t tap_state_transition(tap_state_t current_state, bool tms); */ const char* tap_state_name(tap_state_t state); +/// Provides user-friendly name lookup of TAP states. +tap_state_t tap_state_by_name(const char *name); + #ifdef _DEBUG_JTAG_IO_ /** * @brief Prints verbose TAP state transitions for the given TMS/TDI buffers. diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index 3a18e43c..5fdc070b 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -217,14 +217,6 @@ struct jtag_interface_s *jtag = NULL; static jtag_interface_t *jtag_interface = NULL; int jtag_speed = 0; -/* forward declarations */ -//void jtag_add_pathmove(int num_states, tap_state_t *path); -//void jtag_add_runtest(int num_cycles, tap_state_t endstate); -//void jtag_add_end_state(tap_state_t endstate); -//void jtag_add_sleep(u32 us); -//int jtag_execute_queue(void); -static tap_state_t tap_state_by_name(const char *name); - /* jtag commands */ static int handle_interface_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); static int handle_jtag_speed_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); @@ -3132,7 +3124,7 @@ const char* tap_state_name(tap_state_t state) return ret; } -static tap_state_t tap_state_by_name( const char *name ) +tap_state_t tap_state_by_name(const char *name) { tap_state_t x; |