Retire jtag_add_dr_out
The out only version of jtag_add_dr_scan smells like a bogus optimization that complicates the minidriver API for questionable gain. The function was only used by four old ARM targets. Rewrite the callers to use the generic function and remove all implementations. Change-Id: I13b643687ee8ed6bc9b6336e7096c34f40ea96af Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1801 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
87e91f4db9
commit
63fa73169b
@@ -609,33 +609,6 @@ void jtag_sleep(uint32_t us);
|
||||
#define ERROR_JTAG_TRANSITION_INVALID (-109)
|
||||
#define ERROR_JTAG_INIT_SOFT_FAIL (-110)
|
||||
|
||||
/**
|
||||
* jtag_add_dr_out() is a version of jtag_add_dr_scan() which
|
||||
* only scans data out. It operates on 32 bit integers instead
|
||||
* of 8 bit, which makes it a better impedance match with
|
||||
* the calling code which often operate on 32 bit integers.
|
||||
*
|
||||
* Current or end_state can not be TAP_RESET. end_state can be TAP_INVALID
|
||||
*
|
||||
* num_bits[i] is the number of bits to clock out from value[i] LSB first.
|
||||
*
|
||||
* If the device is in bypass, then that is an error condition in
|
||||
* the caller code that is not detected by this fn, whereas
|
||||
* jtag_add_dr_scan() does detect it. Similarly if the device is not in
|
||||
* bypass, data must be passed to it.
|
||||
*
|
||||
* If anything fails, then jtag_error will be set and jtag_execute() will
|
||||
* return an error. There is no way to determine if there was a failure
|
||||
* during this function call.
|
||||
*
|
||||
* This is an inline fn to speed up embedded hosts. Also note that
|
||||
* interface_jtag_add_dr_out() can be a *small* inline function for
|
||||
* embedded hosts.
|
||||
*
|
||||
* There is no jtag_add_dr_outin() version of this fn that also allows
|
||||
* clocking data back in. Patches gladly accepted!
|
||||
*/
|
||||
|
||||
/**
|
||||
* Set the current JTAG core execution error, unless one was set
|
||||
* by a previous call previously. Driver or application code must
|
||||
|
||||
Reference in New Issue
Block a user