summaryrefslogtreecommitdiff
path: root/src/jtag/core.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-03-18 18:53:39 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-19 08:31:44 +0100
commit7f6bab0c4c36d7a64f933904e5add9bc6b36d78c (patch)
treefbce69a0317da4cbb824f80b37a2a5c348966159 /src/jtag/core.c
parent15ff2aeca9b302419aed62fc3cc73dedacdd62cb (diff)
downloadopenocd_libswd-7f6bab0c4c36d7a64f933904e5add9bc6b36d78c.tar.gz
openocd_libswd-7f6bab0c4c36d7a64f933904e5add9bc6b36d78c.tar.bz2
openocd_libswd-7f6bab0c4c36d7a64f933904e5add9bc6b36d78c.tar.xz
openocd_libswd-7f6bab0c4c36d7a64f933904e5add9bc6b36d78c.zip
jtag: retire jtag_get/set_end_state()
Voila! This get rids of mysteries about what what state the TAP is in. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/jtag/core.c')
-rw-r--r--src/jtag/core.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c
index a09472a7..65ca8245 100644
--- a/src/jtag/core.c
+++ b/src/jtag/core.c
@@ -86,7 +86,6 @@ static struct jtag_tap *__jtag_all_taps = NULL;
static unsigned jtag_num_taps = 0;
static enum reset_types jtag_reset_config = RESET_NONE;
-static tap_state_t cmd_queue_end_state = TAP_RESET;
tap_state_t cmd_queue_cur_state = TAP_RESET;
static bool jtag_verify_capture_ir = true;
@@ -717,7 +716,6 @@ void jtag_add_reset(int req_tlr_or_trst, int req_srst)
*/
if (trst_with_tlr) {
LOG_DEBUG("JTAG reset with TLR instead of TRST");
- jtag_set_end_state(TAP_RESET);
jtag_add_tlr();
} else if (jtag_trst != new_trst) {
@@ -743,24 +741,6 @@ void jtag_add_reset(int req_tlr_or_trst, int req_srst)
}
}
-/* DEPRECATED! store such global state outside JTAG layer */
-void jtag_set_end_state(tap_state_t state)
-{
- if ((state == TAP_DRSHIFT)||(state == TAP_IRSHIFT))
- {
- LOG_ERROR("BUG: TAP_DRSHIFT/IRSHIFT can't be end state. Calling code should use a larger scan field");
- }
-
- if (state != TAP_INVALID)
- cmd_queue_end_state = state;
-}
-
-/* DEPRECATED! store such global state outside JTAG layer */
-tap_state_t jtag_get_end_state(void)
-{
- return cmd_queue_end_state;
-}
-
void jtag_add_sleep(uint32_t us)
{
/// @todo Here, keep_alive() appears to be a layering violation!!!