added busy sleep (for testing purposes)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1033 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -412,3 +412,14 @@ void alive_sleep(int ms)
|
||||
keep_alive();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void busy_sleep(int ms)
|
||||
{
|
||||
long long then;
|
||||
then=timeval_ms();
|
||||
while ((timeval_ms()-then)<ms)
|
||||
{
|
||||
/* busy wait */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user