esp-idf/components/sdmmc
2023-11-20 12:30:03 +08:00
..
include refactor(sdmmc): dependency inversion to sdmmc component 2023-11-16 15:37:32 +08:00
test refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
CMakeLists.txt refactor(sdmmc): dependency inversion to sdmmc component 2023-11-16 15:37:32 +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 refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
sdmmc_common.c refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
sdmmc_common.h refactor(sdmmc): dependency inversion to sdmmc component 2023-11-16 15:37:32 +08:00
sdmmc_init.c Add high speed mode switch validation check for MMC. 2022-04-28 15:23:21 +02:00
sdmmc_io.c refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
sdmmc_mmc.c refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00:00
sdmmc_sd.c refactor: Remove -Wno-format from storage related components 2023-10-22 17:56:41 +00: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.