提交 a40bf3b1 编写于 作者: L LeeChunHei

adding option for using blocking spi transfer

上级 7e5034c6
......@@ -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
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册