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);