RIOT integration of littlefs version 2.x.y. More...

Detailed Description

RIOT integration of littlefs version 2.x.y.

Files

file  littlefs2_fs.h
 littlefs v2 integration with vfs
 

Data Structures

struct  littlefs2_desc_t
 littlefs descriptor for vfs integration More...
 

Variables

const vfs_file_system_t littlefs2_file_system
 The littlefs vfs driver.
 

littlefs configuration

#define CONFIG_LITTLEFS2_LOOKAHEAD_SIZE   (16)
 Default lookahead size.
 
#define CONFIG_LITTLEFS2_FILE_BUFFER_SIZE   (0)
 File buffer size, if 0, dynamic allocation is used. More...
 
#define CONFIG_LITTLEFS2_READ_BUFFER_SIZE   (0)
 Read buffer size, if 0, dynamic allocation is used. More...
 
#define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE   (0)
 Prog buffer size, if 0, dynamic allocation is used. More...
 
#define CONFIG_LITTLEFS2_CACHE_PAGES   (1)
 Sets the number of pages used as cache. More...
 
#define CONFIG_LITTLEFS2_BLOCK_CYCLES   (512)
 Sets the maximum number of erase cycles before blocks are evicted as a part of wear leveling. More...
 

Macro Definition Documentation

◆ CONFIG_LITTLEFS2_BLOCK_CYCLES

#define CONFIG_LITTLEFS2_BLOCK_CYCLES   (512)

Sets the maximum number of erase cycles before blocks are evicted as a part of wear leveling.

-1 disables wear-leveling.

Definition at line 75 of file littlefs2_fs.h.

◆ CONFIG_LITTLEFS2_CACHE_PAGES

#define CONFIG_LITTLEFS2_CACHE_PAGES   (1)

Sets the number of pages used as cache.

Has to be at least 1.

Definition at line 69 of file littlefs2_fs.h.

◆ CONFIG_LITTLEFS2_FILE_BUFFER_SIZE

#define CONFIG_LITTLEFS2_FILE_BUFFER_SIZE   (0)

File buffer size, if 0, dynamic allocation is used.

If set, only one file can be used at a time, must be program size (mtd page size is used internally as program size)

Definition at line 50 of file littlefs2_fs.h.

◆ CONFIG_LITTLEFS2_PROG_BUFFER_SIZE

#define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE   (0)

Prog buffer size, if 0, dynamic allocation is used.

If set, it must be program size

Definition at line 63 of file littlefs2_fs.h.

◆ CONFIG_LITTLEFS2_READ_BUFFER_SIZE

#define CONFIG_LITTLEFS2_READ_BUFFER_SIZE   (0)

Read buffer size, if 0, dynamic allocation is used.

If set, it must be read size (mtd page size is used internally as read size)

Definition at line 57 of file littlefs2_fs.h.