Skip to content

Commit 8831151

Browse files
author
Amanda Butler
authored
Merge pull request #674 from theamirocohen/FS_thread_safe
Updating file system thread safe ability
2 parents 295302e + 2a29ff4 commit 8831151

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/reference/api/storage/FATFileSystem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ The first step to using the FAT file system is formatting storage with FAT. You
2020

2121
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.
2222

23+
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.
24+
2325
### Usage
2426

2527
Instantiate the `FATFileSystem` class with a block device and file path.

docs/reference/api/storage/LittleFileSystem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ We built this for microcontrollers with external flash storage. In this context,
2929

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

32+
LittleFileSystem is thread safe.
33+
3234
### Usage
3335

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

0 commit comments

Comments
 (0)