adding option for using blocking spi transfer
This commit is contained in:
parent
7e5034c67d
commit
a40bf3b11d
|
@ -347,7 +347,11 @@ static rt_uint32_t spixfer(struct rt_spi_device *device, struct rt_spi_message *
|
|||
|
||||
if(RT_FALSE == spi->dma_flag)
|
||||
{
|
||||
#ifdef(BSP_USING_BLOCKING_SPI)
|
||||
status = LPSPI_MasterTransferBlocking(spi->base, &transfer);
|
||||
#else
|
||||
status = LPSPI_MasterTransferNonBlocking(spi->base, &spi->spi_normal, &transfer);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue