add littlefs code

This commit is contained in:
li_zan 2021-04-25 17:41:42 +08:00
parent 3ae9d36049
commit 10b416e74f
1 changed files with 2 additions and 2 deletions

View File

@ -33,12 +33,12 @@
#include "iCunit.h" #include "iCunit.h"
lfs_t g_lfs; lfs_t g_lfs;
FileDirInfo g_lfsDir[LFS_MAX_OPEN_DIRS]; FileDirInfo g_lfsDir[LFS_MAX_OPEN_DIRS] = {0};
FileOpInfo g_fsOp; FileOpInfo g_fsOp;
static LittleFsHandleStruct g_handle[LITTLE_FS_MAX_OPEN_FILES] = {0}; static LittleFsHandleStruct g_handle[LITTLE_FS_MAX_OPEN_FILES] = {0};
struct dirent g_nameValue; struct dirent g_nameValue;
struct fsmap_t g_fsmap[MAX_FILE_SYSTEM_LEN]; struct fsmap_t g_fsmap[MAX_FILE_SYSTEM_LEN] = {0};
static pthread_mutex_t g_FslocalMutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t g_FslocalMutex = PTHREAD_MUTEX_INITIALIZER;
FileOpInfo GetFsOpInfo(void) FileOpInfo GetFsOpInfo(void)