diff options
Diffstat (limited to 'src/jtag')
-rw-r--r-- | src/jtag/core.c | 2 | ||||
-rw-r--r-- | src/jtag/jtag.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c index 0c222db9..d7e1ccec 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -216,7 +216,7 @@ void jtag_tap_add(struct jtag_tap *t) } /* returns a pointer to the n-th device in the scan chain */ -static inline struct jtag_tap *jtag_tap_by_position(unsigned n) +struct jtag_tap *jtag_tap_by_position(unsigned n) { struct jtag_tap *t = jtag_all_taps(); 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); |