37ada65a33
669: Add SDMMC v1 and SDIO support r=Dirbaio a=chemicstry SDMMC v2 peripheral is an extension of SDMMC v1 (or SDIO) so I managed to reuse most of the code, with some cfg's. Apart from small differeces in registers, the biggest change is that v2 uses internal DMA, while v1 has to use shared DMA peripheral. This makes code a bit uglier, because DMA channel for v1 has to be passed around. Not sure if it's possible to make it any cleaner. This also adds `TransferOptions` structure to DMA, because SDMMC v1 requires setting peripheral flow control and burst transfers. Let me know if some alternative way would be prefered. I tested this on STM32F429ZIT6 (with sd card) and STM32H745ZIT6 (with oscilloscope). Depends on: https://github.com/embassy-rs/stm32-data/pull/130 Co-authored-by: chemicstry <chemicstry@gmail.com> |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |