X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/a95d2241851a4877189b11854f25ff65b6a2b411..3642ea0b9715cdf0196b10c9fc97898940eaefa6:/Projects/TempDataLogger/Lib/FATFs/diskio.h?ds=sidebyside diff --git a/Projects/TempDataLogger/Lib/FATFs/diskio.h b/Projects/TempDataLogger/Lib/FATFs/diskio.h index 5df77502c..d3c3149a5 100644 --- a/Projects/TempDataLogger/Lib/FATFs/diskio.h +++ b/Projects/TempDataLogger/Lib/FATFs/diskio.h @@ -2,10 +2,12 @@ / Low level disk interface module include file /-----------------------------------------------------------------------*/ -#ifndef _DISKIO +#ifndef _DISKIO_DEFINED +#define _DISKIO_DEFINED -#define _READONLY 0 /* 1: Read-only mode */ -#define _USE_IOCTL 1 +#ifdef __cplusplus +extern "C" { +#endif #include "integer.h" @@ -43,7 +45,11 @@ DRESULT disk_ioctl (BYTE, BYTE, void*); #define STA_NODISK 0x02 /* No medium in the drive */ #define STA_PROTECT 0x04 /* Write protected */ +/* Generic command */ +#define CTRL_SYNC 0 /* Mandatory for write functions */ -#define _DISKIO +#ifdef __cplusplus +} #endif +#endif