diff options
author | inmarket <andrewh@inmarket.com.au> | 2018-11-03 12:29:30 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2018-11-03 12:29:30 +1000 |
commit | 8a9ed5195b3345635533b6150b9303abbaf5adf3 (patch) | |
tree | b57c4580a50b261e75a19e53124acb3670d47b6f /src/gfile | |
parent | 7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (diff) | |
download | uGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.tar.gz uGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.tar.bz2 uGFX-8a9ed5195b3345635533b6150b9303abbaf5adf3.zip |
Tidy u gfxSem, gfxMutex and various Macros by converting to new types gSem, gMutex etc
Diffstat (limited to 'src/gfile')
-rw-r--r-- | src/gfile/gfile_fatfs_wrapper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gfile/gfile_fatfs_wrapper.c b/src/gfile/gfile_fatfs_wrapper.c index 4d846be6..5e4d1da9 100644 --- a/src/gfile/gfile_fatfs_wrapper.c +++ b/src/gfile/gfile_fatfs_wrapper.c @@ -20,7 +20,7 @@ /*------------------------------------------------------------------------*/ /* Static array of Synchronization Objects */ /*------------------------------------------------------------------------*/ - static gfxSem ff_sem[_VOLUMES]; + static gSem ff_sem[_VOLUMES]; /*------------------------------------------------------------------------*/ /* Create a Synchronization Object */ @@ -28,7 +28,7 @@ int ff_cre_syncobj(BYTE vol, _SYNC_t *sobj) { *sobj = ff_sem[vol]; - gfxSemInit(sobj, 1, MAX_SEMAPHORE_COUNT); + gfxSemInit(sobj, 1, gSemMaxCount); return 1; } @@ -38,7 +38,7 @@ /*------------------------------------------------------------------------*/ int ff_del_syncobj(_SYNC_t sobj) { - gfxSemDestroy( (gfxSem*)&sobj ); + gfxSemDestroy( (gSem*)&sobj ); return 1; } @@ -48,7 +48,7 @@ /*------------------------------------------------------------------------*/ int ff_req_grant(_SYNC_t sobj) { - if (gfxSemWait( (gfxSem*)&sobj, (gDelay)_FS_TIMEOUT) ) + if (gfxSemWait( (gSem*)&sobj, (gDelay)_FS_TIMEOUT) ) return gTrue; return gFalse; } @@ -58,7 +58,7 @@ /*------------------------------------------------------------------------*/ void ff_rel_grant(_SYNC_t sobj) { - gfxSemSignal( (gfxSem*)&sobj ); + gfxSemSignal( (gSem*)&sobj ); } #endif /* _FS_REENTRANT */ |