mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-21 21:22:31 +03:00
alignment not needed. we use fixed addresses
This commit is contained in:
@ -43,8 +43,6 @@ spiffs_config spiffs_get_storage_config()
|
|||||||
spiffs_config cfg = {0};
|
spiffs_config cfg = {0};
|
||||||
if ((u32_t)&_SPIFFS_start == 0) return cfg;
|
if ((u32_t)&_SPIFFS_start == 0) return cfg;
|
||||||
cfg.phys_addr = (u32_t)&_SPIFFS_start;
|
cfg.phys_addr = (u32_t)&_SPIFFS_start;
|
||||||
cfg.phys_addr += 0x3000;
|
|
||||||
cfg.phys_addr &= 0xFFFFC000; // align to 4 sector.
|
|
||||||
cfg.phys_size = (u32_t)((u32_t)&_SPIFFS_end - (u32_t)&_SPIFFS_start);
|
cfg.phys_size = (u32_t)((u32_t)&_SPIFFS_end - (u32_t)&_SPIFFS_start);
|
||||||
cfg.phys_erase_block = INTERNAL_FLASH_SECTOR_SIZE; // according to datasheet
|
cfg.phys_erase_block = INTERNAL_FLASH_SECTOR_SIZE; // according to datasheet
|
||||||
cfg.log_block_size = INTERNAL_FLASH_SECTOR_SIZE * 2; // Important to make large
|
cfg.log_block_size = INTERNAL_FLASH_SECTOR_SIZE * 2; // Important to make large
|
||||||
|
Reference in New Issue
Block a user