mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
PIC32 SPI: Fix some backward conditional compilation
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
/* Configuration */
|
/* Configuration */
|
||||||
|
|
||||||
#ifndef CONFIG_SPI_EXCHANGE
|
#ifdef CONFIG_SPI_EXCHANGE
|
||||||
/* See arch/mips/src/pic32mz/pic32mz-spi.c for an implementation */
|
/* See arch/mips/src/pic32mz/pic32mz-spi.c for an implementation */
|
||||||
|
|
||||||
# error CONFIG_SPI_EXCHANGE not supported by this driver
|
# error CONFIG_SPI_EXCHANGE not supported by this driver
|
||||||
@@ -812,6 +812,7 @@ static void spi_sndblock(FAR struct spi_dev_s *dev, FAR const void *buffer, size
|
|||||||
/* Read from the buffer register to clear the status bit */
|
/* Read from the buffer register to clear the status bit */
|
||||||
|
|
||||||
regval = spi_getreg(priv, PIC32MX_SPI_BUF_OFFSET);
|
regval = spi_getreg(priv, PIC32MX_SPI_BUF_OFFSET);
|
||||||
|
UNUSED(regval);
|
||||||
nwords--;
|
nwords--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user