浏览代码

Merge pull request #4226 from redocCheng/master

解决添加RT_USING_MTD_NOR编译报错的问题
Bernard Xiong 4 年之前
父节点
当前提交
b36aeb46a6
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      components/drivers/spi/spi_flash.h

+ 3 - 0
components/drivers/spi/spi_flash.h

@@ -6,11 +6,14 @@
  * Change Logs:
  * Date           Author       Notes
  * 2016/5/20      bernard      the first version
+ * 2020/1/7       redoc        add include
  */
 
 #ifndef SPI_FLASH_H__
 #define SPI_FLASH_H__
 
+#include <rtdevice.h>
+
 struct spi_flash_device
 {
     struct rt_device                flash_device;