nopnop2002 / esp-idf-ftpServer

ftp server for esp-idf using FAT file system
MIT License
35 stars 12 forks source link

SDMMC slot width and speed options #8

Closed dizcza closed 3 years ago

dizcza commented 3 years ago

Hello and thanks for the project, I appreciate clean C over bulky Arduinish code.

This pull request brings two additional options to the SD/MMC peripheral and fixes a bug when the static IP option is selected (ip_info was undeclared; a typo).

The first SD/MMC option allows the users to select either 1-line or 4-line width slot mode. This is crucial for ESP boards like TTGO T8 where three other data pins of an SD card slot are not connected.

The second SD/MMC option allows the users to select the SD/MMC max frequency to operate on.

The latter option, however, has not influenced the final transmission speed, which remained around only 30 KB/s. At the same time, I've achieved ~300 KB/s speed using https://github.com/fa1ke5/ESP32_FTPServer_SD_MMC project. Don't know why. Maybe you have ideas.

Anyway, I've just decided to put in my two cents in your project.

nopnop2002 commented 3 years ago

Thank you for PR.