diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-24 01:03:17 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-10-24 16:52:15 +0300 |
commit | e6af94d13b9cac617ca7976027726f84b2c69c30 (patch) | |
tree | 94a446dcead7e02dab42a030bf2bb9a3310ec8c7 /esp8266/modules/flashbdev.py | |
parent | 266e4acdc23609dac6810a98e16d677aebe3bc53 (diff) | |
download | micropython-e6af94d13b9cac617ca7976027726f84b2c69c30.tar.gz micropython-e6af94d13b9cac617ca7976027726f84b2c69c30.zip |
esp8266/modesp: Add flash_user_start() function.
As we're looking towards adding OTA support, calculation of a FlashROM
area which can be used for filesystem (etc.) may become complex, so
introduce C function for that. So far it just hardcodes current value,
0x90000. In the future the function may be extended (and renamed) to
return the size of area too.
Diffstat (limited to 'esp8266/modules/flashbdev.py')
-rw-r--r-- | esp8266/modules/flashbdev.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/modules/flashbdev.py b/esp8266/modules/flashbdev.py index 98b0208fb6..e879895fb0 100644 --- a/esp8266/modules/flashbdev.py +++ b/esp8266/modules/flashbdev.py @@ -3,7 +3,7 @@ import esp class FlashBdev: SEC_SIZE = 4096 - START_SEC = 0x90000 // SEC_SIZE + START_SEC = esp.flash_user_start() // SEC_SIZE NUM_BLK = 0x6b def __init__(self, blocks=NUM_BLK): |