kopia lustrzana https://github.com/espressif/esp-idf
fatfs/test: use 16k cluster size to speed up formatting
rodzic
4a2489b99a
commit
e20e64ace9
|
@ -39,7 +39,8 @@ static void test_setup(void)
|
||||||
sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT();
|
sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT();
|
||||||
esp_vfs_fat_sdmmc_mount_config_t mount_config = {
|
esp_vfs_fat_sdmmc_mount_config_t mount_config = {
|
||||||
.format_if_mount_failed = true,
|
.format_if_mount_failed = true,
|
||||||
.max_files = 5
|
.max_files = 5,
|
||||||
|
.allocation_unit_size = 16 * 1024
|
||||||
};
|
};
|
||||||
TEST_ESP_OK(esp_vfs_fat_sdmmc_mount("/sdcard", &host, &slot_config, &mount_config, NULL));
|
TEST_ESP_OK(esp_vfs_fat_sdmmc_mount("/sdcard", &host, &slot_config, &mount_config, NULL));
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue