Skip to content

Commit 637fbec

Browse files
committed
Edit mount function
1 parent f5f2c9f commit 637fbec

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

include/littlefs_shim.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
extern "C" {
99
#endif
1010

11-
// External SD handle used by the shim
12-
extern SD_HandleTypeDef *lfsshim_hsd;
13-
14-
extern uint32_t lfsshim_first_block_offset;
15-
1611
// LittleFS-compatible SD card interface functions
17-
int lfsshim_mount(lfs_t *lfs);
12+
int lfsshim_mount(lfs_t *lfs, SD_HandleTypeDef *hsd, uint32_t first_block_offset);
1813

1914
#ifdef __cplusplus
2015
}

stm32h7/littlefs_shim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "lfs.h"
33
#include "stm32h7xx_hal.h"
44

5-
#define SD_RW_TIMEOUT_MS 50
5+
#define SD_RW_TIMEOUT_MS 500
66

77
static SD_HandleTypeDef *lfsshim_hsd;
88
static uint32_t lfsshim_first_block_offset = 0;

0 commit comments

Comments
 (0)