Skip to content
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

drivers: disk: add fakefat disk driver #62286

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Oct 21, 2024

  1. 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>
    jfischer-no committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    fa0bae8 View commit details
    Browse the repository at this point in the history
  2. tests: drivers: disk: add test for the FFAT disk

    Add FAT16 and FAT32 tests for the FFAT disk using ELM FAT file system
    support.
    
    Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
    jfischer-no committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    f1c257f View commit details
    Browse the repository at this point in the history
  3. samples: usb: add ffatdisk sample

    This sample has two volumes, FAT16 and FAT32, exported via
    new USB device MSC support.
    
    Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
    jfischer-no committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    af3be53 View commit details
    Browse the repository at this point in the history