fatfs_config.h 838 B

123456789101112131415161718192021222324
  1. #ifndef __FATFS_CONFIG_H__
  2. #define __FATFS_CONFIG_H__
  3. // don't redefine the PARTITION type
  4. #ifndef FF_DEFINED
  5. typedef struct {
  6. BYTE pd; /* Physical drive number */
  7. BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
  8. } PARTITION;
  9. #endif
  10. // Table to map physical drive & partition to a logical volume.
  11. // The first value is the physical drive and contains the GPIO pin for SS/CS of the SD card (default pin 8)
  12. // The second value is the partition number.
  13. #define NUM_LOGICAL_DRIVES 4
  14. PARTITION VolToPart[NUM_LOGICAL_DRIVES] = {
  15. {8, 1}, /* Logical drive "0:" ==> SS pin 8, 1st partition */
  16. {8, 2}, /* Logical drive "1:" ==> SS pin 8, 2st partition */
  17. {8, 3}, /* Logical drive "2:" ==> SS pin 8, 3st partition */
  18. {8, 4} /* Logical drive "3:" ==> SS pin 8, 4st partition */
  19. };
  20. #endif /* __FATFS_CONFIG_H__ */