diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-06 00:23:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-06 00:23:42 +0000 |
commit | f3c07c64b98f0d851face73d13507d8d0920fd42 (patch) | |
tree | af8115ca324300433ebae4b9d6ceeac33da7d58b /nuttx | |
parent | 9bb66d29206b075ed5e61e9c51bacdcc7758432f (diff) | |
download | px4-nuttx-f3c07c64b98f0d851face73d13507d8d0920fd42.tar.gz px4-nuttx-f3c07c64b98f0d851face73d13507d8d0920fd42.tar.bz2 px4-nuttx-f3c07c64b98f0d851face73d13507d8d0920fd42.zip |
Need to export FTL interface in mtd.h
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2308 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/include/nuttx/mtd.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/mtd.h b/nuttx/include/nuttx/mtd.h index 2e1b137ac..f15bfe373 100644 --- a/nuttx/include/nuttx/mtd.h +++ b/nuttx/include/nuttx/mtd.h @@ -130,7 +130,25 @@ extern "C" { * Public Function Prototypes ****************************************************************************/ -/* MTD drivers available in drivers/mtd */ +/**************************************************************************** + * Name: ftl_initialize + * + * Description: + * Initialize to provide a block driver wrapper around an MTD interface + * + ****************************************************************************/ + +EXTERN int ftl_initialize(int minor, ubyte *buffer, FAR struct mtd_dev_s *mtd); + +/************************************************************************************ + * Name: m25p_initialize + * + * Description: + * Create an initialize 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). + * + ************************************************************************************/ EXTERN FAR struct mtd_dev_s *m25p_initialize(FAR struct spi_dev_s *dev); |