]> git.sur5r.net Git - openocd/commitdiff
- change sleep to usleep - fixes issue under win32 build
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 6 Jul 2009 15:41:55 +0000 (15:41 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 6 Jul 2009 15:41:55 +0000 (15:41 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2483 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jlink.c

index b41731d2dc4e2255dfc976185479c76535f6d0ef..aff1a6cae7aa3dd4a511b0786e7d15ff95b96d38 100644 (file)
@@ -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;