git.droids-corp.org
/
protos
/
imu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some cleaning
[protos/imu.git]
/
sd_raw.c
diff --git
a/sd_raw.c
b/sd_raw.c
index
8c830a3
..
f33184e
100644
(file)
--- a/
sd_raw.c
+++ b/
sd_raw.c
@@
-9,9
+9,12
@@
*/
#include <string.h>
*/
#include <string.h>
+#include <avr/pgmspace.h>
#include <avr/io.h>
#include "sd_raw.h"
#include <avr/io.h>
#include "sd_raw.h"
+#include <uart.h>
+
/**
* \addtogroup sd_raw MMC/SD/SDHC card raw access
*
/**
* \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);
/* 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);
/**
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.
*/
*
* \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();
{
/* 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;
if(i == 0)
{
csd_structure = b >> 6;
+ (void)csd_structure;
}
else if(i == 14)
{
}
else if(i == 14)
{