diff --git a/sys/fs/fat/fat_opts.h b/sys/fs/fat/fat_opts.h index f827b30..d9983b6 100644 --- a/sys/fs/fat/fat_opts.h +++ b/sys/fs/fat/fat_opts.h @@ -11,12 +11,12 @@ // Is the processor little endian (1) or big endian (0) #ifndef FATFS_IS_LITTLE_ENDIAN - #define FATFS_IS_LITTLE_ENDIAN 1 +#define FATFS_IS_LITTLE_ENDIAN 1 #endif // Max filename Length #ifndef FATFS_MAX_LONG_FILENAME - #define FATFS_MAX_LONG_FILENAME 260 +#define FATFS_MAX_LONG_FILENAME 260 #endif // Max open files (reduce to lower memory requirements) @@ -26,13 +26,13 @@ // Number of sectors per FAT_BUFFER (min 1) #ifndef FAT_BUFFER_SECTORS - #define FAT_BUFFER_SECTORS 1 +#define FAT_BUFFER_SECTORS 1 #endif // Max FAT sectors to buffer (min 1) // (mem used is FAT_BUFFERS * FAT_BUFFER_SECTORS * FAT_SECTOR_SIZE) #ifndef FAT_BUFFERS - #define FAT_BUFFERS 1 +#define FAT_BUFFERS 1 #endif // Size of cluster chain cache (can be undefined) @@ -42,28 +42,28 @@ // Include support for writing files (1 / 0)? #ifndef FATFS_INC_WRITE_SUPPORT - #define FATFS_INC_WRITE_SUPPORT 1 +#define FATFS_INC_WRITE_SUPPORT 1 #endif // Support long filenames (1 / 0)? // (if not (0) only 8.3 format is supported) #ifndef FATFS_INC_LFN_SUPPORT - #define FATFS_INC_LFN_SUPPORT 1 +#define FATFS_INC_LFN_SUPPORT 1 #endif // Support directory listing (1 / 0)? #ifndef FATFS_DIR_LIST_SUPPORT - #define FATFS_DIR_LIST_SUPPORT 1 +#define FATFS_DIR_LIST_SUPPORT 1 #endif // Support time/date (1 / 0)? #ifndef FATFS_INC_TIME_DATE_SUPPORT - #define FATFS_INC_TIME_DATE_SUPPORT 0 +#define FATFS_INC_TIME_DATE_SUPPORT 0 #endif // Include support for formatting disks (1 / 0)? #ifndef FATFS_INC_FORMAT_SUPPORT - #define FATFS_INC_FORMAT_SUPPORT 1 +#define FATFS_INC_FORMAT_SUPPORT 1 #endif // Sector size used @@ -71,15 +71,15 @@ // Printf output (directory listing / debug) #ifndef FAT_PRINTF - // Don't include stdio, but there is a printf function available - #ifdef FAT_PRINTF_NOINC_STDIO +// Don't include stdio, but there is a printf function available +#ifdef FAT_PRINTF_NOINC_STDIO extern int printf(const char* ctrl1, ... ); #define FAT_PRINTF(a) printf a // Include stdio to use printf #else - #include - #define FAT_PRINTF(a) printf a - #endif +// #include +#define FAT_PRINTF(a) kprintf a +#endif #endif // Time/Date support requires time.h