18#ifndef __VSF_LITTLEFS_H__
19#define __VSF_LITTLEFS_H__
23#include "../../vsf_fs_cfg.h"
25#if VSF_USE_FS == ENABLED && VSF_FS_USE_LITTLEFS == ENABLED
30#if defined(__VSF_LITTLEFS_CLASS_IMPLEMENT)
31# undef __VSF_LITTLEFS_CLASS_IMPLEMENT
32# define __VSF_CLASS_IMPLEMENT__
43#if VSF_KERNEL_CFG_SUPPORT_THREAD != ENABLED
44# error littlefs runs in thread mode, please enable VSF_KERNEL_CFG_SUPPORT_THREAD
47#ifndef VSF_LITTLEFS_CFG_STACK_SIZE
49# define VSF_LITTLEFS_CFG_STACK_SIZE 4096
76 struct lfs_config config;
85 vsf_thread_cb_t thread_cb;
#define VSF_CAL_ALIGN(__N)
Definition __compiler.h:179
Definition vsf_littlefs.h:57
Definition vsf_littlefs.h:70
#define open
Definition fcntl.h:20
#define vsf_dcl_class
Definition ooc_class.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned long long uint64_t
Definition stdint.h:11
#define unlink
Definition unistd.h:116
vk_file_attr_t
Definition vsf_fs_cfg.h:99
const vk_fs_op_t vk_lfs_op
#define VSF_LITTLEFS_CFG_STACK_SIZE
Definition vsf_littlefs.h:49
uint64_t offset
Definition vsf_memfs.h:49
uint32_t size
Definition vsf_memfs.h:50
#define __VSF_THREAD_STACK_SAFE_SIZE(__stack)
Definition vsf_thread.h:63
#define VSF_KERNEL_CFG_THREAD_STACK_ALIGN_BIT
Definition vsf_thread.h:59