Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: blockDevice async num_blocks #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elpiel
Copy link

@elpiel elpiel commented Sep 16, 2023

When we use an SPI implementation rather than a microcontroller driver ( like https://github.com/embassy-rs/embassy/blob/80d7193b5b7442fb7a9cee00a5a51300778acdcd/embassy-stm32/src/sdmmc/mod.rs#L1563-L1567) we need to make sure that the card is initialized and to read the card specific data block. Since the SPI impl is async we cannot do this without the num_blocks being async as well.

Signed-off-by: Lachezar Lechev <[email protected]>
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.

1 participant