Filesystem: Integrate filesystem classes with common mbed.h entry point

pull/3773/head
Christopher Haster 2017-02-13 16:40:18 -06:00
parent eea5c9f08a
commit c6b1fcbfa5
3 changed files with 49 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,6 @@
{
"name": "filesystem",
"config": {
"present": 1
}
}

4
mbed.h
View File

@ -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"