Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce correct SD state at compilation using a new type
The struct `SdMmcSpi` had two separate methods for initialization and deinitialization. It was up to the user not to mess them up at runtime. A new `BlockSpi` struct takes over `BlockDevice` interface duties, making it impossible to use block procedures while the SD interface is in the wrong state.
- Loading branch information