X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/b4e3fab85fcd9f5b1502ec991c81302b910492d3:/fatfs/doc/en/fdisk.html..0f3b947bda5f34662a611272b9f12199e0da9aca:/fatfs/documents/doc/fdisk.html diff --git a/fatfs/doc/en/fdisk.html b/fatfs/documents/doc/fdisk.html similarity index 67% rename from fatfs/doc/en/fdisk.html rename to fatfs/documents/doc/fdisk.html index 6581d87..1c0c1e1 100644 --- a/fatfs/doc/en/fdisk.html +++ b/fatfs/documents/doc/fdisk.html @@ -1,7 +1,7 @@ - + @@ -31,7 +31,7 @@ FRESULT f_fdisk (
szt
Pointer to the first item of the partition map table.
work
-
Pointer to the function work area. The size must be at least _MAX_SS bytes.
+
Pointer to the function work area. The size must be at least FF_MAX_SS bytes. When a null pointer is given, the function allocates a memory block for the working buffer (at only FF_USE_LFN == 3).
@@ -42,7 +42,8 @@ FRESULT f_fdisk ( FR_DISK_ERR, FR_NOT_READY, FR_WRITE_PROTECTED, -FR_INVALID_PARAMETER +FR_INVALID_PARAMETER, +FR_NOT_ENOUGH_CORE

@@ -53,31 +54,30 @@ FRESULT f_fdisk (

QuickInfo

-

Available when _FS_READOLNY == 0, _USE_MKFS == 1 and _MULTI_PARTITION == 1.

+

Available when FF_FS_READOLNY == 0, FF_USE_MKFS == 1 and FF_MULTI_PARTITION == 1.

Example

-    /* Volume management table defined by user (required when _MULTI_PARTITION == 1) */
+    /* Volume management table defined by user (required when FF_MULTI_PARTITION == 1) */
 
     PARTITION VolToPart[] = {
-        {0, 1},    /* Logical drive 0 ==> Physical drive 0, 1st partition */
-        {0, 2},    /* Logical drive 1 ==> Physical drive 0, 2nd partition */
-        {1, 0}     /* Logical drive 2 ==> Physical drive 1, auto detection */
+        {0, 1},    /* "0:" ==> Physical drive 0, 1st partition */
+        {0, 2},    /* "1:" ==> Physical drive 0, 2nd partition */
+        {1, 0}     /* "2:" ==> Physical drive 1, auto detection */
     };
 
     /* Initialize a brand-new disk drive mapped to physical drive 0 */
 
-    FATFS fs;
     DWORD plist[] = {50, 50, 0, 0};  /* Divide drive into two partitions */
-    BYTE work[_MAX_SS];
+    BYTE work[FF_MAX_SS];
 
-    f_fdisk(0, plist, work);                     /* Divide physical drive 0 */
+    f_fdisk(0, plist, work);                    /* Divide physical drive 0 */
 
-    f_mkfs("0:", FMT_ANY, work, sizeof work);    /* Create FAT volume on the logical drive 0 */
-    f_mkfs("1:", FMT_ANY, work, sizeof work);    /* Create FAT volume on the logical drive 1 */
+    f_mkfs("0:", FM_ANY, work, sizeof work);    /* Create FAT volume on the logical drive 0 */
+    f_mkfs("1:", FM_ANY, work, sizeof work);    /* Create FAT volume on the logical drive 1 */