mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Need a prototype for progmem_initialize in include/nuttx/mtd/mtd.h
This commit is contained in:
+1
-1
Submodule configs updated: 4d23ce39bf...0282533628
@@ -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).
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
+16
-9
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user