esp-idf/components/esp_driver_sdmmc
Ivan Grokhotkov 6ed7e93676
fix(sdmmc): fix invalid data when reading/writing PSRAM buffers
Previous commit has enabled buffers in PSRAM for ESP32-P4. But this
also caused a regression for ESP32-S3, where PSRAM is not DMA capable.
This commit re-introduces the check for esp_ptr_external_ram in case
SOC_SDMMC_PSRAM_DMA_CAPABLE is not set.
2024-06-05 13:12:03 +02:00
..

SDMMC Host Driver

SD Host side related components are:

  • sdmmc
  • esp_driver_sdmmc (current component)
  • esp_driver_sdspi

For relationship and dependency among these components, see SD Host Side Related Component Architecture.

esp_driver_sdmmc components holds SDMMC Host driver for ESP SDMMC peripheral, this driver provides APIs to help you:

  • do SD transactions (under SD mode) via ESP SDMMC peripheral.
  • tune ESP SDMMC hardware configurations, such as clock frequency, bus width, etc.
  • ...

You can

  • use this driver to implement sdmmc protocol interfaces
  • directly use esp_driver_sdmmc APIs

to communicate with SD slave devices under SD mode.