diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-30 12:55:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-30 12:55:11 +0000 |
commit | d654c12bca511c798c065825bf3407fae3143b6d (patch) | |
tree | d7739a5af453d0c477118259842a8b52788dd09d | |
parent | 2f9ef93c914795ff502f8371084cf3be931494a7 (diff) | |
download | nuttx-d654c12bca511c798c065825bf3407fae3143b6d.tar.gz nuttx-d654c12bca511c798c065825bf3407fae3143b6d.tar.bz2 nuttx-d654c12bca511c798c065825bf3407fae3143b6d.zip |
Use mdelay vs inaccurate udelay
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@586 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/drivers/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/serial.c b/nuttx/drivers/serial.c index 2f0f5703f..bc360d74a 100644 --- a/nuttx/drivers/serial.c +++ b/nuttx/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 } |