nodemcu-firmware/components/fatfs/fatfs_config.h

24 lines
765 B
C
Raw Normal View History

#ifndef __FATFS_CONFIG_H__
#define __FATFS_CONFIG_H__
// don't redefine the PARTITION type
2019-01-17 00:04:03 +01:00
#ifndef FF_DEFINED
typedef struct {
BYTE pd; /* Physical drive number */
BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
} PARTITION;
#endif
// Table to map physical drive & partition to a logical volume.
2017-04-15 17:38:20 +02:00
// The first value is the physical drive which relates to the SDMMC slot number
// The second value is the partition number.
PARTITION VolToPart[FF_VOLUMES] = {
{0, 1}, /* Logical drive "0:" ==> slot 0, 1st partition */
{0, 2}, /* Logical drive "1:" ==> slot 0, 2st partition */
{0, 3}, /* Logical drive "2:" ==> slot 0, 3st partition */
{0, 4} /* Logical drive "3:" ==> slot 0, 4st partition */
};
#endif /* __FATFS_CONFIG_H__ */