diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 21:55:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 21:55:16 +0000 |
commit | efc2cf23a849f7be1d65c4cdd7767f88917c46a7 (patch) | |
tree | fbe3518a364d6b9d811e00f7201e082d50ead7e3 /nuttx/arch/c5471/src/up_serial.c | |
parent | 94e5b72f50f3096b83fe50c7b57324a08e318f29 (diff) | |
download | px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.tar.gz px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.tar.bz2 px4-nuttx-efc2cf23a849f7be1d65c4cdd7767f88917c46a7.zip |
Progress toward clean SDCC compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@18 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/c5471/src/up_serial.c')
-rw-r--r-- | nuttx/arch/c5471/src/up_serial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/c5471/src/up_serial.c b/nuttx/arch/c5471/src/up_serial.c index df4927660..b11bfc070 100644 --- a/nuttx/arch/c5471/src/up_serial.c +++ b/nuttx/arch/c5471/src/up_serial.c @@ -721,7 +721,7 @@ static void up_uartsetup(up_dev_t *dev) static void shutdown(up_dev_t * dev) { - uint32 flags; + irqstate_t flags; uint16 msr; /* Free the IRQ */ @@ -878,7 +878,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) case TIOCSBRK: /* BSD compatibility: Turn break on, unconditionally */ { - uint32 flags = irqsave(); + irqstate_t flags = irqsave(); up_enablebreaks(dev); irqrestore(flags); } @@ -886,7 +886,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg) case TIOCCBRK: /* BSD compatibility: Turn break off, unconditionally */ { - uint32 flags; + irqstate_t flags; flags = irqsave(); up_disablebreaks(dev); irqrestore(flags); @@ -973,7 +973,7 @@ static int up_open(struct file *filep) if (++dev->open_count == 1) { - int flags = irqsave(); + irqstate_t flags = irqsave(); /* If this is the console, then the UART has already * been initialized. |