X-Git-Url: http://git.droids-corp.org/?p=protos%2Fimu.git;a=blobdiff_plain;f=sd_raw.c;h=f33184e2023be45dfdba28b33938244a55891da6;hp=8c830a3a2ccbfe1b6f7e5c7cb1e93c31eb7ccc15;hb=ddcf722be1c01bc4cc90dc568c205287424ee2c9;hpb=de6cbbfa24c5af2030ab1a46ee94bcc8b35910b9 diff --git a/sd_raw.c b/sd_raw.c index 8c830a3..f33184e 100644 --- a/sd_raw.c +++ b/sd_raw.c @@ -9,9 +9,12 @@ */ #include +#include #include #include "sd_raw.h" +#include + /** * \addtogroup sd_raw MMC/SD/SDHC card raw access * @@ -160,7 +163,7 @@ static uint8_t sd_raw_card_type; /* private helper functions */ static void sd_raw_send_byte(uint8_t b); -static uint8_t sd_raw_rec_byte(); +static uint8_t sd_raw_rec_byte(void); static uint8_t sd_raw_send_command(uint8_t command, uint32_t arg); /** @@ -169,7 +172,7 @@ static uint8_t sd_raw_send_command(uint8_t command, uint32_t arg); * * \returns 0 on failure, 1 on success. */ -uint8_t sd_raw_init() +uint8_t sd_raw_init(void) { /* enable inputs for reading card status */ configure_pin_available(); @@ -925,6 +928,7 @@ uint8_t sd_raw_get_info(struct sd_raw_info* info) if(i == 0) { csd_structure = b >> 6; + (void)csd_structure; } else if(i == 14) {