Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
fd5e6c36
Commit
fd5e6c36
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(ff13): properly define the weak functions
parent
33915be7
No related branches found
No related tags found
No related merge requests found
Pipeline
#1293
passed
5 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/ff13/Source/ff.h
+4
-4
4 additions, 4 deletions
lib/ff13/Source/ff.h
lib/ff13/Source/ffsystem.c
+4
-4
4 additions, 4 deletions
lib/ff13/Source/ffsystem.c
with
8 additions
and
8 deletions
lib/ff13/Source/ff.h
+
4
−
4
View file @
fd5e6c36
...
...
@@ -311,10 +311,10 @@ void ff_memfree (void* mblock); /* Free memory block */
/* Sync functions */
#if FF_FS_REENTRANT
int
ff_cre_syncobj
(
BYTE
vol
,
FF_SYNC_t
*
sobj
)
__attribute__
((
weak
))
;
/* Create a sync object */
int
ff_req_grant
(
FF_SYNC_t
sobj
)
__attribute__
((
weak
))
;
/* Lock sync object */
void
ff_rel_grant
(
FF_SYNC_t
sobj
)
__attribute__
((
weak
))
;
/* Unlock sync object */
int
ff_del_syncobj
(
FF_SYNC_t
sobj
)
__attribute__
((
weak
))
;
/* Delete 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
);
/* Lock sync object */
void
ff_rel_grant
(
FF_SYNC_t
sobj
);
/* Unlock sync object */
int
ff_del_syncobj
(
FF_SYNC_t
sobj
);
/* Delete a sync object */
#endif
...
...
This diff is collapsed.
Click to expand it.
lib/ff13/Source/ffsystem.c
+
4
−
4
View file @
fd5e6c36
...
...
@@ -53,7 +53,7 @@ void ff_memfree (
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) */
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
/ 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 */
)
{
...
...
@@ -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.
*/
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 */
)
{
...
...
@@ -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.
*/
void
ff_rel_grant
(
__attribute__
((
weak
))
void
ff_rel_grant
(
FF_SYNC_t
sobj
/* Sync object to be signaled */
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment