Open thejpster opened 5 years ago
See WIP PR. Can currently do a dir on the root directory.
We also need a DOS to handle the card, and to expose a sensible API to the user.
The Linux syscall API / POSIX file API isn't a bad starting point I guess.
See #46
The WIP PR can now load 6502 BASIC from the SD card (which is about 4 clusters in length).
We need to use DMA so that data can be transferred during the video render as currently the performance is terrible. Changing the video to use a non-blocking pull API and SPI FIFO space free interrupts would also help.
There is some DMA example code in a branch for doing DMA with the frame buffer. We can adapt that to do DMA with the SPI instead.
File read support in master. Needs file write support, plus #46 so applications can use the SD card.
We can put an SD card on SSI0 and use it to load/save files. Breakout boards aren't too expensive (https://www.proto-pic.co.uk/sdmmc-card-breakout.html)
See https://github.com/rafalh/rust-fatfs