Skip to content

Commit

Permalink
move cache_size to fs.h
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Nov 5, 2023
1 parent d0aa98b commit 169c894
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <lfs.h>

#define LFS_CACHE_SIZE 512

int fs_format(const struct lfs_config *cfg);
int fs_mount(const struct lfs_config *cfg);
int read_file(const char *path, void *buf, lfs_soff_t off, lfs_size_t len);
Expand Down
2 changes: 1 addition & 1 deletion src/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

static lfs_t lfs;

static uint8_t file_buffer[CACHE_SIZE];
static uint8_t file_buffer[LFS_CACHE_SIZE];

static struct lfs_file_config file_config = {
.buffer = file_buffer
Expand Down

0 comments on commit 169c894

Please sign in to comment.