summaryrefslogtreecommitdiff
path: root/nuttx/arch/mips/src/pic32mx/pic32mx-serial.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-23 23:36:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-23 23:36:34 +0000
commitab6667ad8cb8da2a9f54fe80ce164e06e9ebd60a (patch)
tree8b239ec69268c044578c48c1c406f59cc856c767 /nuttx/arch/mips/src/pic32mx/pic32mx-serial.c
parent617ec57ee062782a59650a5c5cf8cba44c53adc7 (diff)
downloadnuttx-ab6667ad8cb8da2a9f54fe80ce164e06e9ebd60a.tar.gz
nuttx-ab6667ad8cb8da2a9f54fe80ce164e06e9ebd60a.tar.bz2
nuttx-ab6667ad8cb8da2a9f54fe80ce164e06e9ebd60a.zip
PIC32 Serial Console fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4221 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/mips/src/pic32mx/pic32mx-serial.c')
-rw-r--r--nuttx/arch/mips/src/pic32mx/pic32mx-serial.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-serial.c b/nuttx/arch/mips/src/pic32mx/pic32mx-serial.c
index eace41bcb..413eda9f8 100644
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-serial.c
+++ b/nuttx/arch/mips/src/pic32mx/pic32mx-serial.c
@@ -391,7 +391,7 @@ static void up_shutdown(struct uart_dev_s *dev)
* the setup() method is called, however, the serial console may operate in
* a non-interrupt driven mode during the boot phase.
*
- * RX and TX interrupts are not enabled when by the attach method (unless the
+ * RX and TX interrupts are not enabled by the attach method (unless the
* hardware supports multiple levels of interrupt enabling). The RX and TX
* interrupts are not enabled until the txint() and rxint() methods are called.
*
@@ -491,7 +491,7 @@ static int up_interrupt(int irq, void *context)
up_clrpend_irq(priv->irqe);
lldbg("ERROR: interrrupt STA: %08x\n",
- up_serialin(priv, PIC32MX_UART1_STA_OFFSET)
+ up_serialin(priv, PIC32MX_UART_STA_OFFSET)
handled = true;
}
#endif
@@ -619,7 +619,7 @@ static void up_rxint(struct uart_dev_s *dev, bool enable)
#ifdef CONFIG_DEBUG
up_enable_irq(priv->irqe);
#endif
- up_enable_irq(priv->irqtx);
+ up_enable_irq(priv->irqrx);
ENABLE_RX(im);
#endif
}
@@ -628,7 +628,7 @@ static void up_rxint(struct uart_dev_s *dev, bool enable)
#ifdef CONFIG_DEBUG
up_disable_irq(priv->irqe);
#endif
- up_disable_irq(priv->irqtx);
+ up_disable_irq(priv->irqrx);
DISABLE_RX(im);
}
priv->im = im;