You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Storage support is split between filesystems and their underlying block device support. The [storage API page](/docs/v5.6/reference/storage-overview.html) has more information on existing APIs in Mbed OS for both interfaces.
3
+
Storage support is split between file systems and their underlying block device support. The [storage API page](/docs/v5.6/reference/storage-overview.html) has more information on existing APIs in Mbed OS for both interfaces.
4
4
5
5
#### Block Device
6
6
7
-
Adding a block device implementation is required for backing filesystems on new hardware. You can extend the [BlockDevice](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/HeapBlockDevice.h) class to provide support for unsupported storage.
7
+
Backing file systems on new hardware requires adding a block device implementation. You can extend the [BlockDevice](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/HeapBlockDevice.h) class to provide support for unsupported storage.
8
8
9
-
If you want to port a new filesystem to Mbed OS on existing storage options you can skip to the following section.
9
+
If you want to port a new file system to Mbed OS on existing storage options, you can skip to the following section.
10
10
11
-
#### Filesystems
11
+
#### File systems
12
12
13
-
To implement a new file system in Mbed OS, an implementor needs to provide the abstract functions in the file system interface. The [FAT file system](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/fat/FATFileSystem.cpp) provides an excellent example, you can find tests of the POSIX API here.
13
+
To implement a new file system in Mbed OS, an implementor needs to provide the abstract functions in the file system interface. The [FAT file system](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/fat/FATFileSystem.cpp) provides an excellent example. You can find tests of the POSIX API here.
14
14
15
15
A minimal file system needs to provide the following functions:
16
16
@@ -20,8 +20,8 @@ A minimal file system needs to provide the following functions:
20
20
-`file_write`.
21
21
-`file_seek`.
22
22
23
-
Here is the full API that a filesystem may implement:
23
+
Here is the full API that a file system may implement:
Filesystems must be backed by a block device in Mbed OS. If you are using supported hardware then you can continue, otherwise view the block device porting section above.
27
+
A block device must back file systems in Mbed OS. If you are using supported hardware, then you can continue. Otherwise, view the block device porting section above.
0 commit comments