summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-09-25 11:59:13 -0400
committerMeco Man <[email protected]>2021-09-25 11:59:13 -0400
commitcba2dd901652ec6705da6922d0a0923f111a9768 (patch)
tree1889bca43fcaef52d25b3b368a2ca7c51ef69469 /components
parentf4412c3abc6de3018f9f2358c706e6d2fd4e5114 (diff)
[fatfs] 修改互斥保护超时时间
防止因一些正常复杂耗时操作,导致fatfs认为 timeout failure。
Diffstat (limited to 'components')
-rw-r--r--components/dfs/filesystems/elmfat/ffconf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/dfs/filesystems/elmfat/ffconf.h b/components/dfs/filesystems/elmfat/ffconf.h
index a17a07d8ea..d62ee4906a 100644
--- a/components/dfs/filesystems/elmfat/ffconf.h
+++ b/components/dfs/filesystems/elmfat/ffconf.h
@@ -295,12 +295,13 @@
/ lock control is independent of re-entrancy. */
/* #include <somertos.h> // O/S definitions */
+#include <rtdef.h>
#ifdef RT_DFS_ELM_REENTRANT
#define FF_FS_REENTRANT 1 /* 0 or 1 */
#else
#define FF_FS_REENTRANT 0 /* 0:Disable or 1:Enable */
#endif
-#define FF_FS_TIMEOUT 1000
+#define FF_FS_TIMEOUT 3000
#define FF_SYNC_t rt_mutex_t
/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs
/ module itself. Note that regardless of this option, file access to different