Closed mzyy94 closed 3 years ago
This fixes #1
Overwrite host_config->flags set by SDSPI_HOST_DEFAULT() with SDMMC_HOST_FLAG_SPI same as ESP-IDF 4.1.
host_config->flags
SDSPI_HOST_DEFAULT()
SDMMC_HOST_FLAG_SPI
.flags = SDMMC_HOST_FLAG_SPI, \
https://github.com/espressif/esp-idf/blob/v4.1/components/driver/include/driver/sdspi_host.h#L36
.flags = SDMMC_HOST_FLAG_SPI | SDMMC_HOST_FLAG_DEINIT_ARG, \
https://github.com/espressif/esp-idf/blob/v4.2/components/driver/include/driver/sdspi_host.h#L39
This fixes #1
Description
Overwrite
host_config->flags
set bySDSPI_HOST_DEFAULT()
withSDMMC_HOST_FLAG_SPI
same as ESP-IDF 4.1.ESP-IDF 4.1
.flags = SDMMC_HOST_FLAG_SPI, \
https://github.com/espressif/esp-idf/blob/v4.1/components/driver/include/driver/sdspi_host.h#L36
ESP-IDF 4.2
.flags = SDMMC_HOST_FLAG_SPI | SDMMC_HOST_FLAG_DEINIT_ARG, \
https://github.com/espressif/esp-idf/blob/v4.2/components/driver/include/driver/sdspi_host.h#L39