diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-24 16:24:55 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-24 16:24:55 +0000 |
commit | 447a615dc33f324d44c73b282174be44e876cf41 (patch) | |
tree | 4a83cc7a9e18180900d58befae02d02932ca3a47 /src/jtag/jlink.c | |
parent | 002fdcf016e89b4f77be3afe9884dfe886f3cdd1 (diff) | |
download | riscv-openocd-447a615dc33f324d44c73b282174be44e876cf41.zip riscv-openocd-447a615dc33f324d44c73b282174be44e876cf41.tar.gz riscv-openocd-447a615dc33f324d44c73b282174be44e876cf41.tar.bz2 |
Zach Welch <zw@superlucidity.net> add TAP_SCAN_BYTES macro (1 of 2)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1524 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/jlink.c')
-rw-r--r-- | src/jtag/jlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index 8626b18..1269fa8 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -672,7 +672,7 @@ static int jlink_tap_execute(void) return ERROR_OK; // number of full bytes (plus one if some would be left over) - byte_length = tap_length / 8 + !!(tap_length % 8); + byte_length = TAP_SCAN_BYTES(tap_length); usb_out_buffer[0] = EMU_CMD_HW_JTAG3; usb_out_buffer[1] = 0; |