From: Spencer Oliver Date: Sun, 28 Feb 2010 22:40:23 +0000 (+0000) Subject: stellaris: recover_command use usleep rather than sleep X-Git-Tag: v0.5.0-rc1~896 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c9560ba19071b2f988b0210ad03e6d9e8eca5edb;p=openocd stellaris: recover_command use usleep rather than sleep windows api does not define a posix sleep, use usleep that has an openocd wrapper to the win32 native function. Signed-off-by: Spencer Oliver --- diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index b80daed1..c9c800ea 100644 --- a/src/flash/nor/stellaris.c +++ b/src/flash/nor/stellaris.c @@ -1215,7 +1215,7 @@ COMMAND_HANDLER(stellaris_handle_recover_command) retval = jtag_execute_queue(); /* wait 400+ msec ... OK, "1+ second" is simpler */ - sleep(1); + usleep(1000); /* USER INTERVENTION required for the power cycle * Restarting OpenOCD is likely needed because of mode switching.