From c9560ba19071b2f988b0210ad03e6d9e8eca5edb Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Sun, 28 Feb 2010 22:40:23 +0000 Subject: 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 --- src/flash/nor/stellaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.3