mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
608d06e47a
* fix(fs): replace all tab to space and other minor style fix Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix(extra/fs): rename lv_fs_libs.h to lv_fsdrv.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix(extra/fs/stdio): fix the wrong directory path in fs_dir_open and remove the duplicated or platform specific code Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix(extra/fs/posix): implement in fs_dir_read and fix the wrong directory path in fs_dir_open Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> * fix(extra/fs/posix): return file handle directly to avoid malloc Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
820 B
820 B
.. include:: /header.rst
:github_url: |github_link_base|/libs/fsdrv.md
File System Interfaces
LVGL has a File system module to provides an abstraction layer for various file system drivers.
LVG has build in support for
- FATFS
- STDIO (Linux and Windows using C standard function .e.g fopen, fread)
- POSIX (Linux and Windows using POSIX function .e.g open, read)
You still need to provide the drivers and libraries, this extensions provide only the bridge between FATFS, STDIO, POSIX and LVGL.
Usage
In lv_conf.h
set a driver letter for one or more LV_FS_USE_...
define(s). After that you can access files using that driver letter. Setting '\0'
will disable use of that interface.