summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.h
diff options
context:
space:
mode:
authorSanteri Salko <santeri.salko@gmail.com>2011-01-13 15:21:06 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-01-14 14:55:24 +0100
commit5b1efd0176c2e32a5f6766175e518ccfc45239a6 (patch)
tree9fa4cc67baa6077bc050ddd144f5883066d3571b /src/jtag/jtag.h
parent11193c040cf0db5c64e7db808b10184aa8915aa3 (diff)
downloadopenocd+libswd-5b1efd0176c2e32a5f6766175e518ccfc45239a6.tar.gz
openocd+libswd-5b1efd0176c2e32a5f6766175e518ccfc45239a6.tar.bz2
openocd+libswd-5b1efd0176c2e32a5f6766175e518ccfc45239a6.tar.xz
openocd+libswd-5b1efd0176c2e32a5f6766175e518ccfc45239a6.zip
str9xpec: Find flash controller from the chain.
Find the flash controller by position since it is before the core, not after it. This fixes the problem that str9xpec enable_turbo (or any other str9xpec command) did not work. (See my post in http://forum.sparkfun.com/viewtopic.php?f=18&t=25542) Signed-off-by: Santeri Salko <santeri.salko@gmail.com>
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r--src/jtag/jtag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h
index df015376..6709cf71 100644
--- a/src/jtag/jtag.h
+++ b/src/jtag/jtag.h
@@ -173,6 +173,7 @@ struct jtag_tap* jtag_all_taps(void);
const char *jtag_tap_name(const struct jtag_tap *tap);
struct jtag_tap* jtag_tap_by_string(const char* dotted_name);
struct jtag_tap* jtag_tap_by_jim_obj(Jim_Interp* interp, Jim_Obj* obj);
+struct jtag_tap* jtag_tap_by_position(unsigned abs_position);
struct jtag_tap* jtag_tap_next_enabled(struct jtag_tap* p);
unsigned jtag_tap_count_enabled(void);
unsigned jtag_tap_count(void);