mirror of
https://github.com/apache/nuttx.git
synced 2026-10-13 01:00:12 +00:00
stm32f7/h7 spi add missing ret declaration
This commit is contained in:
parent
fc3ab3e085
commit
4fa26d34d6
2 changed files with 4 additions and 0 deletions
|
|
@ -1786,6 +1786,8 @@ static void spi_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
|
|||
{
|
||||
FAR struct stm32_spidev_s *priv = (FAR struct stm32_spidev_s *)dev;
|
||||
FAR void * xbuffer = rxbuffer;
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(priv != NULL);
|
||||
|
||||
/* Convert the number of word to a number of bytes */
|
||||
|
|
|
|||
|
|
@ -1812,6 +1812,8 @@ static void spi_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
|
|||
{
|
||||
FAR struct stm32_spidev_s *priv = (FAR struct stm32_spidev_s *)dev;
|
||||
FAR void * xbuffer = rxbuffer;
|
||||
int ret;
|
||||
|
||||
DEBUGASSERT(priv != NULL);
|
||||
|
||||
/* Convert the number of word to a number of bytes */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue