]> git.sur5r.net Git - openocd/commitdiff
Fix build issue under cygwin
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 23 May 2011 09:22:12 +0000 (10:22 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Mon, 23 May 2011 09:22:12 +0000 (10:22 +0100)
cygwin does not define sleep, so use our internal win32 version.
caused by commit 9d4aec6bda90ad39a140747ea270c6a09dd26440

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/target/dsp5680xx.c

index 12b323ed03b8b4112cda1e4613bd1b4d7d88a9db..b8e95e4e188ff2e546473f66fd28b349ac717cd3 100644 (file)
@@ -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;
 }