summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-07-06 15:41:55 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-07-06 15:41:55 +0000
commitcd1b2c15ab9c05ddf99ccdbcd972132ead108e33 (patch)
tree47a4f332a1627e334235899bcbb8128c2d4513bb /src
parentd41f2bfb14a6b9b31062a328f0e05a9664eaca53 (diff)
downloadopenocd_libswd-cd1b2c15ab9c05ddf99ccdbcd972132ead108e33.tar.gz
openocd_libswd-cd1b2c15ab9c05ddf99ccdbcd972132ead108e33.tar.bz2
openocd_libswd-cd1b2c15ab9c05ddf99ccdbcd972132ead108e33.tar.xz
openocd_libswd-cd1b2c15ab9c05ddf99ccdbcd972132ead108e33.zip
- change sleep to usleep - fixes issue under win32 build
git-svn-id: svn://svn.berlios.de/openocd/trunk@2483 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c
index b41731d2..aff1a6ca 100644
--- a/src/jtag/jlink.c
+++ b/src/jtag/jlink.c
@@ -328,7 +328,7 @@ static int jlink_init(void)
LOG_INFO("J-Link initialization started / target CPU reset initiated");
jlink_simple_command(EMU_CMD_HW_TRST0);
jlink_simple_command(EMU_CMD_HW_RESET0);
- sleep(1);
+ usleep(1000);
jlink_hw_jtag_version = 2;