sd package: sdcard package redesign (#639)

* begin adding sd.Card refactor

* CSD logic shared between V1 and V2

* failing CRC7 implementation

* passing tests

* rename commands

* implement waitToken

* add status string method

* no crc errors in status; closing the gap?

* add config baud increase docs

* remove some of API

* still working on consolidation of init

* fully comply

* add prints

* remove prints

* remove unused API

* add BlockDevice

* implement Card interface

* rename EraseBlocks to EraseSectors

* add blkIdxer

* working BlockDevice

* delete rustref.go; add readme to sd

* add sd/README.md

* sd: backtrack on EraseSectors, stick to block nomenclature

* remove remnants of sector size

* fix examples/sd/main.go

* add documentation, smoke test and fix a couple bugs
This commit is contained in:
Pat Whittingslow
2026-08-21 07:48:11 -03:00
committed by GitHub
parent dc6edbb694
commit e08205477c
9 changed files with 2008 additions and 0 deletions
+1
View File
@@ -151,6 +151,7 @@ tinygo build -size short -o ./build/test.hex -target=feather-nrf52840 ./examples
tinygo build -size short -o ./build/test.hex -target=pico ./examples/ens160/main.go
tinygo build -size short -o ./build/test.hex -target=pico ./examples/si5351/main.go
tinygo build -size short -o ./build/test.hex -target=pico ./examples/w5500/main.go
tinygo build -size short -o ./build/test.hex -target=pico ./examples/sd
# network examples (espat)
tinygo build -size short -o ./build/test.hex -target=challenger-rp2040 ./examples/net/ntpclient/
# network examples (wifinina)