From f68941f51b07cd99662ea787af51d0a497dd9e41 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 29 Oct 2025 11:09:02 +0000 Subject: [PATCH] [dfs_v1][elmfat] Remove obsolete old mutex API functions Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com> --- .../dfs/dfs_v1/filesystems/elmfat/dfs_elm.c | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c b/components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c index 3c33c34454..77793e3af1 100644 --- a/components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c @@ -999,45 +999,6 @@ DWORD get_fattime(void) } #if FF_FS_REENTRANT -/* Old FatFs API (R0.14b and earlier) */ -int ff_cre_syncobj(BYTE drv, FF_SYNC_t *m) -{ - char name[8]; - rt_mutex_t mutex; - - rt_snprintf(name, sizeof(name), "fat%d", drv); - mutex = rt_mutex_create(name, RT_IPC_FLAG_PRIO); - if (mutex != RT_NULL) - { - *m = mutex; - return RT_TRUE; - } - - return RT_FALSE; -} - -int ff_del_syncobj(FF_SYNC_t m) -{ - if (m != RT_NULL) - rt_mutex_delete(m); - - return RT_TRUE; -} - -int ff_req_grant(FF_SYNC_t m) -{ - if (rt_mutex_take(m, FF_FS_TIMEOUT) == RT_EOK) - return RT_TRUE; - - return RT_FALSE; -} - -void ff_rel_grant(FF_SYNC_t m) -{ - rt_mutex_release(m); -} - -/* New FatFs API (R0.15 and later) */ static rt_mutex_t Mutex[FF_VOLUMES + 1]; int ff_mutex_create (int vol)