summaryrefslogtreecommitdiff
path: root/esp8266/modules
AgeCommit message (Collapse)Author
2017-01-06esp8266/modules/flashbdev: Change RESERVED_SECS to 0.Damien George
This effectively reverts the change that introduced this new constant. The reason is so that users do not need to rebuild the filesystem on their modules when upgrading the firmware. Users can change RESERVED_SECS by hand if they need the feature, and in future firmware it may default to a non-zero value.
2017-01-06esp8266/modules/flashbdev: Remove now-unused function set_bl_flash_size.Damien George
2017-01-05esp8266/modules/flashbdev: Remove code to patch bootloader flash size.Paul Sokolovsky
This code is no longer pertinent for some time - since switchover to SDK2.0, there must be correct flash size set for bootloader, or there's a risk of flash data corruption. And indeed, the correct flash size is by default auto-detected by esptool.py 1.2.
2017-01-04esp8266/modules/flashbdev: Add RESERVED_SECS before the filesystem.Damien George
Starting at esp.flash_user_start(), the reserved sectors are for general purpose use, for example for native code generation. There is currently one sector reserved as such.
2016-12-05esp8266: Move websocket_helper.py from scripts to modules for frozen BC.puuu
websocket_helper.py is used by webrepl. If webrepl is enabled and websocket_helper.py is not frozen bytecode it leads to heap fragmentation.
2016-11-08esp8266: Include upip as a standard frozen bytecode module.Paul Sokolovsky
Previously, it was included only in release builds, but it's important tool which should be always at the fingertips to be useful (and to pump up its usage).
2016-11-06esp8266: Rework webrepl_setup to run over wired REPL.Paul Sokolovsky
2016-11-03drivers: Add "from micropython import const" when const is used.Damien George
Following best-practice use of the const feature, to make it compatible with Python.
2016-11-02esp8266/modules: Fix negative temperature in ds18x20 driver.ernitron
2016-10-24esp8266/modesp: Add flash_user_start() function.Paul Sokolovsky
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.
2016-10-20esp8266/modules/webrepl: Enforce only one concurrent WebREPL connection.Paul Sokolovsky
Concurrent WebREPL connections were never supported, now actually check for this.
2016-08-29esp8266/modules/ds18x20.py: Add support for DS18S20 devices.Damien George
2016-08-29esp8266/modules/onewire: Change onewire.read() to onewire.readinto().Damien George
This allows 1-wire drivers (eg DS18X20) to perform in-place operations and hence do less memory allocations.
2016-08-29esp8266/modules: Split onewire.py into OneWire and DS18X20 driver.Damien George
The OneWire class is now in its own onewire.py module, and the temperature sensor class is in its own ds18x20.py module. The latter is renamed to DS18X20 to reflect the fact that it will support both the "S" and "B" variants of the device. These files are moved to the modules/ subdirectory to take advantage of frozen bytecode.
2016-08-09esp8266/modules/flashbdev: Start filesystem at 0x90000.Paul Sokolovsky
To accommodate growing firmware.
2016-08-06esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.Paul Sokolovsky
2016-07-23esp8266/_boot.py: Decrease GC alloc threshold to quarter of heap size.Paul Sokolovsky
The idea behind decrease is: bytecode and other static data is also kept on heap, and can easily become half of heap, then setting threshold to half of heap will have null effect - GC will happen on complete heap exhaustion like before. But exactly in such config maintaining heap defragmented is very important, so lower threshold to accommodate that.
2016-07-23esp8266/_boot.py: Set GC alloc threshold to half of heap size.Paul Sokolovsky
Should keep good chunk of heap unfragmented, if a user application allows that at all.
2016-07-02esp8266: Switch webrepl to use frozen bytecode.Paul Sokolovsky
2016-07-02esp8266: Switch webrepl_setup to use frozen bytecode.Paul Sokolovsky
2016-07-02esp8266: Explicitly collect garbage in bootstrap scripts.Paul Sokolovsky
Leads to less fragmentation at teh time user code starts.
2016-06-29esp8266: Enable frozen bytecode, with scripts in modules/ subdir.Damien George
To start with, the critical scripts _boot.py and flashbdev.py are frozen to improve performance and reduce RAM consumption. Saves about 1000 bytes of heap RAM for a bare boot with filesystem.