diff --git a/configs b/configs index 4d23ce39bf6..02825336289 160000 --- a/configs +++ b/configs @@ -1 +1 @@ -Subproject commit 4d23ce39bf6bbf3ca0161ff6247fc9fe1610890f +Subproject commit 028253362897e3ca895cf772dc817423842e8915 diff --git a/drivers/mtd/mtd_progmem.c b/drivers/mtd/mtd_progmem.c index 7a60c8e1c81..6fde9e6975e 100644 --- a/drivers/mtd/mtd_progmem.c +++ b/drivers/mtd/mtd_progmem.c @@ -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). * ****************************************************************************/ diff --git a/include/nuttx/mtd/mtd.h b/include/nuttx/mtd/mtd.h index 7f4e8f83404..fca8cac94a7 100644 --- a/include/nuttx/mtd/mtd.h +++ b/include/nuttx/mtd/mtd.h @@ -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 *