diff --git a/litex/soc/software/include/base/spisdcard.h b/litex/soc/software/include/base/spisdcard.h index 83689d5e8..851415787 100644 --- a/litex/soc/software/include/base/spisdcard.h +++ b/litex/soc/software/include/base/spisdcard.h @@ -3,4 +3,4 @@ int spi_sdcard_read_sector(uint32_t device, uint32_t lba,uint_least8_t *buf); uint8_t spi_sdcard_goidle(void); uint8_t spi_sdcard_readMBR(void); -uint8_t spi_sdcard_readFile(char *, char *, uint32_t); +uint8_t spi_sdcard_readFile(char *, char *, unsigned long); diff --git a/litex/soc/software/libbase/spisdcard.c b/litex/soc/software/libbase/spisdcard.c index 2027a0a2c..0befe993b 100644 --- a/litex/soc/software/libbase/spisdcard.c +++ b/litex/soc/software/libbase/spisdcard.c @@ -523,7 +523,7 @@ uint8_t spi_sdcard_readMBR(void) // Return 0 success, 1 failure // // Details from https://codeandlife.com/2012/04/02/simple-fat-and-sd-tutorial-part-1/ -uint8_t spi_sdcard_readFile(char *filename, char *ext, uint32_t address) +uint8_t spi_sdcard_readFile(char *filename, char *ext, unsigned long address) { int i, n, sector; uint16_t fileClusterStart;