forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup/unify flash sector size define value (esp8266#5327)
* cleanup/unify sector size define value * replicate spi_flash_sec_size.h file for host tests * further flash geometry cleanup, remove host test duplicate file
- Loading branch information
Showing
7 changed files
with
35 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef SPI_FLASH_GEOMETRY_H | ||
#define SPI_FLASH_GEOMETRY_H | ||
|
||
/* The flash geometry is meant to be unified here. This header file should be included wherever needed. | ||
* Beware: this file is needed by eboot as well as the Arduino core. | ||
*/ | ||
|
||
#define FLASH_SECTOR_SIZE 0x1000 | ||
#define FLASH_BLOCK_SIZE 0x10000 | ||
#define APP_START_OFFSET 0x1000 | ||
|
||
//pulled this define from spi_flash.h for reuse in the Arduino core without pulling in a bunch of other stuff | ||
#define SPI_FLASH_SEC_SIZE FLASH_SECTOR_SIZE | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters