Browse Source

Add 8M and 16M fixed flash size options.

HuangRui 9 years ago
parent
commit
c7c88feae4
2 changed files with 6 additions and 0 deletions
  1. 2 0
      app/include/user_config.h
  2. 4 0
      app/platform/cpu_esp8266.h

+ 2 - 0
app/include/user_config.h

@@ -13,6 +13,8 @@
 // #define FLASH_1M
 // #define FLASH_2M
 // #define FLASH_4M
+// #define FLASH_8M
+// #define FLASH_16M
 #define FLASH_AUTOSIZE
 // #define DEVELOP_VERSION
 #define FULL_VERSION_FOR_USER

+ 4 - 0
app/platform/cpu_esp8266.h

@@ -25,6 +25,10 @@
 #define FLASH_SEC_NUM 	0x200
 #elif defined(FLASH_4M)
 #define FLASH_SEC_NUM 	0x400
+#elif defined(FLASH_8M)
+#define FLASH_SEC_NUM 	0x800
+#elif defined(FLASH_16M)
+#define FLASH_SEC_NUM 	0x1000
 #elif defined(FLASH_AUTOSIZE)
 #define FLASH_SEC_NUM 	(flash_get_sec_num())
 #else