mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 03:27:58 +08:00
[fatfs] 修改互斥保护超时时间
防止因一些正常复杂耗时操作,导致fatfs认为 timeout failure。
This commit is contained in:
parent
f4412c3abc
commit
cba2dd9016
@ -295,12 +295,13 @@
|
|||||||
/ lock control is independent of re-entrancy. */
|
/ lock control is independent of re-entrancy. */
|
||||||
|
|
||||||
/* #include <somertos.h> // O/S definitions */
|
/* #include <somertos.h> // O/S definitions */
|
||||||
|
#include <rtdef.h>
|
||||||
#ifdef RT_DFS_ELM_REENTRANT
|
#ifdef RT_DFS_ELM_REENTRANT
|
||||||
#define FF_FS_REENTRANT 1 /* 0 or 1 */
|
#define FF_FS_REENTRANT 1 /* 0 or 1 */
|
||||||
#else
|
#else
|
||||||
#define FF_FS_REENTRANT 0 /* 0:Disable or 1:Enable */
|
#define FF_FS_REENTRANT 0 /* 0:Disable or 1:Enable */
|
||||||
#endif
|
#endif
|
||||||
#define FF_FS_TIMEOUT 1000
|
#define FF_FS_TIMEOUT 3000
|
||||||
#define FF_SYNC_t rt_mutex_t
|
#define FF_SYNC_t rt_mutex_t
|
||||||
/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs
|
/* 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
|
/ module itself. Note that regardless of this option, file access to different
|
||||||
|
Loading…
x
Reference in New Issue
Block a user