X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/70702af1370e44e32fb2c3c507e4759a187b4fe5:/fatfs/doc/en/fdisk.html..289f6a146c0b2087607d8d8659531ea90142779a:/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 (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.
- /* 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 */