From d45dda731a351acd3446e406f5635e066ce1a88c Mon Sep 17 00:00:00 2001 From: rob-ng15 <58272847+rob-ng15@users.noreply.github.com> Date: Tue, 17 Mar 2020 09:50:45 +0000 Subject: [PATCH] SPI hardware bitbanging from SD CARD --- litex/soc/software/include/base/spi.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 litex/soc/software/include/base/spi.h diff --git a/litex/soc/software/include/base/spi.h b/litex/soc/software/include/base/spi.h new file mode 100644 index 000000000..db6ade284 --- /dev/null +++ b/litex/soc/software/include/base/spi.h @@ -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);