Skip to content

new embedded-sdmmc-types crate#245

Open
robamu wants to merge 1 commit into
rust-embedded-community:developfrom
robamu:embedded-sdmmc-types-crate
Open

new embedded-sdmmc-types crate#245
robamu wants to merge 1 commit into
rust-embedded-community:developfrom
robamu:embedded-sdmmc-types-crate

Conversation

@robamu
Copy link
Copy Markdown
Contributor

@robamu robamu commented May 9, 2026

  • Extract fundamental traits and types into separate crate
  • HALs or other libraries which just want to provide embedded-sdmmc
    support can include this library instead of the full embedded-sdmmc
    library to implement driver support. I would expect embedded-sdmmc-types to change less
    frequently than the embedded-sdmmc crate using it. It allows embedded-sdmmc to evolve
    without breaking the fundamental traits.
  • Extended sd_card_init example to also implement the block device
    trait. It also only depends on embedded-sdmmc-types types now.

@robamu robamu force-pushed the embedded-sdmmc-types-crate branch from d4ab356 to 21ed7e8 Compare May 9, 2026 18:57
@robamu robamu marked this pull request as ready for review May 13, 2026 22:24
@robamu robamu force-pushed the embedded-sdmmc-types-crate branch from b7cdb95 to 53916ea Compare May 15, 2026 09:34
@robamu
Copy link
Copy Markdown
Contributor Author

robamu commented May 15, 2026

we could do a full re-export of the types trait in embedded-sdmmc

@robamu robamu force-pushed the embedded-sdmmc-types-crate branch 2 times, most recently from f3f9218 to b1a7bc1 Compare May 15, 2026 09:51
@robamu
Copy link
Copy Markdown
Contributor Author

robamu commented May 15, 2026

I also updated the README now. the top-level README has a mono-repo style short description with links to the contained libraries. the previous documentation was mostly moved to embedded-sdmmc/README.md

- Extract fundamental traits and types into separate crate
- HALs or other libraries which just want to provide `embedded-sdmmc`
  support can include this library instead of the full `embedded-sdmmc`
  library to implement driver support.
- Extended `sd_card_init` example to also implement the block device
  trait. It also only depends on `embedded-sdmmc-types` types now.
@robamu robamu force-pushed the embedded-sdmmc-types-crate branch from b1a7bc1 to 3ef1dda Compare May 15, 2026 09:53
/// SD card mock.
///
/// This basically behaves like a virtual SD card. Currently, this mock simulates a Ver2.00 or later
/// This basically behaves like a virtual SD card controller with a connected virtual SD card.s
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// This basically behaves like a virtual SD card controller with a connected virtual SD card.s
/// This basically behaves like a virtual SD card controller with a connected virtual SD card.

@@ -0,0 +1,35 @@
# Embedded SD/MMC [![crates.io](https://img.shields.io/crates/v/embedded-sdmmc-types.svg)](https://crates.io/crates/embedded-sdmmc-types) [![Documentation](https://docs.rs/embedded-sdmmc-types/badge.svg)](https://docs.rs/embedded-sdmmc-types)

Embedded SD/MMC Types Library
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file has two headings (a === underline works like a # I think) which looks odd?

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

Successfully merging this pull request may close these issues.

2 participants