2016-09-21 10:21:44 +02:00
|
|
|
#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
|
2016-09-21 10:21:44 +02:00
|
|
|
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
|
2016-09-21 10:21:44 +02:00
|
|
|
// The second value is the partition number.
|
|
|
|
#define NUM_LOGICAL_DRIVES 4
|
|
|
|
PARTITION VolToPart[NUM_LOGICAL_DRIVES] = {
|
2017-04-15 17:38:20 +02:00
|
|
|
{1, 1}, /* Logical drive "0:" ==> slot 1, 1st partition */
|
|
|
|
{1, 2}, /* Logical drive "1:" ==> slot 1, 2st partition */
|
|
|
|
{1, 3}, /* Logical drive "2:" ==> slot 1, 3st partition */
|
|
|
|
{1, 4} /* Logical drive "3:" ==> slot 1, 4st partition */
|
2016-09-21 10:21:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __FATFS_CONFIG_H__ */
|