]> git.sur5r.net Git - openocd/commitdiff
better polling debug_level 3 handling
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 19 Aug 2008 16:41:59 +0000 (16:41 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 19 Aug 2008 16:41:59 +0000 (16:41 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@943 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/xscale.c

index 7c364b3f8eef6bd6e5ae6e18a98fcbf6adb04c7b..e9ec0cee5291c8acedf74cef919075c963ae0322 100644 (file)
@@ -518,8 +518,11 @@ int xscale_read_tx(target_t *target, int consume)
                }
                if (debug_level>=3)
                {
-                       LOG_DEBUG("waiting 10ms");
-                       usleep(10*1000); /* avoid flooding the logs */
+                       LOG_DEBUG("waiting 100ms");
+                       alive_sleep(100); /* avoid flooding the logs */
+               } else
+               {
+                       keep_alive();
                }
        } 
        done:
@@ -602,8 +605,11 @@ int xscale_write_rx(target_t *target)
                        goto done;
                if (debug_level>=3)
                {
-                       LOG_DEBUG("waiting 10ms");
-                       usleep(10*1000); /* avoid flooding the logs */
+                       LOG_DEBUG("waiting 100ms");
+                       alive_sleep(100); /* avoid flooding the logs */
+               } else
+               {
+                       keep_alive();
                }
        }
        done: