mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
fatfs: expose FF_USE_FASTSEEK option
This commit is contained in:
@@ -180,4 +180,16 @@ menu "FAT Filesystem support"
|
|||||||
Disable this option if optimizing for performance. Enable this option if
|
Disable this option if optimizing for performance. Enable this option if
|
||||||
optimizing for internal memory size.
|
optimizing for internal memory size.
|
||||||
|
|
||||||
|
|
||||||
|
config FATFS_USE_FASTSEEK
|
||||||
|
bool "Enable fast seek algorithm when using f_lseek function"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
The fast seek feature enables fast backward/long seek operations without
|
||||||
|
FAT access by using an in-memory CLMT (cluster link map table).
|
||||||
|
It is applied to f_read and f_write function as well, however,
|
||||||
|
the file size cannot be expanded by f_write.
|
||||||
|
f_lseek function while the file is at fast seek mode.
|
||||||
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
|
/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */
|
||||||
|
|
||||||
|
|
||||||
#define FF_USE_FASTSEEK 0
|
#define FF_USE_FASTSEEK CONFIG_FATFS_USE_FASTSEEK
|
||||||
/* This option switches fast seek function. (0:Disable or 1:Enable) */
|
/* This option switches fast seek function. (0:Disable or 1:Enable) */
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user