SDMMC frequency selection based on board type (#5688)

* SDMMC frequency selection based on board type

On Olimex ESP32 EVB I/O operations with SD card can cause error when LAN is used in same time.
Problem is disappearing if SD MMC frequency lower down from SDMMC_FREQ_HIGHSPEED to SDMMC_FREQ_DEFAULT.

No problem if WiFi used instead LAN.

* Code rewritten according to https://github.com/espressif/arduino-esp32/pull/5688#pullrequestreview-759359645
This commit is contained in:
Serguei S. Dukachev
2021-10-01 15:48:20 +03:00
committed by GitHub
parent 67583e84d6
commit 93f10609f4
3 changed files with 11 additions and 3 deletions

View File

@ -29,5 +29,6 @@ static const uint8_t MISO = 15;
static const uint8_t SCK = 14;
#define BOARD_HAS_1BIT_SDMMC
#define BOARD_MAX_SDMMC_FREQ SDMMC_FREQ_DEFAULT
#endif /* Pins_Arduino_h */