-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: disk: add fakefat disk driver
Fakefat disk emulates a disk formatted with the FAT file system. The driver supports FAT16 and FAT32 emulation and multiple instances. A backend can register at least 15 emulated files on a disk instance. The file structure contain read and write callbacks that are called when the filesystem driver accesses the volume. A backend can have multiple files with read callbacks, but usually only one or zero with write callbacks. Fakefat disk can be used for testing or to map services such as firmware updates to a file on the emulated disk. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
- Loading branch information
1 parent
8c705ca
commit a93c867
Showing
7 changed files
with
1,121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config DISK_DRIVER_FFAT | ||
bool "Fake FAT Disk" | ||
default y if DT_HAS_ZEPHYR_FFAT_DISK_ENABLED | ||
help | ||
Fake FAT disk emulates a disk formatted with the FAT file system | ||
and provides very limited functionality. It can be used for testing | ||
or to map services such as firmware updates to a file on | ||
the emulated disk. | ||
|
||
if DISK_DRIVER_FFAT | ||
|
||
module = FFATDISK | ||
module-str = ffatdisk | ||
source "subsys/logging/Kconfig.template.log_config" | ||
|
||
endif # DISK_DRIVER_FFAT |
Oops, something went wrong.