mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
mtd.h needs forward reference to struct spi_dev_s
This commit is contained in:
@@ -112,7 +112,7 @@ struct mtd_dev_s
|
|||||||
/* Erase the specified erase blocks (units are erase blocks). Semantic
|
/* Erase the specified erase blocks (units are erase blocks). Semantic
|
||||||
* Clarification: Here, we are not referring to the erase block according
|
* Clarification: Here, we are not referring to the erase block according
|
||||||
* to the FLASH data sheet. Rather, we are referring to the *smallest*
|
* to the FLASH data sheet. Rather, we are referring to the *smallest*
|
||||||
* eraseable part of the FLASH which may have a name like a page or sector
|
* erasable part of the FLASH which may have a name like a page or sector
|
||||||
* or subsector.
|
* or subsector.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -219,6 +219,7 @@ FAR struct mtd_dev_s *mtd_partition(FAR struct mtd_dev_s *mtd,
|
|||||||
* Sets the name of the specified partition.
|
* Sets the name of the specified partition.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_MTD_PARTITION_NAMES
|
#ifdef CONFIG_MTD_PARTITION_NAMES
|
||||||
int mtd_setpartitionname(FAR struct mtd_dev_s *mtd, FAR const char *name);
|
int mtd_setpartitionname(FAR struct mtd_dev_s *mtd, FAR const char *name);
|
||||||
#endif
|
#endif
|
||||||
@@ -301,6 +302,7 @@ FAR struct mtd_dev_s *s512_initialize(FAR struct mtd_dev_s *mtd);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
struct spi_dev_s; /* Forward reference */
|
||||||
FAR struct mtd_dev_s *at45db_initialize(FAR struct spi_dev_s *dev);
|
FAR struct mtd_dev_s *at45db_initialize(FAR struct spi_dev_s *dev);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user