Explorar o código

修复在STM32的qspi驱动中,若定义BSP_QSPI_USING_SOFTCS开启软件cs引脚控制,则结构体成员pin大小写不一致的错误。

guojiawei314 %!s(int64=4) %!d(string=hai) anos
pai
achega
735f0c33d6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bsp/stm32/libraries/HAL_Drivers/drv_qspi.c

+ 2 - 2
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;