Use <stdint.h> for structure sizes
authorrob-ng15 <58272847+rob-ng15@users.noreply.github.com>
Fri, 20 Mar 2020 11:34:24 +0000 (11:34 +0000)
committerGitHub <noreply@github.com>
Fri, 20 Mar 2020 11:34:24 +0000 (11:34 +0000)
litex/soc/software/include/base/spisdcard.h

index db6ade2840718ed50ec2812adb8ee83ef93dc41c..83689d5e85f32644015159de8dafab479e016717 100644 (file)
@@ -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);