]> git.sur5r.net Git - openocd/commitdiff
stellaris: recover_command use usleep rather than sleep
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Sun, 28 Feb 2010 22:40:23 +0000 (22:40 +0000)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Sun, 28 Feb 2010 22:48:57 +0000 (22:48 +0000)
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 <ntfreak@users.sourceforge.net>
src/flash/nor/stellaris.c

index b80daed1d42fef23682c449c8625ef2a855942c2..c9c800ea2d43010c71ab5518a3daaf32e38c58fc 100644 (file)
@@ -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.