Fixed broken USE_RAM_DESCRIPTORS compile time option when the FIXED_NUM_CONFIGURATION...
[pub/USBasp.git] / Projects / TempDataLogger / Lib / FATFs / diskio.c
index 4006877..8cc8cd4 100644 (file)
@@ -38,7 +38,7 @@ DRESULT disk_read (
        BYTE drv,               /* Physical drive number (0..) */
        BYTE *buff,             /* Data buffer to store read data */
        DWORD sector,   /* Sector address (LBA) */
        BYTE drv,               /* Physical drive number (0..) */
        BYTE *buff,             /* Data buffer to store read data */
        DWORD sector,   /* Sector address (LBA) */
-       BYTE count              /* Number of sectors to read (1..255) */
+       BYTE count              /* Number of sectors to read (1..128) */
 )
 {
        DataflashManager_ReadBlocks_RAM(sector, count, buff);
 )
 {
        DataflashManager_ReadBlocks_RAM(sector, count, buff);
@@ -55,7 +55,7 @@ DRESULT disk_write (
        BYTE drv,                       /* Physical drive number (0..) */
        const BYTE *buff,       /* Data to be written */
        DWORD sector,           /* Sector address (LBA) */
        BYTE drv,                       /* Physical drive number (0..) */
        const BYTE *buff,       /* Data to be written */
        DWORD sector,           /* Sector address (LBA) */
-       BYTE count                      /* Number of sectors to write (1..255) */
+       BYTE count                      /* Number of sectors to write (1..128) */
 )
 {
        DataflashManager_WriteBlocks_RAM(sector, count, buff);
 )
 {
        DataflashManager_WriteBlocks_RAM(sector, count, buff);
@@ -85,7 +85,7 @@ DWORD get_fattime (void)
 {
        TimeDate_t CurrTimeDate;
 
 {
        TimeDate_t CurrTimeDate;
 
-       DS1307_GetTimeDate(&CurrTimeDate);
+       RTC_GetTimeDate(&CurrTimeDate);
 
 
        return ((DWORD)(20 + CurrTimeDate.Year) << 25) |
 
 
        return ((DWORD)(20 + CurrTimeDate.Year) << 25) |