diff options
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 |
commit | 4da640563b95939cd3fe9275053ba3181de723c4 (patch) | |
tree | d9ff13ecc9584f4ae26f74f9b563b3695b8ae704 | |
parent | bb0d11cba989832c0f27c2e5b664bfdc26b98cc9 (diff) | |
download | openocd+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.c | 3 |
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: |