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

Sdio-host: update to 0.9.0, add AddressMode enum #734

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

skibon02
Copy link
Contributor

Bump sdio-host to 0.9.0, which includes new voltabe_range format for send_op_conditon, generic arguments for registers (SD, EMMC).

Significantly, the SdioPeripheral::get_capacity() method has been replaced with SdioPeripheral::get_address_mode(). This change provides a more intuitive and accurate representation for eMMC cards, which unlike SD cards, do not have a distinction between standard and high capacity variants and uniformly use block addressing. The previous implementation relied on the high capacity bit in the OCR register, which is not applicable to eMMC cards. This bit has been removed in the sdio-host library to reflect the correct specifications for eMMC cards.

Was not tested yet, i don't have eMMC card, but I can test with SD card tomorrow.

(Recreated #733)

@skibon02
Copy link
Contributor Author

Implementation was tested on stm32f401 with SDSC and SDHC cards - works fine

@burrbull
Copy link
Member

Thanks

@burrbull burrbull added this pull request to the merge queue Jan 29, 2024
Merged via the queue into stm32-rs:master with commit 7bbd349 Jan 29, 2024
22 checks passed
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.

2 participants