fs: fatfs: additional ELM FAT options

Make additional ELM FAT library options configurable to the user.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2024-07-11 14:58:16 +10:00 committed by Anas Nashif
commit a1d6f8081a
2 changed files with 37 additions and 0 deletions

View file

@ -89,7 +89,11 @@
#define FF_FS_TINY 1
#undef FF_FS_NORTC
#if defined(CONFIG_FS_FATFS_HAS_RTC)
#define FF_FS_NORTC 0
#else
#define FF_FS_NORTC 1
#endif /* defined(CONFIG_FS_FATFS_HAS_RTC) */
/* Zephyr uses FF_VOLUME_STRS */
#undef FF_STR_VOLUME_ID
@ -104,6 +108,15 @@
#undef FF_VOLUMES
#define FF_VOLUMES 8
#if defined(CONFIG_FS_FATFS_EXTRA_NATIVE_API)
#undef FF_USE_LABEL
#undef FF_USE_EXPAND
#undef FF_USE_FIND
#define FF_USE_LABEL 1
#define FF_USE_EXPAND 1
#define FF_USE_FIND 1
#endif /* defined(CONFIG_FS_FATFS_EXTRA_NATIVE_API) */
/*
* Options provided below have been added to ELM FAT source code to
* support Zephyr specific features, and are not part of ffconf.h.