code compiles after including sd-card routines
This commit is contained in:
@@ -39,4 +39,11 @@ extern uint8_t sd_card_get_status(void);
|
|||||||
extern uint8_t spi_send_byte(uint8_t byte);
|
extern uint8_t spi_send_byte(uint8_t byte);
|
||||||
extern uint16_t spi_send_word(uint16_t word);
|
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_ */
|
#endif /* _SD_CARD_H_ */
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ static void xmit_spi_multi(const BYTE *buff, UINT btx)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static bool card_ready(void)
|
static int card_ready(void)
|
||||||
{
|
{
|
||||||
uint8_t d;
|
uint8_t d;
|
||||||
|
|
||||||
@@ -400,7 +400,7 @@ DSTATUS disk_initialize(BYTE drv)
|
|||||||
deselect();
|
deselect();
|
||||||
|
|
||||||
if (ty) { /* OK */
|
if (ty) { /* OK */
|
||||||
FCLK_FAST(); /* Set fast clock */
|
// FCLK_FAST(); /* Set fast clock */
|
||||||
Stat &= ~STA_NOINIT; /* Clear STA_NOINIT flag */
|
Stat &= ~STA_NOINIT; /* Clear STA_NOINIT flag */
|
||||||
} else { /* Failed */
|
} else { /* Failed */
|
||||||
power_off();
|
power_off();
|
||||||
|
|||||||
Reference in New Issue
Block a user