Skip to content
Snippets Groups Projects
Commit fd5e6c36 authored by schneider's avatar schneider
Browse files

fix(ff13): properly define the weak functions

parent 33915be7
No related branches found
No related tags found
No related merge requests found
...@@ -311,10 +311,10 @@ void ff_memfree (void* mblock); /* Free memory block */ ...@@ -311,10 +311,10 @@ void ff_memfree (void* mblock); /* Free memory block */
/* Sync functions */ /* Sync functions */
#if FF_FS_REENTRANT #if FF_FS_REENTRANT
int ff_cre_syncobj (BYTE vol, FF_SYNC_t* sobj) __attribute__((weak)); /* Create a sync object */ int ff_cre_syncobj (BYTE vol, FF_SYNC_t* sobj); /* Create a sync object */
int ff_req_grant (FF_SYNC_t sobj) __attribute__((weak)); /* Lock sync object */ int ff_req_grant (FF_SYNC_t sobj); /* Lock sync object */
void ff_rel_grant (FF_SYNC_t sobj) __attribute__((weak)); /* Unlock sync object */ void ff_rel_grant (FF_SYNC_t sobj); /* Unlock sync object */
int ff_del_syncobj (FF_SYNC_t sobj) __attribute__((weak)); /* Delete a sync object */ int ff_del_syncobj (FF_SYNC_t sobj); /* Delete a sync object */
#endif #endif
......
...@@ -53,7 +53,7 @@ void ff_memfree ( ...@@ -53,7 +53,7 @@ void ff_memfree (
static int s_notAMutex; static int s_notAMutex;
int ff_cre_syncobj ( /* 1:Function succeeded, 0:Could not create the sync object */ __attribute__((weak)) int ff_cre_syncobj ( /* 1:Function succeeded, 0:Could not create the sync object */
BYTE vol, /* Corresponding volume (logical drive number) */ BYTE vol, /* Corresponding volume (logical drive number) */
FF_SYNC_t *sobj /* Pointer to return the created sync object */ FF_SYNC_t *sobj /* Pointer to return the created sync object */
) )
...@@ -72,7 +72,7 @@ int ff_cre_syncobj ( /* 1:Function succeeded, 0:Could not create the sync object ...@@ -72,7 +72,7 @@ int ff_cre_syncobj ( /* 1:Function succeeded, 0:Could not create the sync object
/ the f_mount() function fails with FR_INT_ERR. / the f_mount() function fails with FR_INT_ERR.
*/ */
int ff_del_syncobj ( /* 1:Function succeeded, 0:Could not delete due to an error */ __attribute__((weak)) int ff_del_syncobj ( /* 1:Function succeeded, 0:Could not delete due to an error */
FF_SYNC_t sobj /* Sync object tied to the logical drive to be deleted */ FF_SYNC_t sobj /* Sync object tied to the logical drive to be deleted */
) )
{ {
...@@ -88,7 +88,7 @@ int ff_del_syncobj ( /* 1:Function succeeded, 0:Could not delete due to an error ...@@ -88,7 +88,7 @@ int ff_del_syncobj ( /* 1:Function succeeded, 0:Could not delete due to an error
/ When a 0 is returned, the file function fails with FR_TIMEOUT. / When a 0 is returned, the file function fails with FR_TIMEOUT.
*/ */
int ff_req_grant ( /* 1:Got a grant to access the volume, 0:Could not get a grant */ __attribute__((weak)) int ff_req_grant ( /* 1:Got a grant to access the volume, 0:Could not get a grant */
FF_SYNC_t sobj /* Sync object to wait */ FF_SYNC_t sobj /* Sync object to wait */
) )
{ {
...@@ -103,7 +103,7 @@ int ff_req_grant ( /* 1:Got a grant to access the volume, 0:Could not get a gran ...@@ -103,7 +103,7 @@ int ff_req_grant ( /* 1:Got a grant to access the volume, 0:Could not get a gran
/* This function is called on leaving file functions to unlock the volume. /* This function is called on leaving file functions to unlock the volume.
*/ */
void ff_rel_grant ( __attribute__((weak)) void ff_rel_grant (
FF_SYNC_t sobj /* Sync object to be signaled */ FF_SYNC_t sobj /* Sync object to be signaled */
) )
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment