Files
esp-idf/components/esp_driver_sdmmc
Ivan Grokhotkov f824a827dc fix(sdmmc): move DMA descriptor refilling into the ISR
Previously, as DMA descriptors were processed, the task performing
SDMMC transfer would get woken up and would refill the descriptors.
This design didn't work correctly when higher priority tasks occupied
the CPU for too long, resulting in SDMMC transfer timing out.

This change moves DMA descriptor refilling into SDMMC ISR. Now the
"DMA done" interrupt is delivered back to task context only when
the entire transfer is completed.

Closes https://github.com/espressif/esp-idf/issues/13934
2025-03-12 13:06:57 +08: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.