添加 w25 mtd设备驱动

This commit is contained in:
urey@ez-iot.com
2017-02-13 19:37:53 +08:00
parent 0a60415e75
commit 564e7aefce
4 changed files with 376 additions and 1 deletions

View File

@@ -36,4 +36,14 @@ struct spi_flash_device
typedef struct spi_flash_device *rt_spi_flash_device_t;
#ifdef RT_USING_MTD_NOR
struct spi_flash_mtd
{
struct rt_mtd_nor_device mtd_device;
struct rt_spi_device * rt_spi_device;
struct rt_mutex lock;
void * user_data;
};
#endif
#endif