SPI hardware bitbanging from SD CARD
authorrob-ng15 <58272847+rob-ng15@users.noreply.github.com>
Tue, 17 Mar 2020 09:50:45 +0000 (09:50 +0000)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 09:50:45 +0000 (09:50 +0000)
litex/soc/software/include/base/spi.h [new file with mode: 0644]

diff --git a/litex/soc/software/include/base/spi.h b/litex/soc/software/include/base/spi.h
new file mode 100644 (file)
index 0000000..db6ade2
--- /dev/null
@@ -0,0 +1,6 @@
+int spi_sdcard_init(uint32_t device);
+int spi_sdcard_read_sector(uint32_t device, unsigned long lba,unsigned char *buf);
+
+unsigned char spi_sdcard_goidle(void);
+unsigned char spi_sdcard_readMBR(void);
+unsigned char spi_sdcard_readFile(char *, char *, unsigned long);