1.2.7.4.50 SYS_FS_FORMAT Macros

C

// The Values mentioned below should be aligned with values in ff.h

#define SYS_FS_FORMAT_FAT      0x01
#define SYS_FS_FORMAT_FAT32    0x02
#define SYS_FS_FORMAT_EXFAT    0x04
#define SYS_FS_FORMAT_ANY      0x07
#define SYS_FS_FORMAT_SFD      0x08

Summary

Specifes the partitioning rule.

Description

This type specifies the partitioning rule.

  • When SYS_FS_FORMAT_FAT is specified, a primary partition occupying the entire disk space is created and then an FAT volume is created on the partition.

    • It is usually used for hard disk, MMC, SDC, CFC and U Disk. It can divide a physical drive into one or more partitions with a partition table on the MBR. However Windows does not support multiple partition on the removable media.

  • When SYS_FS_FORMAT_SFD format is specified, the FAT volume starts from the first sector of the physical drive.

    • It is non-partitioned method. The FAT volume starts from the first sector on the physical drive without partition table. It is usually used for floppy disk, micro drive, optical disk, and super-floppy media.

  • When SYS_FS_FORMAT_ANY format is specified FAT FS code decides on the format.