This closes #158. Merge remote-tracking branch 'utzig/multi-disk' into develop
* utzig/multi-disk: Update for compatibility with multiple FS Remove unused include Fix pointer int size handling hal_flash doesn't depend on disk yet Remove FAT dependency on MMC Add disk interface for nffs Move disk path routines to disk module Use fops container Add fops container for nicer casting Revert stm32f4-discovery LED pin Add nffs compat with multiple fs Revert hal_flash compatibility with disk/disk Accept paths without disk when single fs registered Add disk/disk as fs dep Add fops return func for single fs registered FAT support for working with multi-disk interface Fix compilation Save multi-disk support WIP Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/56ae794c Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/56ae794c Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/56ae794c Branch: refs/heads/develop Commit: 56ae794c2088cf8308ad44a973a61b94b08a495f Parents: f35d5d1 4326070 Author: Christopher Collins <[email protected]> Authored: Thu Jan 19 09:35:19 2017 -0800 Committer: Christopher Collins <[email protected]> Committed: Thu Jan 19 09:35:19 2017 -0800 ---------------------------------------------------------------------- fs/disk/include/disk/disk.h | 56 +++++++++ fs/disk/pkg.yml | 27 ++++ fs/disk/src/disk.c | 151 ++++++++++++++++++++++ fs/fatfs/src/mynewt_glue.c | 227 ++++++++++++++++++++++++++++------ fs/fs/include/fs/fs_if.h | 37 +++++- fs/fs/pkg.yml | 3 + fs/fs/src/fs_dirent.c | 30 ++++- fs/fs/src/fs_file.c | 180 +++++++++++++++++++++++++-- fs/fs/src/fs_mkdir.c | 8 +- fs/fs/src/fs_mount.c | 59 ++++++++- fs/fs/src/fs_priv.h | 3 +- fs/nffs/src/nffs.c | 19 ++- fs/nffs/src/nffs_dir.c | 5 + fs/nffs/src/nffs_file.c | 4 + fs/nffs/src/nffs_priv.h | 3 + hw/drivers/mmc/include/mmc/mmc.h | 13 +- hw/drivers/mmc/src/mmc.c | 25 +++- hw/hal/include/hal/hal_flash.h | 2 +- hw/hal/src/hal_flash.c | 6 + 19 files changed, 787 insertions(+), 71 deletions(-) ----------------------------------------------------------------------
