24#ifndef FS_LITTLEFS2_FS_H
25#define FS_LITTLEFS2_FS_H
43#ifndef CONFIG_LITTLEFS2_LOOKAHEAD_SIZE
45#define CONFIG_LITTLEFS2_LOOKAHEAD_SIZE (16)
48#ifndef CONFIG_LITTLEFS2_FILE_BUFFER_SIZE
52#define CONFIG_LITTLEFS2_FILE_BUFFER_SIZE (0)
55#ifndef CONFIG_LITTLEFS2_READ_BUFFER_SIZE
59#define CONFIG_LITTLEFS2_READ_BUFFER_SIZE (0)
62#ifndef CONFIG_LITTLEFS2_PROG_BUFFER_SIZE
65#define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE (0)
68#ifndef CONFIG_LITTLEFS2_CACHE_PAGES
71#define CONFIG_LITTLEFS2_CACHE_PAGES (1)
74#ifndef CONFIG_LITTLEFS2_BLOCK_CYCLES
77#define CONFIG_LITTLEFS2_BLOCK_CYCLES (512)
80#ifndef CONFIG_LITTLEFS2_MIN_BLOCK_SIZE_EXP
84#define CONFIG_LITTLEFS2_MIN_BLOCK_SIZE_EXP (-1)
93 struct lfs_config config;
100#if CONFIG_LITTLEFS2_FILE_BUFFER_SIZE || DOXYGEN
105#if CONFIG_LITTLEFS2_READ_BUFFER_SIZE || DOXYGEN
110#if CONFIG_LITTLEFS2_PROG_BUFFER_SIZE || DOXYGEN
#define CONFIG_LITTLEFS2_READ_BUFFER_SIZE
Read buffer size, if 0, dynamic allocation is used.
#define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE
Prog buffer size, if 0, dynamic allocation is used.
#define CONFIG_LITTLEFS2_LOOKAHEAD_SIZE
Default lookahead size.
#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.
Mutex for thread synchronization.
littlefs descriptor for vfs integration
mtd_dev_t * dev
mtd device to use
uint16_t sectors_per_block
number of sectors per block
lfs_t fs
littlefs descriptor
uint32_t base_addr
first block number to use, total number of block is defined in config.