From c6b1fcbfa59c92f1fd74a884cc0457026339f970 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 13 Feb 2017 16:40:18 -0600 Subject: [PATCH] Filesystem: Integrate filesystem classes with common mbed.h entry point --- features/filesystem/mbed_filesystem.h | 39 +++++++++++++++++++++++++++ features/filesystem/mbed_lib.json | 6 +++++ mbed.h | 4 +++ 3 files changed, 49 insertions(+) create mode 100644 features/filesystem/mbed_filesystem.h create mode 100644 features/filesystem/mbed_lib.json diff --git a/features/filesystem/mbed_filesystem.h b/features/filesystem/mbed_filesystem.h new file mode 100644 index 0000000000..6ec625f6d6 --- /dev/null +++ b/features/filesystem/mbed_filesystem.h @@ -0,0 +1,39 @@ +/* filesystem + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef MBED_FILESYSTEM_API_H +#define MBED_FILESYSTEM_API_H +/** \addtogroup filesystem */ +/** @{*/ + + +// Standard types +#include "platform/platform.h" + +// FileSystem classes +#include "filesystem/FileSystem.h" +#include "filesystem/File.h" +#include "filesystem/Dir.h" + +// BlockDevice classes +#include "bd/BlockDevice.h" +#include "bd/BlockDevice.h" +#include "bd/ChainingBlockDevice.h" +#include "bd/SlicingBlockDevice.h" +#include "bd/HeapBlockDevice.h" + + +/** @}*/ +#endif diff --git a/features/filesystem/mbed_lib.json b/features/filesystem/mbed_lib.json new file mode 100644 index 0000000000..e53bc85fe2 --- /dev/null +++ b/features/filesystem/mbed_lib.json @@ -0,0 +1,6 @@ +{ + "name": "filesystem", + "config": { + "present": 1 + } +} diff --git a/mbed.h b/mbed.h index b4092fb84f..4ec380812a 100644 --- a/mbed.h +++ b/mbed.h @@ -47,6 +47,10 @@ #include "events/mbed_events.h" #endif +#if MBED_CONF_FILESYSTEM_PRESENT +#include "filesystem/mbed_filesystem.h" +#endif + #include "platform/mbed_toolchain.h" #include "platform/platform.h" #include "platform/mbed_application.h"