Fixes #3374: added SD card disk cache for Horus

* SIMU_DISKIO option available again
 * new option DISK_CACHE defaults to ON for Horus
 * printf("%f") fixed in CLI
This commit is contained in:
Damjan Adamic
2016-04-09 17:09:46 +02:00
parent ee9bb73ef9
commit 868133371c
14 changed files with 334 additions and 20 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
#ifndef _DISKIO_DEFINED
#define _DISKIO_DEFINED
#if defined(__cplusplus) && !defined(SIMU)
#if defined(__cplusplus)
extern "C" {
#endif
@@ -73,7 +73,7 @@ DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
#define ATA_GET_MODEL 21 /* Get model name */
#define ATA_GET_SN 22 /* Get serial number */
#if defined(__cplusplus) && !defined(SIMU)
#if defined(__cplusplus)
}
#endif
+1 -1
View File
@@ -238,7 +238,7 @@ TCHAR* f_gets (TCHAR* buff, int len, FIL* fp); /* Get a string from the fil
#define f_eof(fp) ((int)((fp)->fptr == (fp)->fsize))
#define f_error(fp) ((fp)->err)
#define f_tell(fp) ((fp)->fptr)
#if !defined(SIMU)
#if !defined(SIMU) || defined(SIMU_DISKIO)
#define f_size(fp) ((fp)->fsize)
#else
UINT f_size(FIL* fil);