PIC32 SPI: Fix some backward conditional compilation
This commit is contained in:
parent
e7177afca4
commit
35bd9756ff
@ -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--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user