/* Send a data packet to MMC */
/*-----------------------------------------------------------------------*/
-#if _USE_WRITE
static
int xmit_datablock (
const BYTE *buff, /* 512 byte data block to be transmitted */
spi_wait();
return 1;
}
-#endif /* _USE_WRITE */
/*-----------------------------------------------------------------------*/
/* Send a command packet to MMC */
/* Write Sector(s) */
/*-----------------------------------------------------------------------*/
-#if _USE_WRITE
DRESULT disk_write (
BYTE drv, /* Physical drive nmuber (0) */
const BYTE *buff, /* Pointer to the data to be written */
return count ? RES_ERROR : RES_OK;
}
-#endif /* _USE_WRITE */
/*-----------------------------------------------------------------------*/
/* Miscellaneous Functions */
/*-----------------------------------------------------------------------*/
-#if _USE_IOCTL
DRESULT disk_ioctl (
BYTE drv, /* Physical drive nmuber (0) */
BYTE cmd, /* Control code */
return res;
}
-#endif /* _USE_IOCTL */
/*-----------------------------------------------------------------------*/
/* Device Timer Interrupt Procedure (Platform dependent) */