summaryrefslogtreecommitdiff
path: root/fatfs/src/option/syscall.c
diff options
context:
space:
mode:
authorLeo C2016-09-08 19:15:27 +0200
committerLeo C2016-09-08 19:15:27 +0200
commit70702af1370e44e32fb2c3c507e4759a187b4fe5 (patch)
tree5b75a408efadf5fccd8d5d481e91cce73a86897b /fatfs/src/option/syscall.c
parent7b78a5a287827db9e9b16286f3604aef69b37c5c (diff)
downloadz180-stamp-70702af1370e44e32fb2c3c507e4759a187b4fe5.zip
Import fatfs R0.12bfatfs-0.12b
Diffstat (limited to 'fatfs/src/option/syscall.c')
-rw-r--r--fatfs/src/option/syscall.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fatfs/src/option/syscall.c b/fatfs/src/option/syscall.c
index 2036cb7..c9d219b 100644
--- a/fatfs/src/option/syscall.c
+++ b/fatfs/src/option/syscall.c
@@ -16,8 +16,8 @@
/ the f_mount() function fails with FR_INT_ERR.
*/
-int ff_cre_syncobj ( /* !=0:Function succeeded, ==0:Could not create due to any error */
- BYTE vol, /* Corresponding logical drive being processed */
+int ff_cre_syncobj ( /* 1:Function succeeded, 0:Could not create the sync object */
+ BYTE vol, /* Corresponding volume (logical drive number) */
_SYNC_t *sobj /* Pointer to return the created sync object */
)
{
@@ -27,7 +27,7 @@ int ff_cre_syncobj ( /* !=0:Function succeeded, ==0:Could not create due to any
*sobj = CreateMutex(NULL, FALSE, NULL); /* Win32 */
ret = (int)(*sobj != INVALID_HANDLE_VALUE);
-// *sobj = SyncObjects[vol]; /* uITRON (give a static created sync object) */
+// *sobj = SyncObjects[vol]; /* uITRON (give a static sync object) */
// ret = 1; /* The initial value of the semaphore must be 1. */
// *sobj = OSMutexCreate(0, &err); /* uC/OS-II */
@@ -45,11 +45,11 @@ int ff_cre_syncobj ( /* !=0:Function succeeded, ==0:Could not create due to any
/* Delete a Synchronization Object */
/*------------------------------------------------------------------------*/
/* This function is called in f_mount() function to delete a synchronization
-/ object that created with ff_cre_syncobj function. When a 0 is returned,
+/ object that created with ff_cre_syncobj() function. When a 0 is returned,
/ the f_mount() function fails with FR_INT_ERR.
*/
-int ff_del_syncobj ( /* !=0:Function succeeded, ==0:Could not delete due to any error */
+int ff_del_syncobj ( /* 1:Function succeeded, 0:Could not delete due to any error */
_SYNC_t sobj /* Sync object tied to the logical drive to be deleted */
)
{