diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-11 07:26:59 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-11 07:26:59 +0000 |
commit | a79945b7a966ce95a2ebb2cd6cba657cfb36d986 (patch) | |
tree | 832a603d2b8b4a786e3948ffd1d0381dd00d0364 | |
parent | dda225b7b3a0fb1919abf2d7b8a90f6815706d86 (diff) | |
download | openocd+libswd-a79945b7a966ce95a2ebb2cd6cba657cfb36d986.tar.gz openocd+libswd-a79945b7a966ce95a2ebb2cd6cba657cfb36d986.tar.bz2 openocd+libswd-a79945b7a966ce95a2ebb2cd6cba657cfb36d986.tar.xz openocd+libswd-a79945b7a966ce95a2ebb2cd6cba657cfb36d986.zip |
switch to jtag_add_callback() - USB performance fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@1724 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/target/arm_adi_v5.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 3c9461ae..b9666fcb 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -120,11 +120,10 @@ int adi_jtag_dp_scan_u32(arm_jtag_t *jtag_info, u8 instr, u8 reg_addr, u8 RnW, u if (invalue) { - u8 tmp[4]; - fields[1].in_value = tmp; - jtag_add_dr_scan_now(2, fields, TAP_INVALID); + fields[1].in_value = (u8 *)invalue; + jtag_add_dr_scan(2, fields, TAP_INVALID); - *invalue=le_to_h_u32(tmp); + jtag_add_callback(arm_le_to_h_u32, (u8 *)invalue); } else { |