esp-idf/components/sdmmc
Michael (XIAO Xufeng) ed7dd46687 Merge branch 'feat/sdmmc_spi_no_crc_v5.3' into 'release/v5.3'
feat(sdmmc_io): support sending CMD53 with fixed address, bypass sdspi crc check (v5.3)

See merge request espressif/esp-idf!31075
2024-07-10 17:15:24 +08:00
..
include feat(sdmmc_io): support sending CMD53 with fixed address 2024-05-24 20:27:57 +08:00
sd_pwr_ctrl change(sdmmc): update ldo acquire driver to new API 2024-03-25 21:19:12 +08:00
CMakeLists.txt change(sdmmc): update ldo acquire driver to new API 2024-03-25 21:19:12 +08:00
README.md feat(sd): added readme for dependency among SD host related components 2023-11-20 12:30:03 +08:00
sdmmc_cmd.c fix(sdmmc): fix invalid data when reading/writing PSRAM buffers 2024-06-06 10:44:53 +02:00
sdmmc_common.c feat(dma): refactor dma calloc function 2024-04-02 14:30:14 +08:00
sdmmc_common.h fix(sdmmc): extend the maximum number of retries of ACMD41 2024-02-28 09:33:24 +01:00
sdmmc_init.c feat(sd): added power control driver and implementation layer with ldo 2024-03-25 11:32:56 +08:00
sdmmc_io.c fix(sdmmc_io): fixed fixed_addr mode will still increase addr when splitting 2024-07-05 14:47:50 +08:00
sdmmc_mmc.c feat(dma): refactor dma calloc function 2024-04-02 14:30:14 +08:00
sdmmc_sd.c feat(dma): refactor dma calloc function 2024-04-02 14:30:14 +08:00

SDMMC Protocol Layer Driver

Architecture Graph

                        ┌─────────────────────────────────────────────┐
                        │                                             │
                        │  SD Protocol Layer Driver: components/sdmmc │
                        │                                             │
                        └──────────▲────────────────────▲─────────────┘
                                   │                    │
                                   │                    │
                        Implements │                    │ Implements
                                   │                    │
┌──────────────────────────────────┴─────┐         ┌────┴───────────────────────────────────┐
│                                        │         │                                        │
│Host Driver: components/esp_driver_sdmmc│         │Host Driver: components/esp_driver_sdspi│
│                                        │         │                                        │
└────────────────────────────────────────┘         └────────────────────────────────────────┘

Components

  • sdmmc: SD protocol layer driver, it provides SD protocol related definitions and interfaces. With corresponding implementation drivers, sdmmc APIs can help you:
    • send commands to slave devices
    • send and receive data
    • handle error conditions within the bus
  • esp_driver_sdmmc: SDMMC Host driver for ESP SDMMC hardware, it implements the sdmmc protocol interfaces.
  • esp_driver_sdspi: SDSPI Host driver for ESP GPSPI hardware, it implements the sdmmc protocol interfaces.

Dependency

  • esp_driver_sdmmc is in driver layer (G2), it relies on sdmmc
  • esp_driver_sdspi is in driver layer (G2), it relies on sdmmc
  • sdmmc does not and should not rely on esp_driver_sdmmc or esp_driver_sdspi. Though sdmmc is independent, it still stays in G2.