]> git.sur5r.net Git - openocd/commitdiff
zy1000: fix incorrect usage of jtag_sleep()
authorØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 3 Mar 2011 08:16:11 +0000 (09:16 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 15 Mar 2011 09:36:16 +0000 (10:36 +0100)
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>
src/jtag/zy1000/zy1000.c

index 3344e0ee99403884e5b678b6f3d9ffa3f0a87843..a8f7ffc7a7285414b28bfe7bfcba70dbf1f8e527 100644 (file)
@@ -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: