浏览代码

[stm32][stm32f103-100ask-pro] fix missing drv_gpio.h in spi_flash_init.c

Meco Man 1 年之前
父节点
当前提交
b3e073864f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      bsp/stm32/stm32f103-100ask-pro/board/ports/spi_flash_init.c

+ 2 - 2
bsp/stm32/stm32f103-100ask-pro/board/ports/spi_flash_init.c

@@ -11,7 +11,8 @@
 #include <rtthread.h>
 #include <rtthread.h>
 #include "spi_flash.h"
 #include "spi_flash.h"
 #include "spi_flash_sfud.h"
 #include "spi_flash_sfud.h"
-#include "drv_spi.h"
+#include <drv_spi.h>
+#include <drv_gpio.h>
 
 
 #if defined(BSP_USING_SPI_FLASH)
 #if defined(BSP_USING_SPI_FLASH)
 static int rt_hw_spi_flash_init(void)
 static int rt_hw_spi_flash_init(void)
@@ -28,4 +29,3 @@ static int rt_hw_spi_flash_init(void)
 }
 }
 INIT_COMPONENT_EXPORT(rt_hw_spi_flash_init);
 INIT_COMPONENT_EXPORT(rt_hw_spi_flash_init);
 #endif
 #endif
-