From c55f4a37836df4214f40a9b1dbebf9cfc4d1ef0c Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 30 Jan 2008 12:55:11 +0000 Subject: [PATCH] Use mdelay vs inaccurate udelay git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@586 42af7a65-404d-4744-a932-0658087f49c3 --- drivers/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial.c b/drivers/serial.c index 2f0f5703fd..bc360d74af 100644 --- a/drivers/serial.c +++ b/drivers/serial.c @@ -347,7 +347,7 @@ static int uart_close(struct file *filep) #ifndef CONFIG_DISABLE_SIGNALS usleep(500*1000); #else - up_udelay(500*1000); + up_mdelay(500); #endif } @@ -358,7 +358,7 @@ static int uart_close(struct file *filep) #ifndef CONFIG_DISABLE_SIGNALS usleep(500*1000); #else - up_udelay(500*1000); + up_mdelay(500); #endif }