7#ifndef ZEPHYR_INCLUDE_FS_LITTLEFS_H_
8#define ZEPHYR_INCLUDE_FS_LITTLEFS_H_
23 struct lfs_config
cfg;
70#define FS_LITTLEFS_DECLARE_CUSTOM_CONFIG(name, read_sz, prog_sz, cache_sz, lookahead_sz) \
71 static uint8_t __aligned(4) name ## _read_buffer[cache_sz]; \
72 static uint8_t __aligned(4) name ## _prog_buffer[cache_sz]; \
73 static uint32_t name ## _lookahead_buffer[(lookahead_sz) / sizeof(uint32_t)]; \
74 static struct fs_littlefs name = { \
76 .read_size = (read_sz), \
77 .prog_size = (prog_sz), \
78 .cache_size = (cache_sz), \
79 .lookahead_size = (lookahead_sz), \
80 .read_buffer = name ## _read_buffer, \
81 .prog_buffer = name ## _prog_buffer, \
82 .lookahead_buffer = name ## _lookahead_buffer, \
95#define FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(name) \
96 FS_LITTLEFS_DECLARE_CUSTOM_CONFIG(name, \
97 CONFIG_FS_LITTLEFS_READ_SIZE, \
98 CONFIG_FS_LITTLEFS_PROG_SIZE, \
99 CONFIG_FS_LITTLEFS_CACHE_SIZE, \
100 CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE)
Public API for flash map.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
Flash partition.
Definition: flash_map.h:53
Filesystem info structure for LittleFS mount.
Definition: littlefs.h:21
uint8_t * prog_buffer
Definition: littlefs.h:29
struct k_mutex mutex
Definition: littlefs.h:39
struct lfs lfs
Definition: littlefs.h:37
const struct flash_area * area
Definition: littlefs.h:38
uint32_t * lookahead_buffer[CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE/sizeof(uint32_t)]
Definition: littlefs.h:34
struct lfs_config cfg
Definition: littlefs.h:23
uint8_t * read_buffer
Definition: littlefs.h:26
Definition: kernel.h:2680