From 6f0b8a5b7854c388d3480e40152dec39c90030d7 Mon Sep 17 00:00:00 2001 From: LeeChunHei Date: Mon, 22 Feb 2021 22:26:00 +0800 Subject: [PATCH] change the wrong syntax --- bsp/imxrt/libraries/drivers/drv_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/imxrt/libraries/drivers/drv_spi.c b/bsp/imxrt/libraries/drivers/drv_spi.c index 4f042dc93f..04c9e94020 100644 --- a/bsp/imxrt/libraries/drivers/drv_spi.c +++ b/bsp/imxrt/libraries/drivers/drv_spi.c @@ -347,7 +347,7 @@ 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) +#ifdef BSP_USING_BLOCKING_SPI status = LPSPI_MasterTransferBlocking(spi->base, &transfer); #else status = LPSPI_MasterTransferNonBlocking(spi->base, &spi->spi_normal, &transfer);