code compiles after including sd-card routines

This commit is contained in:
Markus Fröschle
2012-12-05 14:32:29 +00:00
parent 5d95e8d4e0
commit 6b6c34ccc5
2 changed files with 9 additions and 2 deletions

View File

@@ -39,4 +39,11 @@ extern uint8_t sd_card_get_status(void);
extern uint8_t spi_send_byte(uint8_t byte);
extern uint16_t spi_send_word(uint16_t word);
/* MMC card type flags (MMC_GET_TYPE) */
#define CT_MMC 0x01 /* MMC ver 3 */
#define CT_SD1 0x02 /* SD ver 1 */
#define CT_SD2 0x04 /* SD ver 2 */
#define CT_SDC (CT_SD1|CT_SD2) /* SD */
#define CT_BLOCK 0x08 /* Block addressing */
#endif /* _SD_CARD_H_ */

View File

@@ -158,7 +158,7 @@ static void xmit_spi_multi(const BYTE *buff, UINT btx)
#endif
static bool card_ready(void)
static int card_ready(void)
{
uint8_t d;
@@ -400,7 +400,7 @@ DSTATUS disk_initialize(BYTE drv)
deselect();
if (ty) { /* OK */
FCLK_FAST(); /* Set fast clock */
// FCLK_FAST(); /* Set fast clock */
Stat &= ~STA_NOINIT; /* Clear STA_NOINIT flag */
} else { /* Failed */
power_off();