]> git.sur5r.net Git - openocd/commitdiff
switch to jtag_add_callback() - USB performance fix
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 11 May 2009 07:26:59 +0000 (07:26 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 11 May 2009 07:26:59 +0000 (07:26 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1724 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm_adi_v5.c

index 3c9461ae041302bfa6dba1fc0566da738ee61ee5..b9666fcb3078324732f298a9e46ac62de5e599b5 100644 (file)
@@ -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
        {