]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/src/option/syscall.c
Merge branch 'chan-fatfs' into fatfs-integration
[z180-stamp.git] / fatfs / src / option / syscall.c
index 2036cb772a55c7430635a10571b90b3b203f87e0..c9d219b797027dab0c1ad1721a62f1084a18f9aa 100644 (file)
@@ -16,8 +16,8 @@
 /  the f_mount() function fails with FR_INT_ERR.\r
 */\r
 \r
-int ff_cre_syncobj (   /* !=0:Function succeeded, ==0:Could not create due to any error */\r
-       BYTE vol,                       /* Corresponding logical drive being processed */\r
+int ff_cre_syncobj (   /* 1:Function succeeded, 0:Could not create the sync object */\r
+       BYTE vol,                       /* Corresponding volume (logical drive number) */\r
        _SYNC_t *sobj           /* Pointer to return the created sync object */\r
 )\r
 {\r
@@ -27,7 +27,7 @@ int ff_cre_syncobj (  /* !=0:Function succeeded, ==0:Could not create due to any
        *sobj = CreateMutex(NULL, FALSE, NULL);         /* Win32 */\r
        ret = (int)(*sobj != INVALID_HANDLE_VALUE);\r
 \r
-//     *sobj = SyncObjects[vol];                       /* uITRON (give a static created sync object) */\r
+//     *sobj = SyncObjects[vol];                       /* uITRON (give a static sync object) */\r
 //     ret = 1;                                                        /* The initial value of the semaphore must be 1. */\r
 \r
 //     *sobj = OSMutexCreate(0, &err);         /* uC/OS-II */\r
@@ -45,11 +45,11 @@ int ff_cre_syncobj (        /* !=0:Function succeeded, ==0:Could not create due to any
 /* Delete a Synchronization Object                                        */\r
 /*------------------------------------------------------------------------*/\r
 /* This function is called in f_mount() function to delete a synchronization\r
-/  object that created with ff_cre_syncobj function. When a 0 is returned,\r
+/  object that created with ff_cre_syncobj() function. When a 0 is returned,\r
 /  the f_mount() function fails with FR_INT_ERR.\r
 */\r
 \r
-int ff_del_syncobj (   /* !=0:Function succeeded, ==0:Could not delete due to any error */\r
+int ff_del_syncobj (   /* 1:Function succeeded, 0:Could not delete due to any error */\r
        _SYNC_t sobj            /* Sync object tied to the logical drive to be deleted */\r
 )\r
 {\r