fs/fatfs: Move FF_USE_LFN logic to Kconfig
Commit add hidden Kconfig option CONFIG_FS_FATFS_FF_USE_LFN that is passed to ELM FAT to define FF_USE_LFN configuration. The FF_USE_LFN still depends, indirectly, on choice CONFIG_FS_FATFS_LFN_MODE config options CONFIG_FS_FATFS_LFN_MODE_BSS, FS_FATFS_LFN_MODE_STACK and FS_FATFS_LFN_MODE_HEAP, but the logic has been moved out of zephyr_fatfs_config.h into Kconfig file. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
parent
2e961102c1
commit
1e0f36e896
2 changed files with 12 additions and 7 deletions
|
@ -33,14 +33,10 @@
|
|||
#define FF_CODE_PAGE 437
|
||||
#endif /* defined(CONFIG_FS_FATFS_CODEPAGE) */
|
||||
|
||||
#if defined(CONFIG_FS_FATFS_LFN)
|
||||
#if defined(CONFIG_FS_FATFS_FF_USE_LFN)
|
||||
#if CONFIG_FS_FATFS_FF_USE_LFN <= 3
|
||||
#undef FF_USE_LFN
|
||||
#if CONFIG_FS_FATFS_LFN_MODE_BSS
|
||||
#define FF_USE_LFN 1
|
||||
#elif CONFIG_FS_FATFS_LFN_MODE_STACK
|
||||
#define FF_USE_LFN 2
|
||||
#elif CONFIG_FS_FATFS_LFN_MODE_HEAP
|
||||
#define FF_USE_LFN 3
|
||||
#define FF_USE_LFN CONFIG_FS_FATFS_FF_USE_LFN
|
||||
#else
|
||||
#error Invalid LFN buffer location
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue