vfs_config.h 840 B

123456789101112131415161718192021222324252627
  1. /*
  2. WIKI:
  3. https://github.com/Wiz-IO/wizio-pico/wiki/ARDUINO#vfs--file-system
  4. OTHER USER CONFIG KEYS
  5. LFS: https://github.com/littlefs-project/littlefs
  6. https://github.com/Wiz-IO/framework-wizio-pico/blob/main/arduino/libraries/RP2040/VFS/VFS_LFS.h
  7. FATFS: http://elm-chan.org/fsw/ff/00index_e.html
  8. https://github.com/Wiz-IO/framework-wizio-pico/blob/main/arduino/libraries/RP2040/VFS/VFS_FATFS.h
  9. */
  10. #define MAX_OPEN_FILES 4
  11. #define USE_FATFS /* Enable FatFS 0:/file_path */
  12. #define FATFS_SPI spi1
  13. #define FATFS_SPI_BRG 10000000
  14. #define FATFS_SPI_SCK 10 /* SPI1_SCK */
  15. #define FATFS_SPI_MOSI 11 /* SPI1_TX */
  16. #define FATFS_SPI_MISO 12 /* SPI1_RX */
  17. #define FATFS_CS_PIN 13 /* SPI1_CSn */