Skip to content

Commit 1d1fcc7

Browse files
mrfuchsgalak
authored andcommitted
fat_fs: Expose _VOLUMES to Kconfig
Expose _VOLUMES as CONFIG_FS_FATFS_VOLUMES to Kconfig to be able to adjust the number of used logical drives. Signed-off-by: Markus Fuchs <[email protected]>
1 parent 320e2c0 commit 1d1fcc7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ _MAX_LFN as CONFIG_FS_FATFS_MAX_LFN
2222
_CODE_PAGE as CONFIG_FS_FATFS_CODEPAGE
2323
_FS_READONLY as CONFIG_FS_FATFS_READ_ONLY
2424
_USE_MKFS as CONFIG_FS_FATFS_MKFS
25+
_VOLUMES as CONFIG_FS_FATFS_VOLUMES

include/ffconf.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@
174174
/ Drive/Volume Configurations
175175
/---------------------------------------------------------------------------*/
176176

177+
#if defined(CONFIG_FS_FATFS_VOLUMES)
178+
#define _VOLUMES CONFIG_FS_FATFS_VOLUMES
179+
#else
177180
#define _VOLUMES 8
181+
#endif
178182
/* Number of volumes (logical drives) to be used. */
179183

180184

0 commit comments

Comments
 (0)