mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Use mdelay vs inaccurate udelay
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@586 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+2
-2
@@ -347,7 +347,7 @@ static int uart_close(struct file *filep)
|
|||||||
#ifndef CONFIG_DISABLE_SIGNALS
|
#ifndef CONFIG_DISABLE_SIGNALS
|
||||||
usleep(500*1000);
|
usleep(500*1000);
|
||||||
#else
|
#else
|
||||||
up_udelay(500*1000);
|
up_mdelay(500);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,7 +358,7 @@ static int uart_close(struct file *filep)
|
|||||||
#ifndef CONFIG_DISABLE_SIGNALS
|
#ifndef CONFIG_DISABLE_SIGNALS
|
||||||
usleep(500*1000);
|
usleep(500*1000);
|
||||||
#else
|
#else
|
||||||
up_udelay(500*1000);
|
up_mdelay(500);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user