Skip to content

Commit f68941f

Browse files
CopilotBernardXiong
andcommitted
[dfs_v1][elmfat] Remove obsolete old mutex API functions
Co-authored-by: BernardXiong <[email protected]>
1 parent 35216e3 commit f68941f

File tree

1 file changed

+0
-39
lines changed
  • components/dfs/dfs_v1/filesystems/elmfat

1 file changed

+0
-39
lines changed

components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -999,45 +999,6 @@ DWORD get_fattime(void)
999999
}
10001000

10011001
#if FF_FS_REENTRANT
1002-
/* Old FatFs API (R0.14b and earlier) */
1003-
int ff_cre_syncobj(BYTE drv, FF_SYNC_t *m)
1004-
{
1005-
char name[8];
1006-
rt_mutex_t mutex;
1007-
1008-
rt_snprintf(name, sizeof(name), "fat%d", drv);
1009-
mutex = rt_mutex_create(name, RT_IPC_FLAG_PRIO);
1010-
if (mutex != RT_NULL)
1011-
{
1012-
*m = mutex;
1013-
return RT_TRUE;
1014-
}
1015-
1016-
return RT_FALSE;
1017-
}
1018-
1019-
int ff_del_syncobj(FF_SYNC_t m)
1020-
{
1021-
if (m != RT_NULL)
1022-
rt_mutex_delete(m);
1023-
1024-
return RT_TRUE;
1025-
}
1026-
1027-
int ff_req_grant(FF_SYNC_t m)
1028-
{
1029-
if (rt_mutex_take(m, FF_FS_TIMEOUT) == RT_EOK)
1030-
return RT_TRUE;
1031-
1032-
return RT_FALSE;
1033-
}
1034-
1035-
void ff_rel_grant(FF_SYNC_t m)
1036-
{
1037-
rt_mutex_release(m);
1038-
}
1039-
1040-
/* New FatFs API (R0.15 and later) */
10411002
static rt_mutex_t Mutex[FF_VOLUMES + 1];
10421003

10431004
int ff_mutex_create (int vol)

0 commit comments

Comments
 (0)