Need a prototype for progmem_initialize in include/nuttx/mtd/mtd.h

This commit is contained in:
Gregory Nutt 2015-11-12 16:03:24 -06:00
parent d54a39832a
commit fdb17620a0
3 changed files with 23 additions and 14 deletions

@ -1 +1 @@
Subproject commit 4d23ce39bf6bbf3ca0161ff6247fc9fe1610890f
Subproject commit 028253362897e3ca895cf772dc817423842e8915

View File

@ -356,10 +356,12 @@ static int progmem_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
* Name: progmem_initialize
*
* Description:
* Create and initialize an MTD device instance. MTD devices are not
* registered in the file system, but are created as instances that can
* be bound to other functions (such as a block or character driver front
* end).
* Create and initialize an MTD device instance that can be used to access
* on-chip program memory.
*
* MTD devices are not registered in the file system, but are created as
* instances that can be bound to other functions (such as a block or
* character driver front end).
*
****************************************************************************/

View File

@ -336,24 +336,31 @@ int smart_initialize(int minor, FAR struct mtd_dev_s *mtd,
* functions (such as a block or character driver front end).
*/
/************************************************************************************
/****************************************************************************
* Name: s512_initialize
*
* Description:
* Create an initialized MTD device instance. This MTD driver contains another
* MTD driver and converts a larger sector size to a standard 512 byte sector
* size.
* Create an initialized MTD device instance. This MTD driver contains
* another MTD driver and converts a larger sector size to a standard 512
* byte sector size.
*
* MTD devices are not registered in the file system, but are created as instances
* that can be bound to other functions (such as a block or character driver front
* end).
*
************************************************************************************/
****************************************************************************/
#ifdef CONFIG_MTD_SECT512
FAR struct mtd_dev_s *s512_initialize(FAR struct mtd_dev_s *mtd);
#endif
/****************************************************************************
* Name: progmem_initialize
*
* Description:
* Create and initialize an MTD device instance that can be used to access
* on-chip program memory.
*
****************************************************************************/
FAR struct mtd_dev_s *progmem_initialize(void);
/****************************************************************************
* Name: at45db_initialize
*