]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - vtoycli/fat_io_lib/include/fat_opts.h
4 #ifdef FATFS_USE_CUSTOM_OPTS_FILE
5 #include "fat_custom.h"
8 //-------------------------------------------------------------
10 //-------------------------------------------------------------
12 // Is the processor little endian (1) or big endian (0)
13 #ifndef FATFS_IS_LITTLE_ENDIAN
14 #define FATFS_IS_LITTLE_ENDIAN 1
17 // Max filename Length
18 #ifndef FATFS_MAX_LONG_FILENAME
19 #define FATFS_MAX_LONG_FILENAME 260
22 // Max open files (reduce to lower memory requirements)
23 #ifndef FATFS_MAX_OPEN_FILES
24 #define FATFS_MAX_OPEN_FILES 2
27 // Number of sectors per FAT_BUFFER (min 1)
28 #ifndef FAT_BUFFER_SECTORS
29 #define FAT_BUFFER_SECTORS 1
32 // Max FAT sectors to buffer (min 1)
33 // (mem used is FAT_BUFFERS * FAT_BUFFER_SECTORS * FAT_SECTOR_SIZE)
38 // Size of cluster chain cache (can be undefined)
39 // Mem used = FAT_CLUSTER_CACHE_ENTRIES * 4 * 2
40 // Improves access speed considerably
41 //#define FAT_CLUSTER_CACHE_ENTRIES 128
43 // Include support for writing files (1 / 0)?
44 #ifndef FATFS_INC_WRITE_SUPPORT
45 #define FATFS_INC_WRITE_SUPPORT 1
48 // Support long filenames (1 / 0)?
49 // (if not (0) only 8.3 format is supported)
50 #ifndef FATFS_INC_LFN_SUPPORT
51 #define FATFS_INC_LFN_SUPPORT 1
54 // Support directory listing (1 / 0)?
55 #ifndef FATFS_DIR_LIST_SUPPORT
56 #define FATFS_DIR_LIST_SUPPORT 1
59 // Support time/date (1 / 0)?
60 #ifndef FATFS_INC_TIME_DATE_SUPPORT
61 #define FATFS_INC_TIME_DATE_SUPPORT 0
64 // Include support for formatting disks (1 / 0)?
65 #ifndef FATFS_INC_FORMAT_SUPPORT
66 #define FATFS_INC_FORMAT_SUPPORT 1
70 #define FAT_SECTOR_SIZE 512
72 // Printf output (directory listing / debug)
74 // Don't include stdio, but there is a printf function available
75 #ifdef FAT_PRINTF_NOINC_STDIO
76 extern int printf(const char* ctrl1
, ... );
77 #define FAT_PRINTF(a) printf a
78 // Include stdio to use printf
81 #define FAT_PRINTF(a) printf a
85 // Time/Date support requires time.h
86 #if FATFS_INC_TIME_DATE_SUPPORT