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:
Vendored
+2
-2
@@ -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
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user