summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
Commit message (Collapse)AuthorAge
* extmod/vfs_fat: Remove MICROPY_FATFS_OO config option.Damien George2017-01-30
| | | | | Everyone should now be using the new ooFatFs library. The old one is no longer supported and will be removed.
* esp8266/mpconfigport.h: Remove obsolete MICROPY_FATFS_VOLUMES config.Damien George2017-01-30
|
* esp8266/modmachine: Add Signal class.Paul Sokolovsky2017-01-29
|
* esp8266/machine_pin: Implement pin ioctl protocol.Paul Sokolovsky2017-01-29
| | | | For polymorphic interfacing on C level.
* esp8266/fatfs_port: Include new oofatfs header.Damien George2017-01-27
|
* 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".
* extmod: Rename vfs_fat_file.h to vfs_fat.h.Damien George2017-01-27
| | | | And move declaration of mp_fat_vfs_type to this file.
* esp8266: Switch to use OO version of FatFs library.Damien George2017-01-27
|
* esp8266: Factor out common linker code to esp8266_common.ld.Damien George2017-01-25
|
* esp8266: Convert to use builtin help function.Damien George2017-01-22
|
* 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.
* all: Consistently update signatures of .make_new and .call methods.Paul Sokolovsky2017-01-04
| | | | | Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
* 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/Makefile: Put firmware-ota.bin in build/, for consistency.Paul Sokolovsky2017-01-04
|
* esp8266/modesp: Fix a typo, print -> printf.TheSpooler2017-01-03
|
* esp8266/modesp: Make check_fw() work with OTA firmware.Paul Sokolovsky2017-01-03
|
* esp8266/Makefile: Produce OTA firmware as firmware-ota.bin.Paul Sokolovsky2017-01-02
|
* esp8266/scripts/inisetup: Dump FS starting sector/size on error.Paul Sokolovsky2017-01-02
| | | | Should allow to diagnose/try to recover FS easier.
* stmhal, esp8266: Enable utimeq module.Paul Sokolovsky2016-12-23
|
* esp8266: Force relinking OTA firmware image if built after normal one.Paul Sokolovsky2016-12-20
|
* esp8266/modesp: flash_user_start(): Support configuration with yaota8266.Paul Sokolovsky2016-12-20
| | | | | It's pretty rough way to detect yaota8266 being used, but otherwise allows to have a filesystem in such config.
* esp8266: When doing GC be sure to trace the memory holding native code.Damien George2016-12-20
| | | | | Native code can hold pointers to objects on the heap, eg constant objects like big integers.
* esp8266: Add "erase" target to Makefile, to erase entire flash.Mike Causer2016-12-15
|
* esp8266: Use core-provided keyboard exception object.Damien George2016-12-15
|
* esp8266: Add "ota" target to produce firmware binary for use with yaota8266.Paul Sokolovsky2016-12-14
| | | | | https://github.com/pfalcon/yaota8266 is a (WIP) OTA-enabled bootloader which doesn't require reserving space 2x size of a firmware.
* py/runtime: Zero out fs_user_mount array in mp_init.Damien George2016-12-14
| | | | | There's no need to force ports to copy-and-paste this initialisation code. If FSUSERMOUNT is enabled then this zeroing out must be done.
* esp8266: Enable inline Xtensa assembler.Damien George2016-12-09
| | | | With this patch, @micropython.asm_xtensa can be used on the esp8266 port.
* esp8266: Enable native emitter for Xtensa arch.Damien George2016-12-09
| | | | | | | This patch allows esp8266 to use @micropython.native and @micropython.viper function decorators. By default the executable machine code is written to the space at the end of the iram1 region. The user can call esp.set_native_code_location() to make the code go to flash instead.
* esp8266/mpconfigport_512k: Disable framebuf module for 512k build.Damien George2016-12-08
| | | | | | The 512k build recently overflowed because of the newly-enabled uselect module. uselect is arguable more important than framebuf for small devices so we disable framebuf to keep the 512k build within its limit.
* esp8266: Refactor to use extmod implementation of software SPI class.Damien George2016-12-08
|
* extmod/machine_spi: Provide reusable software SPI class.Damien George2016-12-08
| | | | | | So long as a port defines relevant mp_hal_pin_xxx functions (and delay) it can make use of this software SPI class without the need for additional code.
* 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: Enable uselect module.Damien George2016-12-02
| | | | Select and poll will now work on socket objects.
* py/lexer: Make lexer use an mp_reader as its source.Damien George2016-11-16
|
* py/lexer: Provide generic mp_lexer_new_from_file based on mp_reader.Damien George2016-11-16
| | | | | | If a port defines MICROPY_READER_POSIX or MICROPY_READER_FATFS then lexer.c now provides an implementation of mp_lexer_new_from_file using the mp_reader_new_file function.
* py: Factor out persistent-code reader into separate files.Damien George2016-11-16
| | | | | | | Implementations of persistent-code reader are provided for POSIX systems and systems using FatFS. Macros to use these are MICROPY_READER_POSIX and MICROPY_READER_FATFS respectively. If an alternative implementation is needed then a port can define the function mp_reader_new_file.
* py: Factor persistent code load/save funcs into persistentcode.[ch].Damien George2016-11-16
|
* all: Remove readall() method, which is equivalent to read() w/o args.Paul Sokolovsky2016-11-14
| | | | | | Its addition was due to an early exploration on how to add CPython-like stream interface. It's clear that it's not needed and just takes up bytes in all ports.
* esp8266: Update 512k linker script, renaming modpyb to machine.Damien George2016-11-09
|
* esp8266/modnetwork.c: Expose configuration for station DHCP hostname.Chris Popp2016-11-09
| | | | | | | The ESP SDK supports configuring the hostname that is reported when doing a DHCP request in station mode. This commit exposes that under network.WLAN(network.STA_IF).config('dhcp_hostname') as a read/write value similar to other parameters.
* py: Move frozen bytecode Makefile rules from ports to common mk files.Damien George2016-11-08
| | | | | | Now, to use frozen bytecode all a port needs to do is define FROZEN_MPY_DIR to the directory containing the .py files to freeze, and define MICROPY_MODULE_FROZEN_MPY and MICROPY_QSTR_EXTRA_POOL.
* esp8266: Update docs for esptool 1.2.1/SDK 2.0 (--flash_size=detect).Paul Sokolovsky2016-11-08
|
* 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/espneopixel.c: Solve glitching LED issues with cpu at 80MHz.Olivier Ortigues2016-11-07
| | | | | | | | At the WS2812 driver level, a 400ns value was used for T0H (time high to send a 0 bit) but LED specification says it should be 350ns +- 150ns. Due to loop overhead the 400ns value could lead to T0H close to 500ns which is too close from the limit value and gave glitches (bad data to pixels) in some cases. This patch makes the calculated T0H value 350ns.
* esp8266: Rework webrepl_setup to run over wired REPL.Paul Sokolovsky2016-11-06
|
* esp8266: Rename "machine" module implementation to use contemporary naming.Paul Sokolovsky2016-11-06
| | | | | | | Previously they used historical "pyb" affix causing confusion and inconsistency (there's no "pyb" module in modern ports; but people took esp8266 port as an example, and "pyb" naming kept proliferating, while other people complained that source structure is not clear).
* 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
|