mirror of
https://github.com/apache/nuttx.git
synced 2026-08-11 07:25:13 +00:00
Cosmetic update to spacing and comments
This commit is contained in:
parent
c392115fbd
commit
eeccd16a54
1 changed files with 14 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue