rust-embedded / embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems
Apache License 2.0
2.01k stars 202 forks source link

Add `BlockDevice` trait to embedded-io #620

Open qwandor opened 3 months ago

qwandor commented 3 months ago

Hello, Would the embedded-io crate be a good home for a common BlockDevice trait, something like the one from embedded_sdmmc? This would be a common interface between things like SD card drivers, VirtIO block devices and so on, and crates which provide filesystem implementations on top of a block device. If this seems like a reasonable place for it I'm happy to send a PR to discuss the details.

Dirbaio commented 3 months ago

maybe embedded-storage is a better place?

(and maybe we should adopt (parts of?) the embedded-storage crate into this repo and make it officially WG-endorsed?)