Skip to content

Updating file system thread safe ability #674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/reference/api/storage/FATFileSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ The first step to using the FAT file system is formatting storage with FAT. You

The FAT file system supports external flash; however, it must allocate a full erase block for internal operations, which can become large for some forms of flash. If RAM consumption becomes a problem, we suggest switching to LittleFileSystem. The Mbed OS file system APIs make switching file systems a straightforward task. One common strategy is to use the FAT file system for debugging and switch to LittleFileSystem when the application becomes stable.

The FAT file system is thread safe. Although the FAT file system is built on the ChanFS project, synchronizing in the C++ layer allows you to use the C++ RTOS APIs directly.

### Usage

Instantiate the `FATFileSystem` class with a block device and file path.
Expand Down
2 changes: 2 additions & 0 deletions docs/reference/api/storage/LittleFileSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ We built this for microcontrollers with external flash storage. In this context,

For storage on an SD card that is accessible from a PC, use the FATFileSystem due to its portability.

LittleFileSystem is thread safe.

### Usage

Instantiate the `LittleFileSystem` class with a block device and file path.
Expand Down