diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 15:13:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-13 15:13:37 +0000 |
commit | c37fdc28c2cfdf41a549ba245c1cad85b757e53a (patch) | |
tree | 2812daa6196bae9eb0a4233aa1b28f6eb7902c44 /nuttx/drivers/serial | |
parent | a3933a716fd10ac4c87089ce7fac43ee24b3a2d4 (diff) | |
download | px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.gz px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.tar.bz2 px4-nuttx-c37fdc28c2cfdf41a549ba245c1cad85b757e53a.zip |
Eliminate some hcs12 compile errors/warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2329 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/serial')
-rw-r--r-- | nuttx/drivers/serial/serial.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nuttx/drivers/serial/serial.c b/nuttx/drivers/serial/serial.c index df942a050..5675f1791 100644 --- a/nuttx/drivers/serial/serial.c +++ b/nuttx/drivers/serial/serial.c @@ -65,6 +65,9 @@ #define uart_putc(ch) up_putc(ch) +#define HALF_SECOND_MSEC 500 +#define HALF_SECOND_USEC 500000L + /************************************************************************************ * Private Types ************************************************************************************/ @@ -543,9 +546,9 @@ static int uart_close(FAR struct file *filep) while (dev->xmit.head != dev->xmit.tail) { #ifndef CONFIG_DISABLE_SIGNALS - usleep(500*1000); + usleep(HALF_SECOND_USEC); #else - up_mdelay(500); + up_mdelay(HALF_SECOND_MSEC); #endif } @@ -554,9 +557,9 @@ static int uart_close(FAR struct file *filep) while (!uart_txempty(dev)) { #ifndef CONFIG_DISABLE_SIGNALS - usleep(500*1000); + usleep(HALF_SECOND_USEC); #else - up_mdelay(500); + up_mdelay(HALF_SECOND_MSEC); #endif } |