summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorredoc <[email protected]>2021-01-07 16:28:54 +0800
committerGitHub <[email protected]>2021-01-07 16:28:54 +0800
commit3ac86d08cbcd3e603850ab6ac6058f7fa6287b3d (patch)
tree0870595b3bfac089c9847e547fef7537f535a21d
parent84c772ea4075a229fd9f0aa042b925435306788a (diff)
解决添加RT_USING_MTD_NOR编译报错的问题。
-rw-r--r--components/drivers/spi/spi_flash.h7
1 files changed, 7 insertions, 0 deletions
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 <rtdevice.h>
+
+#ifdef RT_USING_MTD_NOR
+#include "drivers/mtd_nor.h"
+#endif
+
struct spi_flash_device
{
struct rt_device flash_device;