aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-28 22:40:23 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-28 22:48:57 +0000
commitc9560ba19071b2f988b0210ad03e6d9e8eca5edb (patch)
tree6183fe9b6fa1f84d6108cd7bf03af7a2d0e38153
parent73c1cff7c242566d995e7b77de0fcec9fe50a6bb (diff)
downloadriscv-openocd-c9560ba19071b2f988b0210ad03e6d9e8eca5edb.zip
riscv-openocd-c9560ba19071b2f988b0210ad03e6d9e8eca5edb.tar.gz
riscv-openocd-c9560ba19071b2f988b0210ad03e6d9e8eca5edb.tar.bz2
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 <ntfreak@users.sourceforge.net>
-rw-r--r--src/flash/nor/stellaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c
index b80daed..c9c800e 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.