arch/arm/src/tiva/common/tiva_serial.c: Fix some typos in comments.
This commit is contained in:
parent
33ab25ae14
commit
198723b90d
@ -915,7 +915,7 @@ static void up_shutdown(struct uart_dev_s *dev)
|
||||
* Name: up_attach
|
||||
*
|
||||
* Description:
|
||||
* Configure the UART to operation in interrupt driven mode. This method is
|
||||
* Configure the UART to operate in interrupt driven mode. This method is
|
||||
* called when the serial port is opened. Normally, this is just after the
|
||||
* the setup() method is called, however, the serial console may operate in
|
||||
* a non-interrupt driven mode during the boot phase.
|
||||
@ -970,7 +970,7 @@ static void up_detach(struct uart_dev_s *dev)
|
||||
* This is the UART interrupt handler. It will be invoked
|
||||
* when an interrupt received on the 'irq' It should call
|
||||
* uart_transmitchars or uart_receivechar to perform the
|
||||
* appropriate data transfers. The interrupt handling logic\
|
||||
* appropriate data transfers. The interrupt handling logic
|
||||
* must be able to map the 'irq' number into the approprite
|
||||
* uart_dev_s structure in order to call these functions.
|
||||
*
|
||||
@ -1175,7 +1175,7 @@ static int up_receive(struct uart_dev_s *dev, uint32_t *status)
|
||||
rxd = up_serialin(priv, TIVA_UART_DR_OFFSET);
|
||||
*status = rxd;
|
||||
|
||||
/* The lower 8bits of the Rx data is the actual recevied byte */
|
||||
/* The lower 8bits of the Rx data is the actual received byte */
|
||||
|
||||
return rxd & 0xff;
|
||||
}
|
||||
@ -1193,7 +1193,7 @@ static void up_rxint(struct uart_dev_s *dev, bool enable)
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
if (enable)
|
||||
{
|
||||
/* Receive an interrupt when their is anything in the Rx FIFO (or an Rx
|
||||
/* Receive an interrupt when there is anything in the Rx FIFO (or an Rx
|
||||
* timeout occurs.
|
||||
*/
|
||||
|
||||
@ -1258,13 +1258,13 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
|
||||
priv->im |= UART_IM_TXIM;
|
||||
up_serialout(priv, TIVA_UART_IM_OFFSET, priv->im);
|
||||
|
||||
/* The serial driver wants an interrupt here, but will not get get
|
||||
/* The serial driver wants an interrupt here, but will not get
|
||||
* one unless we "prime the pump." I believe that this is because
|
||||
* behave like a level interrupt and the Stellaris interrupts behave
|
||||
* (at least by default) like edge interrupts.
|
||||
*
|
||||
* In any event, faking a TX interrupt here solves the problem;
|
||||
* Call uart_xmitchars() just as would have been done if we recieved
|
||||
* Call uart_xmitchars() just as would have been done if we received
|
||||
* the TX interrupt.
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user