From 735f0c33d6d107c2b1c4d883b145f8299792af34 Mon Sep 17 00:00:00 2001 From: guojiawei314 Date: Mon, 25 Jan 2021 23:25:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8STM32=E7=9A=84qs?= =?UTF-8?q?pi=E9=A9=B1=E5=8A=A8=E4=B8=AD=EF=BC=8C=E8=8B=A5=E5=AE=9A?= =?UTF-8?q?=E4=B9=89BSP=5FQSPI=5FUSING=5FSOFTCS=E5=BC=80=E5=90=AF=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6cs=E5=BC=95=E8=84=9A=E6=8E=A7=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E7=BB=93=E6=9E=84=E4=BD=93=E6=88=90=E5=91=98pin?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=94=99=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; From ffc3da61fe91226afabce3c246a447472d6882dd Mon Sep 17 00:00:00 2001 From: guojiawei314 Date: Thu, 28 Jan 2021 21:06:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8STM32=E7=9A=84qs?= =?UTF-8?q?pi=E9=A9=B1=E5=8A=A8=E4=B8=AD=EF=BC=8C=E8=8B=A5=E5=AE=9A?= =?UTF-8?q?=E4=B9=89BSP=5FQSPI=5FUSING=5FSOFTCS=E5=BC=80=E5=90=AF=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6cs=E5=BC=95=E8=84=9A=E6=8E=A7=E5=88=B6=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E7=BB=93=E6=9E=84=E4=BD=93=E6=88=90=E5=91=98pin?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E3=80=82=E7=BB=9F=E4=B8=80=E4=B8=BApin?= =?UTF-8?q?=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c b/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c index 07ce42681a..b3090ec6a1 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_qspi.c @@ -22,7 +22,7 @@ struct stm32_hw_spi_cs { - uint16_t Pin; + uint16_t pin; }; struct stm32_qspi_bus @@ -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;