projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb0d11c
)
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
patch
|
blob
|
history
diff --git
a/src/jtag/zy1000/zy1000.c
b/src/jtag/zy1000/zy1000.c
index 3344e0ee99403884e5b678b6f3d9ffa3f0a87843..a8f7ffc7a7285414b28bfe7bfcba70dbf1f8e527 100644
(file)
--- 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: