diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-14 15:55:51 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-14 15:55:51 -0800 |
commit | af79925eb1937044977f969a53ea3b7635f576b1 (patch) | |
tree | 6b7a97dda6a67ba1f3fe4d711edd4aae0d58b148 /src/jtag/jtag.h | |
parent | 6f929dbd93e1b2c0373f389060bf64e60e8194ab (diff) | |
download | openocd+libswd-af79925eb1937044977f969a53ea3b7635f576b1.tar.gz openocd+libswd-af79925eb1937044977f969a53ea3b7635f576b1.tar.bz2 openocd+libswd-af79925eb1937044977f969a53ea3b7635f576b1.tar.xz openocd+libswd-af79925eb1937044977f969a53ea3b7635f576b1.zip |
jtag: add '-ignore-version' option
Add a "-ignore-version" to "jtag newtap" which makes the IDCODE
comparison logic optionally ignore version differences.
Update the "scan_chain" command to illustrate this by showing
the "*" character instead of the (ignored) version nibble.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/jtag/jtag.h')
-rw-r--r-- | src/jtag/jtag.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index fa2fcdca..f79ef93f 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -156,6 +156,9 @@ struct jtag_tap { /// Number of expected identification codes uint8_t expected_ids_cnt; + /// Flag saying whether to ignore version field in expected_ids[] + bool ignore_version; + /// current instruction uint8_t* cur_instr; /// Bypass register selected |