A few more cosmetic changes to the SAMV7 SPI slave driver-in-progress
This commit is contained in:
parent
1fbd5351ff
commit
ec68d00ed8
@ -788,6 +788,10 @@ static void spi_bind(FAR struct spi_sctrlr_s *sctrlr,
|
|||||||
spi_setbits(spics, spidev, nbits);
|
spi_setbits(spics, spidev, nbits);
|
||||||
|
|
||||||
#warning Missing Logic
|
#warning Missing Logic
|
||||||
|
|
||||||
|
/* Enable SPI interrupts (already enabled at the NVIC) */
|
||||||
|
#warning Missing Logic
|
||||||
|
|
||||||
spi_semgive(spidev);
|
spi_semgive(spidev);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -822,10 +826,16 @@ static void spi_unbind(FAR struct spi_sctrlr_s *sctrlr)
|
|||||||
|
|
||||||
spi_semtake(spidev);
|
spi_semtake(spidev);
|
||||||
|
|
||||||
|
/* Disable SPI interrupts (still enabled at the NVIC) */
|
||||||
|
#warning Missing Logic
|
||||||
|
|
||||||
/* Unbind the SPI slave interface */
|
/* Unbind the SPI slave interface */
|
||||||
|
|
||||||
/* Reset and disabled the SPI device */
|
spics->sdev = NULL;
|
||||||
|
|
||||||
|
/* Reset and disable the SPI device */
|
||||||
#warning Missing Logic
|
#warning Missing Logic
|
||||||
|
|
||||||
spi_semgive(spidev);
|
spi_semgive(spidev);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1000,7 +1010,7 @@ static void spi_qflush(FAR struct spi_sctrlr_s *sctrlr)
|
|||||||
*
|
*
|
||||||
* Input Parameter:
|
* Input Parameter:
|
||||||
* port - Chip select number identifying the "logical" SPI port. Includes
|
* port - Chip select number identifying the "logical" SPI port. Includes
|
||||||
* incoded port and chip select inforomation.
|
* encoded port and chip select information.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* Valid SPI device structure reference on success; a NULL on failure
|
* Valid SPI device structure reference on success; a NULL on failure
|
||||||
|
Loading…
Reference in New Issue
Block a user