diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-26 11:25:47 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-26 11:25:47 -0600 |
commit | 3d8effa6e3e7219f050fb175f4ba9cf23cb3f8a1 (patch) | |
tree | d236a9c061ddc616b033b91952b932abe40fc216 | |
parent | b0df07ecb63cafe41c449c0d96db60e05f46a12f (diff) | |
download | nuttx-3d8effa6e3e7219f050fb175f4ba9cf23cb3f8a1.tar.gz nuttx-3d8effa6e3e7219f050fb175f4ba9cf23cb3f8a1.tar.bz2 nuttx-3d8effa6e3e7219f050fb175f4ba9cf23cb3f8a1.zip |
Cosmetic update to spacing and comments
-rw-r--r-- | nuttx/arch/arm/src/efm32/efm32_spi.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/nuttx/arch/arm/src/efm32/efm32_spi.c b/nuttx/arch/arm/src/efm32/efm32_spi.c index 20b5b7f5e..047216591 100644 --- a/nuttx/arch/arm/src/efm32/efm32_spi.c +++ b/nuttx/arch/arm/src/efm32/efm32_spi.c @@ -1248,13 +1248,14 @@ static void spi_exchange(struct spi_dev_s *dev, const void *txbuffer, unsent = nwords; while (unrecvd > 0) { - /* Send data while there is space in the TX buffer. This should - * provide some benefit when the depth of the TC buffer is > 1 - */ + /* REVISIT: This might cause RX data overruns??? */ + /* Send data while there is space in the TX buffer. This should + * provide some benefit when the depth of the TC buffer is > 1 + */ - while ((spi_getreg(config, EFM32_USART_STATUS_OFFSET) & USART_STATUS_TXBL) != 0 && - unsent > 0) - { + while ((spi_getreg(config, EFM32_USART_STATUS_OFFSET) & USART_STATUS_TXBL) != 0 && + unsent > 0) + { /* Get the next word to write. Is there a source buffer? */ if (src) @@ -1303,13 +1304,14 @@ static void spi_exchange(struct spi_dev_s *dev, const void *txbuffer, unsent = nwords; while (unrecvd > 0) { - /* Send data while there is space in the TX buffer. This should - * provide some benefit when the depth of the TC buffer is > 1 - */ + /* REVISIT: This might cause RX data overruns??? */ + /* Send data while there is space in the TX buffer. This should + * provide some benefit when the depth of the TC buffer is > 1 + */ - while ((spi_getreg(config, EFM32_USART_STATUS_OFFSET) & USART_STATUS_TXBL) != 0 && - unsent > 0) - { + while ((spi_getreg(config, EFM32_USART_STATUS_OFFSET) & USART_STATUS_TXBL) != 0 && + unsent > 0) + { /* Get the next word to write. Is there a source buffer? */ if (src) |