]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/mmc.c
Adaptions for fatfs R0.15
[z180-stamp.git] / avr / mmc.c
index a40dc31fdb2b789b8b747f11f3a917777064c1d3..e1a51fe1c961060fdeed698d34d8dcd513f07625 100644 (file)
--- a/avr/mmc.c
+++ b/avr/mmc.c
@@ -292,7 +292,6 @@ UINT btr /* Byte count (must be multiple of 4) */
 /* Send a data packet to MMC                                             */
 /*-----------------------------------------------------------------------*/
 
-#if    _USE_WRITE
 static
 int xmit_datablock (
                const BYTE *buff, /* 512 byte data block to be transmitted */
@@ -322,7 +321,6 @@ int xmit_datablock (
        spi_wait();
        return 1;
 }
-#endif /* _USE_WRITE */
 
 /*-----------------------------------------------------------------------*/
 /* Send a command packet to MMC                                          */
@@ -584,7 +582,6 @@ DRESULT disk_read (
 /* 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 */
@@ -630,13 +627,11 @@ DRESULT disk_write (
 
        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 */
@@ -748,7 +743,6 @@ DRESULT disk_ioctl (
 
        return res;
 }
-#endif /* _USE_IOCTL */
 
 /*-----------------------------------------------------------------------*/
 /* Device Timer Interrupt Procedure  (Platform dependent)                */