summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules
Commit message (Collapse)AuthorAge
* esp8266: Reinstate 1-wire scripts by sym-linking to drivers/onewire/.Damien George2017-06-22
| | | | No changes have been made to the code, the files just moved.
* drivers/onewire: Move onewire.py, ds18x20.py from esp8266 to drivers.Damien George2017-06-22
| | | | | | | | | | | | | | | These drivers can now be used by any port (so long as that port has the _onewire driver from extmod/modonewire.c). These drivers replace the existing 1-wire and DS18X20 drivers in the drivers/onewire directory. The existing ones were pyboard-specific and not very efficient nor minimal (although the 1-wire driver was written in pure Python it only worked at large enough CPU frequency). This commit brings backwards incompatible API changes to the existing 1-wire drivers. User code should be converted to use the new drivers, or check out the old version of the code and keep a local copy (it should continue to work unchanged).
* esp8266/modules: Mount filesystem at root when creating for first time.Damien George2017-05-26
|
* esp8266/scripts: Move initsetup & port_diag tools to modules/.Paul Sokolovsky2017-05-12
|
* esp8266/scripts: Move drivers/modules to modules/ (frozen bytecode).Paul Sokolovsky2017-05-12
|
* esp8266/modules/flashbdev: Reserve one sector for native code storage.Paul Sokolovsky2017-05-12
|
* esp8266: Change default settings to mount flash at root dir.Damien George2017-05-05
|
* esp8266: Change to use new generic VFS sub-system.Damien George2017-01-27
| | | | | | The VFS sub-system supports mounting of an arbitrary number of devices (limited only by available RAM). The internal flash is now mounted at "/flash".
* esp8266/modules/flashbdev: Change RESERVED_SECS to 0.Damien George2017-01-06
| | | | | | | | | 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.
* esp8266/modules/flashbdev: Remove now-unused function set_bl_flash_size.Damien George2017-01-06
|
* esp8266/modules/flashbdev: Remove code to patch bootloader flash size.Paul Sokolovsky2017-01-05
| | | | | | | 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.
* esp8266/modules/flashbdev: Add RESERVED_SECS before the filesystem.Damien George2017-01-04
| | | | | | 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.
* esp8266: Move websocket_helper.py from scripts to modules for frozen BC.puuu2016-12-05
| | | | | | websocket_helper.py is used by webrepl. If webrepl is enabled and websocket_helper.py is not frozen bytecode it leads to heap fragmentation.
* esp8266: Include upip as a standard frozen bytecode module.Paul Sokolovsky2016-11-08
| | | | | | 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).
* esp8266: Rework webrepl_setup to run over wired REPL.Paul Sokolovsky2016-11-06
|
* drivers: Add "from micropython import const" when const is used.Damien George2016-11-03
| | | | | Following best-practice use of the const feature, to make it compatible with Python.
* esp8266/modules: Fix negative temperature in ds18x20 driver.ernitron2016-11-02
|
* esp8266/modesp: Add flash_user_start() function.Paul Sokolovsky2016-10-24
| | | | | | | | 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.
* esp8266/modules/webrepl: Enforce only one concurrent WebREPL connection.Paul Sokolovsky2016-10-20
| | | | | Concurrent WebREPL connections were never supported, now actually check for this.
* esp8266/modules/ds18x20.py: Add support for DS18S20 devices.Damien George2016-08-29
|
* esp8266/modules/onewire: Change onewire.read() to onewire.readinto().Damien George2016-08-29
| | | | | This allows 1-wire drivers (eg DS18X20) to perform in-place operations and hence do less memory allocations.
* esp8266/modules: Split onewire.py into OneWire and DS18X20 driver.Damien George2016-08-29
| | | | | | | | | | 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.
* esp8266/modules/flashbdev: Start filesystem at 0x90000.Paul Sokolovsky2016-08-09
| | | | To accommodate growing firmware.
* esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.Paul Sokolovsky2016-08-06
|
* esp8266/_boot.py: Decrease GC alloc threshold to quarter of heap size.Paul Sokolovsky2016-07-23
| | | | | | | | 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.
* esp8266/_boot.py: Set GC alloc threshold to half of heap size.Paul Sokolovsky2016-07-23
| | | | | Should keep good chunk of heap unfragmented, if a user application allows that at all.
* esp8266: Switch webrepl to use frozen bytecode.Paul Sokolovsky2016-07-02
|
* esp8266: Switch webrepl_setup to use frozen bytecode.Paul Sokolovsky2016-07-02
|
* esp8266: Explicitly collect garbage in bootstrap scripts.Paul Sokolovsky2016-07-02
| | | | Leads to less fragmentation at teh time user code starts.
* esp8266: Enable frozen bytecode, with scripts in modules/ subdir.Damien George2016-06-29
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.