Skip to content

[RFC] mmc: add types + traits for SD/MMC peripherals #661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
8 of 11 tasks
rmsyn opened this issue Apr 23, 2025 · 0 comments
Open
8 of 11 tasks

[RFC] mmc: add types + traits for SD/MMC peripherals #661

rmsyn opened this issue Apr 23, 2025 · 0 comments

Comments

@rmsyn
Copy link
Contributor

rmsyn commented Apr 23, 2025

SD/MMC Trait

This RFC proposal is to add a set of traits for abstracting common functionality for handling SD/MMC peripherals.

Why

Currently, drivers based on embedded-hal that implement the SD/MMC protocol, like embedded-sdmmc-rs, are based on the Spi traits.

However, traits that are more generally abstract over SD/MMC functionality will allow for a wider range of driver implementations.

For example, drivers for SD/SDIO/MMC peripherals, in various modes and specification versions.

Reference Implementation Requirements

This tracking issue is accompanied with a reference implementation to add the traits to embedded-hal:

  • sdmmc: add HAL traits for SD/MMC peripherals
    • SD/SDIO intialization
      • variants for SPI quirks
    • MMC initialization
      • variants for SPI quirks
    • Sending commands to the device
    • Reading responses from the device
    • Data transfers (read/write)
    • Separate, related async implementation (?)
    • Delay/wait functionality
    • Tuning
    • Interrupt configuration + handling
    • FIFO configuration + handling
    • DMA configuration + handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant