CARME-M4 BSP  V1.5
Drive/Volume

Drive/Volume Configurations. More...

+ Collaboration diagram for Drive/Volume:

Macros

#define _VOLUMES   1
 Number of volumes (logical drives) to be used.
 
#define _MULTI_PARTITION   0
 When set to 0, each volume is bound to the same physical drive number and it can mount only first primaly partition. When it is set to 1, each volume is tied to the partitions listed in VolToPart[]. More...
 
#define _MAX_SS   512
 Maximum sector size to be handled. Always set 512 for memory card and hard disk but a larger value may be required for on-board flash memory, floppy disk and optical disk.
When _MAX_SS is larger than 512, it configures FatFs to variable sector size and GET_SECTOR_SIZE command must be implemented to the disk_ioctl() function. More...
 
#define _USE_ERASE   0
 To enable sector erase feature, set _USE_ERASE to 1. Also CTRL_ERASE_SECTOR command should be added to the disk_ioctl() function. More...
 
#define _FS_NOFSINFO   0
 If you need to know the correct free space on the FAT32 volume, set this option to 1 and f_getfree() function at first time after volume mount will force a full FAT scan. More...
 

Detailed Description

Drive/Volume Configurations.

Macro Definition Documentation

#define _FS_NOFSINFO   0

If you need to know the correct free space on the FAT32 volume, set this option to 1 and f_getfree() function at first time after volume mount will force a full FAT scan.

Value:

  • 0: Load all informations in the FSINFO if available.
  • 1: Do not trust free cluster count in the FSINFO.

Definition at line 322 of file ffconf.h.

#define _MAX_SS   512

Maximum sector size to be handled. Always set 512 for memory card and hard disk but a larger value may be required for on-board flash memory, floppy disk and optical disk.
When _MAX_SS is larger than 512, it configures FatFs to variable sector size and GET_SECTOR_SIZE command must be implemented to the disk_ioctl() function.

Value:

  • 512
  • 1024
  • 2048
  • 4096

Definition at line 298 of file ffconf.h.

#define _MULTI_PARTITION   0

When set to 0, each volume is bound to the same physical drive number and it can mount only first primaly partition. When it is set to 1, each volume is tied to the partitions listed in VolToPart[].

Value:

  • 0: Single partition
  • 1: Enable multiple partition

Definition at line 280 of file ffconf.h.

#define _USE_ERASE   0

To enable sector erase feature, set _USE_ERASE to 1. Also CTRL_ERASE_SECTOR command should be added to the disk_ioctl() function.

Value:

  • 0: Disable
  • 1: Enable

Definition at line 310 of file ffconf.h.