diff options
| author | copilot-swe-agent[bot] <[email protected]> | 2025-10-29 11:09:02 +0000 |
|---|---|---|
| committer | copilot-swe-agent[bot] <[email protected]> | 2025-10-29 11:09:02 +0000 |
| commit | f68941f51b07cd99662ea787af51d0a497dd9e41 (patch) | |
| tree | a05e3b0a9fc346ab4de0f9e6372c9fcaacc2a5c3 /components | |
| parent | 35216e3a17a19c00e2c3895bf206765058272a05 (diff) | |
[dfs_v1][elmfat] Remove obsolete old mutex API functionscopilot/update-elm-fatfs-to-r016
Co-authored-by: BernardXiong <[email protected]>
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c | 39 |
1 files changed, 0 insertions, 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) |
