Skip to content

Commit 35b5b52

Browse files
authored
Added config for FAT label (espressif#178)
This activates the code for f_setlabel() and f_getlabel. These functions should take up less than 1k of symbol space. Once these are available, I will add one-liner functions to the FFat and SD libraries to set/get volume name. I'm working on an example which exposes an SD card through the USBMSC, and being able to set the name would be a very nice touch.
1 parent 536bdcb commit 35b5b52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: configs/defconfig.common

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ CONFIG_FATFS_CODEPAGE_850=y
3636
CONFIG_FATFS_LFN_STACK=y
3737
# CONFIG_FATFS_API_ENCODING_ANSI_OEM is not set
3838
CONFIG_FATFS_API_ENCODING_UTF_8=y
39+
CONFIG_FATFS_USE_LABEL=y
3940
# CONFIG_FMB_CONTROLLER_SLAVE_ID_SUPPORT is not set
4041
CONFIG_FMB_TIMER_PORT_ENABLED=y
4142
CONFIG_FREERTOS_HZ=1000

0 commit comments

Comments
 (0)