Skip to content

Add an SPI host and SPI mode for SD memory cards - #6

Draft
loopj wants to merge 2 commits into
mainfrom
spi-mode
Draft

loopj wants to merge 2 commits into
mainfrom
spi-mode

Conversation

@loopj

@loopj loopj commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Adds an SPI host and SPI mode for SD memory cards, following Figure 7-2 of the SD specification, plus a card_busy host operation that wait_ready checks before each CMD13.

Add a card_busy host operation that reports whether the card holds its data line low. SDHCI reads the DAT0 level from the present state register. wait_ready checks it before each CMD13, so the card is asked for its status only once it has finished programming or erasing.
@loopj
loopj force-pushed the spi-mode branch 5 times, most recently from d4d1be4 to 5a9e207 Compare October 28, 2026 23:58
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