Commit c9560ba1 authored by Spencer Oliver's avatar Spencer Oliver
Browse files

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: default avatarSpencer Oliver <ntfreak@users.sourceforge.net>
parent 73c1cff7
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment