From 3ac86d08cbcd3e603850ab6ac6058f7fa6287b3d Mon Sep 17 00:00:00 2001 From: redoc <619675912@qq.com> Date: Thu, 7 Jan 2021 16:28:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B7=BB=E5=8A=A0RT=5FUS?= =?UTF-8?q?ING=5FMTD=5FNOR=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/spi/spi_flash.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/drivers/spi/spi_flash.h b/components/drivers/spi/spi_flash.h index 30db32474a..19adefaba6 100644 --- a/components/drivers/spi/spi_flash.h +++ b/components/drivers/spi/spi_flash.h @@ -6,11 +6,18 @@ * 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 + +#ifdef RT_USING_MTD_NOR +#include "drivers/mtd_nor.h" +#endif + struct spi_flash_device { struct rt_device flash_device; From d0743d6090de62ec21f1db976f88b5a94af1bca9 Mon Sep 17 00:00:00 2001 From: redoc <619675912@qq.com> Date: Fri, 22 Jan 2021 13:44:15 +0800 Subject: [PATCH 2/3] =?UTF-8?q?1=E3=80=81=E3=80=90=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E3=80=91=E5=A4=9A=E4=BD=99=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/spi/spi_flash.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/drivers/spi/spi_flash.h b/components/drivers/spi/spi_flash.h index 19adefaba6..eed65e2f38 100644 --- a/components/drivers/spi/spi_flash.h +++ b/components/drivers/spi/spi_flash.h @@ -14,9 +14,6 @@ #include -#ifdef RT_USING_MTD_NOR -#include "drivers/mtd_nor.h" -#endif struct spi_flash_device { From a04bb0be3ad92256f47ddc747c6e09e2eec094db Mon Sep 17 00:00:00 2001 From: redoc <619675912@qq.com> Date: Fri, 22 Jan 2021 13:45:41 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/spi/spi_flash.h | 1 - 1 file changed, 1 deletion(-) diff --git a/components/drivers/spi/spi_flash.h b/components/drivers/spi/spi_flash.h index eed65e2f38..82b1ab2ecd 100644 --- a/components/drivers/spi/spi_flash.h +++ b/components/drivers/spi/spi_flash.h @@ -14,7 +14,6 @@ #include - struct spi_flash_device { struct rt_device flash_device;