From 735f0c33d6d107c2b1c4d883b145f8299792af34 Mon Sep 17 00:00:00 2001 From: guojiawei314 Date: Mon, 25 Jan 2021 23:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8STM32=E7=9A=84qspi?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E4=B8=AD=EF=BC=8C=E8=8B=A5=E5=AE=9A=E4=B9=89?= =?UTF-8?q?BSP=5FQSPI=5FUSING=5FSOFTCS=E5=BC=80=E5=90=AF=E8=BD=AF=E4=BB=B6?= =?UTF-8?q?cs=E5=BC=95=E8=84=9A=E6=8E=A7=E5=88=B6=EF=BC=8C=E5=88=99?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BD=93=E6=88=90=E5=91=98pin=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=86=99=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/libraries/HAL_Drivers/drv_qspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c b/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c index 81413d863a..07ce42681a 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c @@ -220,7 +220,7 @@ static rt_uint32_t qspixfer(struct rt_spi_device *device, struct rt_spi_message #ifdef BSP_QSPI_USING_SOFTCS if (message->cs_take) { - rt_pin_write(cs->pin, 0); + rt_pin_write(cs->Pin, 0); } #endif @@ -272,7 +272,7 @@ __exit: #ifdef BSP_QSPI_USING_SOFTCS if (message->cs_release) { - rt_pin_write(cs->pin, 1); + rt_pin_write(cs->Pin, 1); } #endif return len;