Loading...
Searching...
No Matches

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.
 
#define CONFIG_LITTLEFS2_READ_BUFFER_SIZE   (0)
 Read buffer size, if 0, dynamic allocation is used.
 
#define CONFIG_LITTLEFS2_PROG_BUFFER_SIZE   (0)
 Prog buffer size, if 0, dynamic allocation is used.
 
#define CONFIG_LITTLEFS2_CACHE_PAGES   (1)
 Sets the number of pages used as cache.
 
#define CONFIG_LITTLEFS2_BLOCK_CYCLES   (512)
 Sets the maximum number of erase cycles before blocks are evicted as a part of wear leveling.
 
#define CONFIG_LITTLEFS2_MIN_BLOCK_SIZE_EXP   (-1)
 The exponent of the minimum acceptable block size in bytes (2^n).
 

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 77 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 71 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 52 of file littlefs2_fs.h.

◆ CONFIG_LITTLEFS2_LOOKAHEAD_SIZE

#define CONFIG_LITTLEFS2_LOOKAHEAD_SIZE   (16)

Default lookahead size.

Definition at line 45 of file littlefs2_fs.h.

◆ CONFIG_LITTLEFS2_MIN_BLOCK_SIZE_EXP

#define CONFIG_LITTLEFS2_MIN_BLOCK_SIZE_EXP   (-1)

The exponent of the minimum acceptable block size in bytes (2^n).

The desired block size is not guaranteed to be applicable but will be respected.

Definition at line 84 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 65 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 59 of file littlefs2_fs.h.