22#ifndef FS_LITTLEFS_FS_H
23#define FS_LITTLEFS_FS_H
41#ifndef LITTLEFS_LOOKAHEAD_SIZE
43#define LITTLEFS_LOOKAHEAD_SIZE (128)
46#ifndef LITTLEFS_FILE_BUFFER_SIZE
50#define LITTLEFS_FILE_BUFFER_SIZE (0)
53#ifndef LITTLEFS_READ_BUFFER_SIZE
56#define LITTLEFS_READ_BUFFER_SIZE (0)
59#ifndef LITTLEFS_PROG_BUFFER_SIZE
62#define LITTLEFS_PROG_BUFFER_SIZE (0)
65#ifndef LITTLEFS_MIN_BLOCK_SIZE_EXP
69#define LITTLEFS_MIN_BLOCK_SIZE_EXP (-1)
78 struct lfs_config config;
85#if LITTLEFS_FILE_BUFFER_SIZE || DOXYGEN
89#if LITTLEFS_READ_BUFFER_SIZE || DOXYGEN
93#if LITTLEFS_PROG_BUFFER_SIZE || DOXYGEN
#define LITTLEFS_LOOKAHEAD_SIZE
Default lookahead size.
#define LITTLEFS_FILE_BUFFER_SIZE
File buffer size, if 0, dynamic allocation is used.
const vfs_file_system_t littlefs_file_system
The littlefs vfs driver.
#define LITTLEFS_READ_BUFFER_SIZE
Read buffer size, if 0, dynamic allocation is used.
#define LITTLEFS_PROG_BUFFER_SIZE
Prog buffer size, if 0, dynamic allocation is used.
Mutex for thread synchronization.
littlefs descriptor for vfs integration
lfs_t fs
littlefs descriptor
uint16_t sectors_per_block
number of sectors per block
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.