WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
littlefs_adapt.c 文件参考
#include "lfs.h"
#include "fcntl.h"
#include "sfc.h"
#include "securec.h"
#include "soc_osal.h"
#include "littlefs_config.h"
#include "partition.h"
#include "littlefs_adapt.h"
littlefs_adapt.c 的引用(Include)关系图:

结构体

struct  lfs_block_info_t
 

宏定义

#define LFS_NAME_LEN_MAX   64
 
#define LFS_OPEN_MAX   32
 
#define LFS_FLASH_START   0x200000
 
#define LFS_FLASH_4K_MASK   0xFFF
 
#define LFS_FLASH_4K   0x1000
 
#define LFS_RAM_BASE   0xA00000
 

函数

void fs_adapt_mount (void)
 
void fs_adapt_unmount (void)
 
int fs_adapt_mkdir (const char *path)
 
int fs_adapt_open (const char *path, int oflag)
 
int fs_adapt_close (int fd)
 
int fs_adapt_read (int fd, char *buf, unsigned int len)
 
int fs_adapt_write (int fd, const char *buf, unsigned int len)
 
int fs_adapt_delete (const char *path)
 
int fs_adapt_stat (const char *path, unsigned int *file_size)
 
int fs_adapt_seek (int fd, int offset, unsigned int whence)
 
int fs_adapt_sync (int fd)
 
void lfs_test (void)
 

宏定义说明

◆ LFS_FLASH_4K

#define LFS_FLASH_4K   0x1000

◆ LFS_FLASH_4K_MASK

#define LFS_FLASH_4K_MASK   0xFFF

◆ LFS_FLASH_START

#define LFS_FLASH_START   0x200000

◆ LFS_NAME_LEN_MAX

#define LFS_NAME_LEN_MAX   64

◆ LFS_OPEN_MAX

#define LFS_OPEN_MAX   32

◆ LFS_RAM_BASE

#define LFS_RAM_BASE   0xA00000

函数说明

◆ fs_adapt_close()

int fs_adapt_close ( int  fd)

◆ fs_adapt_delete()

int fs_adapt_delete ( const char *  path)

◆ fs_adapt_mkdir()

int fs_adapt_mkdir ( const char *  path)

◆ fs_adapt_mount()

void fs_adapt_mount ( void  )

◆ fs_adapt_open()

int fs_adapt_open ( const char *  path,
int  oflag 
)

◆ fs_adapt_read()

int fs_adapt_read ( int  fd,
char *  buf,
unsigned int  len 
)

◆ fs_adapt_seek()

int fs_adapt_seek ( int  fd,
int  offset,
unsigned int  whence 
)

◆ fs_adapt_stat()

int fs_adapt_stat ( const char *  path,
unsigned int *  file_size 
)

◆ fs_adapt_sync()

int fs_adapt_sync ( int  fd)

◆ fs_adapt_unmount()

void fs_adapt_unmount ( void  )

◆ fs_adapt_write()

int fs_adapt_write ( int  fd,
const char *  buf,
unsigned int  len 
)

◆ lfs_test()

void lfs_test ( void  )