Go to the documentation of this file.
24 #ifndef FS_LITTLEFS2_FS_H
25 #define FS_LITTLEFS2_FS_H
41 #ifndef CONFIG_LITTLEFS2_LOOKAHEAD_SIZE
43 #define CONFIG_LITTLEFS2_LOOKAHEAD_SIZE (16)
46 #ifndef CONFIG_LITTLEFS2_FILE_BUFFER_SIZE
50 #define CONFIG_LITTLEFS2_FILE_BUFFER_SIZE (0)
53 #ifndef CONFIG_LITTLEFS2_READ_BUFFER_SIZE
57 #define CONFIG_LITTLEFS2_READ_BUFFER_SIZE (0)
60 #ifndef CONFIG_LITTLEFS2_PROG_BUFFER_SIZE
63 #define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE (0)
66 #ifndef CONFIG_LITTLEFS2_CACHE_PAGES
69 #define CONFIG_LITTLEFS2_CACHE_PAGES (1)
72 #ifndef CONFIG_LITTLEFS2_BLOCK_CYCLES
75 #define CONFIG_LITTLEFS2_BLOCK_CYCLES (512)
84 struct lfs_config config;
91 #if CONFIG_LITTLEFS2_FILE_BUFFER_SIZE || DOXYGEN
96 #if CONFIG_LITTLEFS2_READ_BUFFER_SIZE || DOXYGEN
101 #if CONFIG_LITTLEFS2_PROG_BUFFER_SIZE || DOXYGEN
#define CONFIG_LITTLEFS2_FILE_BUFFER_SIZE
File buffer size, if 0, dynamic allocation is used.
const vfs_file_system_t littlefs2_file_system
The littlefs vfs driver.
mtd_dev_t * dev
mtd device to use
uint32_t base_addr
first block number to use, total number of block is defined in config.
littlefs descriptor for vfs integration
#define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE
Prog buffer size, if 0, dynamic allocation is used.
lfs_t fs
littlefs descriptor
#define CONFIG_LITTLEFS2_READ_BUFFER_SIZE
Read buffer size, if 0, dynamic allocation is used.
#define CONFIG_LITTLEFS2_LOOKAHEAD_SIZE
Default lookahead size.
Mutex for thread synchronization.
VFS layer API declarations.