Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
c7c88fea
Commit
c7c88fea
authored
Feb 11, 2015
by
HuangRui
Browse files
Add 8M and 16M fixed flash size options.
parent
f1f508ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/include/user_config.h
View file @
c7c88fea
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
// #define FLASH_1M
// #define FLASH_1M
// #define FLASH_2M
// #define FLASH_2M
// #define FLASH_4M
// #define FLASH_4M
// #define FLASH_8M
// #define FLASH_16M
#define FLASH_AUTOSIZE
#define FLASH_AUTOSIZE
// #define DEVELOP_VERSION
// #define DEVELOP_VERSION
#define FULL_VERSION_FOR_USER
#define FULL_VERSION_FOR_USER
...
...
app/platform/cpu_esp8266.h
View file @
c7c88fea
...
@@ -25,6 +25,10 @@
...
@@ -25,6 +25,10 @@
#define FLASH_SEC_NUM 0x200
#define FLASH_SEC_NUM 0x200
#elif defined(FLASH_4M)
#elif defined(FLASH_4M)
#define FLASH_SEC_NUM 0x400
#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)
#elif defined(FLASH_AUTOSIZE)
#define FLASH_SEC_NUM (flash_get_sec_num())
#define FLASH_SEC_NUM (flash_get_sec_num())
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment