39 #ifndef CONFIG_LITTLEFS2_LOOKAHEAD_SIZE
41 #define CONFIG_LITTLEFS2_LOOKAHEAD_SIZE (16)
44 #ifndef CONFIG_LITTLEFS2_FILE_BUFFER_SIZE
48 #define CONFIG_LITTLEFS2_FILE_BUFFER_SIZE (0)
51 #ifndef CONFIG_LITTLEFS2_READ_BUFFER_SIZE
55 #define CONFIG_LITTLEFS2_READ_BUFFER_SIZE (0)
58 #ifndef CONFIG_LITTLEFS2_PROG_BUFFER_SIZE
61 #define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE (0)
64 #ifndef CONFIG_LITTLEFS2_CACHE_PAGES
67 #define CONFIG_LITTLEFS2_CACHE_PAGES (1)
70 #ifndef CONFIG_LITTLEFS2_BLOCK_CYCLES
73 #define CONFIG_LITTLEFS2_BLOCK_CYCLES (512)
76 #ifndef CONFIG_LITTLEFS2_MIN_BLOCK_SIZE_EXP
80 #define CONFIG_LITTLEFS2_MIN_BLOCK_SIZE_EXP (-1)
89 struct lfs_config config;
96 #if CONFIG_LITTLEFS2_FILE_BUFFER_SIZE || DOXYGEN
101 #if CONFIG_LITTLEFS2_READ_BUFFER_SIZE || DOXYGEN
106 #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
uint32_t base_addr
first block number to use, total number of block is defined in config.