Minor documentation adjustments to the demos, projects and bootloaders to ensure...
[pub/USBasp.git] / Projects / Incomplete / StandaloneProgrammer / Lib / PetiteFATFs / diskio.c
index 47e7315..d953875 100644 (file)
@@ -1,11 +1,11 @@
 /*-----------------------------------------------------------------------*/
-/* Low level disk I/O module skeleton for Petit FatFs (C)ChaN, 2010      */
+/* Low level disk I/O module skeleton for Petit FatFs (C)ChaN, 2009      */
 /*-----------------------------------------------------------------------*/
 
 #include "diskio.h"
 
 #include <string.h>
-#include <LUFA/Drivers/USB/Class/MassStorage.h>
+#include <LUFA/Drivers/USB/USB.h>
 #include "../DataflashManager.h"
 #include "../../DiskHost.h"
 
@@ -25,7 +25,7 @@ DSTATUS disk_initialize (void)
 /*-----------------------------------------------------------------------*/
 
 DRESULT disk_readp (
-       void* dest,                     /* Pointer to the destination object */
+       BYTE* dest,                     /* Pointer to the destination object */
        DWORD sector,           /* Sector number (LBA) */
        WORD sofs,                      /* Offset in the sector */
        WORD count                      /* Byte count (bit15:destination) */
@@ -34,7 +34,7 @@ DRESULT disk_readp (
        DRESULT ErrorCode = RES_OK;
        uint8_t BlockTemp[512];
 
-       if (USB_CurrentMode == USB_MODE_HOST)
+       if (USB_CurrentMode == USB_MODE_Host)
        {
                #if defined(USB_CAN_BE_HOST)
                if (USB_HostState != HOST_STATE_Configured)