fs_port_rl_fs.c
Path manipulation helper functions.
String manipulation helper functions.
File system abstraction layer (RL-FlashFS)
const char_t * pathGetFilename(const char_t *path)
Extract the file name from the supplied path.
Definition: path.c:81
error_t fsSeekFile(FsFile *file, int_t offset, uint_t origin)
Move to specified position in file.
Definition: fs_port_rl_fs.c:320
FsFile * fsOpenFile(const char_t *path, uint_t mode)
Open the specified file for reading or writing.
Definition: fs_port_rl_fs.c:282
error_t fsGetFileSize(const char_t *path, uint32_t *size)
Retrieve the size of the specified file.
Definition: fs_port_rl_fs.c:120
__weak_func void osFreeMem(void *p)
Release a previously allocated memory block.
Definition: os_port_chibios.c:464
Error codes description.
File system abstraction layer.
error_t fsReadDir(FsDir *dir, FsDirEntry *dirEntry)
Read an entry from the specified directory stream.
Definition: fs_port_rl_fs.c:635
error_t fsGetFileStat(const char_t *path, FsFileStat *fileStat)
Retrieve the attributes of the specified file.
Definition: fs_port_rl_fs.c:157
error_t fsReadFile(FsFile *file, void *data, size_t size, size_t *length)
Read data from the specified file.
Definition: fs_port_rl_fs.c:410
error_t strSafeCopy(char_t *dest, const char_t *src, size_t destSize)
Copy string.
Definition: str.c:172
error_t fsWriteFile(FsFile *file, void *data, size_t length)
Write data to the specified file.
Definition: fs_port_rl_fs.c:372
error_t fsRenameFile(const char_t *oldPath, const char_t *newPath)
Rename the specified file.
Definition: fs_port_rl_fs.c:210
Debugging facilities.
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394
bool_t fsDirExists(const char_t *path)
Check whether a directory exists.
Definition: fs_port_rl_fs.c:469