解决添加RT_USING_MTD_NOR编译报错的问题。

This commit is contained in:
redoc 2021-01-07 16:28:54 +08:00 committed by GitHub
parent 84c772ea40
commit 3ac86d08cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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;