summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2011-03-03 09:16:11 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-03-15 10:36:16 +0100
commit4da640563b95939cd3fe9275053ba3181de723c4 (patch)
treed9ff13ecc9584f4ae26f74f9b563b3695b8ae704
parentbb0d11cba989832c0f27c2e5b664bfdc26b98cc9 (diff)
downloadopenocd_libswd-4da640563b95939cd3fe9275053ba3181de723c4.tar.gz
openocd_libswd-4da640563b95939cd3fe9275053ba3181de723c4.tar.bz2
openocd_libswd-4da640563b95939cd3fe9275053ba3181de723c4.tar.xz
openocd_libswd-4da640563b95939cd3fe9275053ba3181de723c4.zip
zy1000: fix incorrect usage of jtag_sleep()
Found by inspection: the correct thing in the context is to use usleep() rather than jtag_sleep(). Relates to JTAG over TCP/IP only. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/jtag/zy1000/zy1000.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c
index 3344e0ee..a8f7ffc7 100644
--- a/src/jtag/zy1000/zy1000.c
+++ b/src/jtag/zy1000/zy1000.c
@@ -1393,7 +1393,8 @@ static void tcpipserver(void)
uint32_t data;
if (!readLong(&data))
return;
- jtag_sleep(data);
+ /* Wait for some us */
+ usleep(data);
break;
}
case ZY1000_CMD_WAITIDLE: