1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

enhance board flash handling and eeprom location

This commit is contained in:
ficeto
2015-05-15 20:06:13 +03:00
parent 540fdb0f8c
commit ea9368c88d
2 changed files with 43 additions and 28 deletions

View File

@ -28,9 +28,10 @@
#include "os_type.h"
#include "osapi.h"
#include "spi_flash.h"
extern uint32_t _SPIFFS_end;
}
#define CONFIG_START_SECTOR 0x7b
#define CONFIG_START_SECTOR (((uint32_t)_SPIFFS_end - 0x40200000) / 4096)
#define CONFIG_SECTOR (CONFIG_START_SECTOR + 0)
#define CONFIG_ADDR (SPI_FLASH_SEC_SIZE * CONFIG_SECTOR)