From d913f00d3b4bcbebc12dfa7ea017bacd17464b88 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 19 Mar 2007 23:22:11 +0000 Subject: Follow naming convention git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@106 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/c5471/src/up_serial.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'nuttx/arch/c5471/src/up_serial.c') diff --git a/nuttx/arch/c5471/src/up_serial.c b/nuttx/arch/c5471/src/up_serial.c index 8dd41df7b..980b4ece3 100644 --- a/nuttx/arch/c5471/src/up_serial.c +++ b/nuttx/arch/c5471/src/up_serial.c @@ -247,9 +247,9 @@ static inline void up_disableuartint(struct up_dev_s *priv, uint16 *ier) { if (ier) { - *ier = priv->regs.ier & UART_IER_AllInts; + *ier = priv->regs.ier & UART_IER_INTMASK; } - priv->regs.ier &= ~UART_IER_AllInts; + priv->regs.ier &= ~UART_IER_INTMASK; up_serialout(priv, UART_IER_OFFS, priv->regs.ier); } @@ -259,7 +259,7 @@ static inline void up_disableuartint(struct up_dev_s *priv, uint16 *ier) static inline void up_restoreuartint(struct up_dev_s *priv, uint16 ier) { - priv->regs.ier |= ier & (UART_IER_RecvInt|UART_IER_XmitInt); + priv->regs.ier |= ier & (UART_IER_RECVINT|UART_IER_XMITINT); up_serialout(priv, UART_IER_OFFS, priv->regs.ier); } @@ -357,25 +357,25 @@ static int up_setup(struct uart_dev_s *dev) if (priv->bits == 7) { - cval = UART_LCR_7bits; + cval = UART_LCR_7BITS; } else { - cval = UART_LCR_8bits; + cval = UART_LCR_8BITS; } if (priv->stopbits2) { - cval |= UART_LCR_2stop; + cval |= UART_LCR_2STOP; } if (priv->parity == 1) /* Odd parity */ { - cval |= (UART_LCR_ParEn|UART_LCR_ParOdd); + cval |= (UART_LCR_PAREN|UART_LCR_PARODD); } else if (priv->parity == 2) /* Even parity */ { - cval |= (UART_LCR_ParEn|UART_LCR_ParEven); + cval |= (UART_LCR_PAREN|UART_LCR_PAREVEN); } /* Both the IrDA and MODEM UARTs support RESET and UART mode. */ @@ -645,13 +645,13 @@ static void up_rxint(struct uart_dev_s *dev, boolean enable) if (enable) { #ifndef CONFIG_SUPPRESS_SERIAL_INTS - priv->regs.ier |= UART_IER_RecvInt; + priv->regs.ier |= UART_IER_RECVINT; up_serialout(priv, UART_IER_OFFS, priv->regs.ier); #endif } else { - priv->regs.ier &= ~UART_IER_RecvInt; + priv->regs.ier &= ~UART_IER_RECVINT; up_serialout(priv, UART_IER_OFFS, priv->regs.ier); } } @@ -698,13 +698,13 @@ static void up_txint(struct uart_dev_s *dev, boolean enable) if (enable) { #ifndef CONFIG_SUPPRESS_SERIAL_INTS - priv->regs.ier |= UART_IER_XmitInt; + priv->regs.ier |= UART_IER_XMITINT; up_serialout(priv, UART_IER_OFFS, priv->regs.ier); #endif } else { - priv->regs.ier &= ~UART_IER_XmitInt; + priv->regs.ier &= ~UART_IER_XMITINT; up_serialout(priv, UART_IER_OFFS, priv->regs.ier); } } -- cgit v1.2.3