embedded-sdmmc-rs icon indicating copy to clipboard operation
embedded-sdmmc-rs copied to clipboard

Use embedded-storage BlockDevice trait.

Open qwandor opened this issue 1 year ago • 2 comments

This will allow both the SD card driver and the FAT32 implementation to be used with filesystem or block device drivers respectively.

This is a step towards #15 and shows off how to use https://github.com/rust-embedded-community/embedded-storage/pull/59 in practice.

qwandor avatar Oct 29 '24 18:10 qwandor

It's a shame to loose BlockIdx and BlockCount and go back to raw u64 values that you can easily get mixed up.

thejpster avatar Oct 29 '24 18:10 thejpster

~~Yep that's a shame~~, I just saw that they were added* @qwandor Can't we keep the Block in embedded_storage too and add Deref impl to it?

elpiel avatar Nov 22 '24 08:11 elpiel