From c2ebbcbf6c51c81eb03be743e643fcee5c18ed46 Mon Sep 17 00:00:00 2001 From: rob-ng15 <58272847+rob-ng15@users.noreply.github.com> Date: Fri, 20 Mar 2020 11:34:24 +0000 Subject: [PATCH] Use for structure sizes --- litex/soc/software/include/base/spisdcard.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/litex/soc/software/include/base/spisdcard.h b/litex/soc/software/include/base/spisdcard.h index db6ade284..83689d5e8 100644 --- a/litex/soc/software/include/base/spisdcard.h +++ b/litex/soc/software/include/base/spisdcard.h @@ -1,6 +1,6 @@ int spi_sdcard_init(uint32_t device); -int spi_sdcard_read_sector(uint32_t device, unsigned long lba,unsigned char *buf); +int spi_sdcard_read_sector(uint32_t device, uint32_t lba,uint_least8_t *buf); -unsigned char spi_sdcard_goidle(void); -unsigned char spi_sdcard_readMBR(void); -unsigned char spi_sdcard_readFile(char *, char *, unsigned long); +uint8_t spi_sdcard_goidle(void); +uint8_t spi_sdcard_readMBR(void); +uint8_t spi_sdcard_readFile(char *, char *, uint32_t);