summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2011-05-23 10:22:12 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2011-05-23 10:22:12 +0100
commitd16b0ea6d46736633e4b765df963682ee684cf5f (patch)
treeaf4093bf4ee732d1db2dab55b7630d5801633415
parentef599aebfdbca9fa1b710d272d93d9d6b6999801 (diff)
downloadopenocd_libswd-d16b0ea6d46736633e4b765df963682ee684cf5f.tar.gz
openocd_libswd-d16b0ea6d46736633e4b765df963682ee684cf5f.tar.bz2
openocd_libswd-d16b0ea6d46736633e4b765df963682ee684cf5f.tar.xz
openocd_libswd-d16b0ea6d46736633e4b765df963682ee684cf5f.zip
Fix build issue under cygwin
cygwin does not define sleep, so use our internal win32 version. caused by commit 9d4aec6bda90ad39a140747ea270c6a09dd26440 Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
-rw-r--r--src/target/dsp5680xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c
index 12b323ed..b8e95e4e 100644
--- a/src/target/dsp5680xx.c
+++ b/src/target/dsp5680xx.c
@@ -162,7 +162,7 @@ static int dsp5680xx_assert_reset(struct target *target){
jtag_add_reset(1,0);
target->state = TARGET_RESET;
jtag_add_sleep(500);
- sleep(1);
+ usleep(1000);
return ERROR_OK;
}