36 #ifndef LITTLEFS_LOOKAHEAD_SIZE
38 #define LITTLEFS_LOOKAHEAD_SIZE (128)
41 #ifndef LITTLEFS_FILE_BUFFER_SIZE
45 #define LITTLEFS_FILE_BUFFER_SIZE (0)
48 #ifndef LITTLEFS_READ_BUFFER_SIZE
51 #define LITTLEFS_READ_BUFFER_SIZE (0)
54 #ifndef LITTLEFS_PROG_BUFFER_SIZE
57 #define LITTLEFS_PROG_BUFFER_SIZE (0)
60 #ifndef LITTLEFS_MIN_BLOCK_SIZE_EXP
64 #define LITTLEFS_MIN_BLOCK_SIZE_EXP (-1)
73 struct lfs_config config;
80 #if LITTLEFS_FILE_BUFFER_SIZE || DOXYGEN
84 #if LITTLEFS_READ_BUFFER_SIZE || DOXYGEN
88 #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
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.