fatfs: Update to version 0.15

Updated FATFS to 0.15 from 0.14b and patched for ESP devices
This commit is contained in:
Adam Múdry
2022-11-29 15:55:55 +01:00
committed by BOT
parent 733aadd6dc
commit e6fcaa4f9f
9 changed files with 753 additions and 465 deletions

View File

@@ -21,25 +21,25 @@ void ff_memfree(void* mblock)
free(mblock);
}
/* 1:Function succeeded, 0:Could not create the sync object */
int ff_cre_syncobj(BYTE vol, FF_SYNC_t* sobj)
static int* Mutex[FF_VOLUMES + 1]; /* Table of mutex handle */
/* 1:Function succeeded, 0:Could not create the mutex */
int ff_mutex_create(int vol)
{
*sobj = NULL;
Mutex[vol] = NULL;
return 1;
}
/* 1:Function succeeded, 0:Could not delete due to an error */
int ff_del_syncobj(FF_SYNC_t sobj)
void ff_mutex_delete(int vol)
{
return 1;
}
/* 1:Function succeeded, 0:Could not acquire lock */
int ff_req_grant (FF_SYNC_t sobj)
int ff_mutex_take(int vol)
{
return 1;
}
void ff_rel_grant (FF_SYNC_t sobj)
void ff_mutex_give(int vol)
{
}