fatfs: add configuration of allocation unit size

Closes https://github.com/espressif/esp-idf/issues/1382.
This commit is contained in:
Ivan Grokhotkov
2018-01-08 16:21:02 +08:00
parent e381c6adde
commit 59859fa53c
7 changed files with 67 additions and 8 deletions

View File

@@ -81,7 +81,8 @@ void app_main(void)
// formatted in case when mounting fails.
esp_vfs_fat_sdmmc_mount_config_t mount_config = {
.format_if_mount_failed = false,
.max_files = 5
.max_files = 5,
.allocation_unit_size = 16 * 1024
};
// Use settings defined above to initialize SD card and mount FAT filesystem.