Skip to content

Commit be5e969

Browse files
author
Amanda Butler
authored
Merge pull request #80 from geky/bd-mbr
Add blurb about the MBR and other utility block devices
2 parents 3d69043 + 4ae351f commit be5e969

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/APIs/storage/block_device.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ Block devices indicate their block sizes through the `get_read_size`, `get_progr
2828

2929
As a rule of thumb, you can use the erase size for applications that use a single block size (for example, the FAT file system).
3030

31+
## Utility block devices
32+
33+
mbed OS contains several utility block devices to give you better control over the allocation of storage.
34+
35+
- With the [slicing block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/SlicingBlockDevice.h), you can partition storage into smaller block devices that you can use independentally.
36+
- With the [chaining block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/ChainingBlockDevice.h), you can chain multiple block devices together and extend the usable amount of storage.
37+
- mbed OS comes with support for storing partitions on disk with a [Master Boot Record (MBR)](https://en.wikipedia.org/wiki/Master_boot_record). The [MBR block device](https://github.com/ARMmbed/mbed-os/blob/master/features/filesystem/bd/MBRBlockDevice.h) provides this functionality and supports creating partitions at runtime or using preformatted partitions configured separately from outside the application.
38+
3139
## Example block devices
3240

3341
- [SDBlockDevice](https://github.com/armmbed/sd-driver) - Block device for SD cards.

0 commit comments

Comments
 (0)