Merge branch 'feature/configure_flash_write_chunk_size' into 'master'

spi_flash: add configuration option to select flash write chunk size

See merge request espressif/esp-idf!9067
This commit is contained in:
Michael (XIAO Xufeng)
2020-06-22 14:50:42 +08:00
3 changed files with 20 additions and 0 deletions

View File

@@ -28,7 +28,12 @@
static const char TAG[] = "spi_flash";
#ifdef CONFIG_SPI_FLASH_WRITE_CHUNK_SIZE
#define MAX_WRITE_CHUNK CONFIG_SPI_FLASH_WRITE_CHUNK_SIZE /* write in chunks */
#else
#define MAX_WRITE_CHUNK 8192 /* write in chunks */
#endif // CONFIG_SPI_FLASH_WRITE_CHUNK_SIZE
#define MAX_READ_CHUNK 16384