summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
Commit message (Collapse)AuthorAge
* lib/interrupt_char: Factor out typical Ctrl+C handling from esp8266 port.Paul Sokolovsky2016-09-29
| | | | | Utility functions for keyboard interrupt handling, to be reused across (baremetal) ports.
* esp8266: Add uos.statvfs() to get filesystem status.Alex March2016-09-27
|
* all: Remove 'name' member from mp_obj_module_t struct.Damien George2016-09-22
| | | | One can instead lookup __name__ in the modules dict to get the value.
* esp8266: Extend system microsecond counter to 64-bits; use in ticks_ms.Damien George2016-09-20
| | | | So now ticks_ms can count up to the full 30 bits. Fixes issue #2412.
* esp8266/esp_mphal: Add tentative change to mp_hal_stdin_rx_chr() to wait IRQ.Paul Sokolovsky2016-09-19
| | | | | Instead of busy-looping waiting for UART input. Not enabled by default, needs more testing.
* esp8266/ets_alt_task: ets_post: Should return 0 on success, !0 - failure.Paul Sokolovsky2016-09-18
|
* py: Move frozen modules rules from esp8266 port for reuse across ports.Paul Sokolovsky2016-09-17
| | | | | A port now just needs to define FROZEN_DIR var and add $(BUILD)/frozen.c to SRC_C to support frozen modules.
* esp8266/Makefile: Rename SCRIPTDIR to FROZEN_DIR for consistency.Paul Sokolovsky2016-09-17
| | | | With FROZEN_MPY_DIR.
* stmhal,cc3200,esp8266: Consistently use PWRON_RESET constant.Damien George2016-09-08
| | | | | | machine.POWER_ON is renamed to machine.PWRON_RESET to match other reset-cause constants that all end in _RESET. The cc3200 port keeps a legacy definition of POWER_ON for backwards compatibility.
* esp8266/modmachine: Map PWR_ON_RESET to vendor's REASON_DEFAULT_RST.Paul Sokolovsky2016-09-07
| | | | | | | When dealing with a board which controls chip reset with UART's DTR/RTS, we never see REASON_DEFAULT_RST (0), only REASON_EXT_SYS_RST (6). However, trying a "raw" module with with just TXD/RXD UART connection, on power up it has REASON_DEFAULT_RST as a reset reason.
* esp8266/modnetwork: Fix wlan.scan() method so it returns all networks.Damien George2016-09-06
| | | | | | | | According to the Arduino ESP8266 implementation the first argument to the wifi scan callback is actually a bss_info pointer. This patch fixes the iteration over this data so the first 2 entries are no longer skipped. Fixes issue #2372.
* esp8266/espneopixel: Disable IRQs during eps.neopixel_write.Torsten Wagner2016-09-06
| | | | | | Interrupts during neopixel_write causes timing problems and therefore wrong light patterns. Switching off IRQs should help to keep the strict timing schedule.
* unix,stmhal,esp8266: When find'ing frozen files follow symbolic links.Damien George2016-09-05
| | | | | It's useful to be able to use symbolic links to add files and directories to the set of scripts to be frozen.
* py: Add MICROPY_USE_INTERNAL_PRINTF option, defaults to enabled.Delio Brignoli2016-09-05
| | | | | | | | This new config option allows to control whether MicroPython uses its own internal printf or not (if not, an external one should be linked in). Accompanying this new option is the inclusion of lib/utils/printf.c in the core list of source files, so that ports no longer need to include it themselves.
* esp8266/modmachine: Simplify SPI class implementation multiplexing.Paul Sokolovsky2016-09-04
| | | | | | | | | | | | modpybhspi now does the needed multiplexing, calling out to modpybspi (bitbanging SPI) for suitable peripheral ID's. modmachinespi (previous multiplexer class) thus not needed and removed. modpybhspi also updated to following standard SPI peripheral naming: SPI0 is used for FlashROM and thus not supported so far. SPI1 is available for users, and thus needs to be instantiated as: spi = machine.SPI(1, ...)
* esp8266/modmachine: Don't expose internal SoftSPI and HSPI classes.Paul Sokolovsky2016-09-04
| | | | There functionality is available via standard SPI class.
* esp8266/modmachine: Add WDT_RESET and SOFT_RESET constants.Paul Sokolovsky2016-09-04
| | | | | Both tested to work. (WDT_RESET can be seen by issuing machine.disable_irq() and waiting for WDT reset, SOFT_RESET - by machine.reset()).
* esp8266/modmachinewdt: Add .deinit() method.Paul Sokolovsky2016-09-03
|
* esp8266/esp8266.ld: Move modmachinewdt to FlashROM.Paul Sokolovsky2016-09-03
|
* esp8266/modpybhspi: Simplify HSPI driver by using 1 function for xfers.Damien George2016-09-01
|
* esp8266/modpybspi: Use generic SPI helper methods to implement SPI.Damien George2016-09-01
|
* unix,stmhal,esp8266: When find'ing frozen files don't use extra slash.Damien George2016-08-31
| | | | | | | | This extra forward slash for the starting-point directory is unnecessary and leads to additional slashes on Max OS X which mean that the frozen files cannot be imported. Fixes #2374.
* 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/modmachinewdt: Implement machine.WDT class.Paul Sokolovsky2016-08-28
|
* esp8266/modous: Add os.umount method to unmount a filesystem.Radomir Dopieralski2016-08-26
| | | | | | | | This is an object-oriented approach, where uos is only a proxy for the methods on the vfs object. Some internals had to be exposed (the STATIC keyword removed) for this to work. Fixes #2338.
* esp8266/hspi: Enable duplex operation of hardware SPIRadomir Dopieralski2016-08-25
| | | | | | Without this, spi.read(1, 0xff) would use 16 clock cycles, first to send 0xff and then to receive one byte, as visible with a logic analyzer.
* esp8266/modpybrtc: Use 64-bit arithmetic when computing alarm expiry.Damien George2016-08-25
|
* esp8266/esp_mphal: No longer disable watchdog on startup.Paul Sokolovsky2016-08-20
| | | | Disabling it was an omission from early development stages.
* esp8266/modmachinespi: Add a factory method for SoftSPI/HSPIRadomir Dopieralski2016-08-19
|
* esp8266/modpybhspi: Add a HSPI module for hardware SPI supportRadomir Dopieralski2016-08-19
| | | | | | This module uses ESP8266's SPI hardware, which allows much higher speeds. It uses a library from https://github.com/MetalPhreak/ESP8266_SPI_Driver
* ports: Remove typedef of machine_ptr_t, it's no longer needed.Damien George2016-08-15
| | | | | | This type was used only for the typedef of mp_obj_t, which is now defined by the object representation. So we can now remove this unused typedef, to simplify the mpconfigport.h file.
* esp8266/mpconfigport.h: Enable support for all special methods.Paul Sokolovsky2016-08-14
|
* esp8266: PULL_UP is not supported on Pin(16), so raise an exception.Damien George2016-08-10
|
* esp8266: Fix reading of pin object for GPIO16.Damien George2016-08-10
| | | | Pin(16) now works as an input.
* esp8266/modules/flashbdev: Start filesystem at 0x90000.Paul Sokolovsky2016-08-09
| | | | To accommodate growing firmware.
* esp8266/esp8266.ld: Increase firmware image size to 0x90000 (576K).Paul Sokolovsky2016-08-09
| | | | | | | Of them, 0x87000 is irom0 segment. This is required to ship increasing number of modules and examples developed in teh course of ESP8266 port project.
* esp8266/modmachine: Implement dummy sleep() function.Paul Sokolovsky2016-08-07
|
* esp8266/modutime: Actually implement ticks_cpu().Paul Sokolovsky2016-08-07
|
* esp8266/esp_mphal.h: Add mp_hal_ticks_cpu() for reuse.Paul Sokolovsky2016-08-07
|
* esp8266/modmachine: Implement idle() function.Paul Sokolovsky2016-08-07
|
* esp8266/scripts/inisetup: Add commented-out call to esp.osdebug(None).Paul Sokolovsky2016-08-06
| | | | | | | That apparently will only help folks who read the docs on how to disable, but could use a quick reminder straight in boot.py. For the developers, it's important to have debug logging enabled in development branch (master).
* esp8266/flashbdev: Reserve extra sysparam sector for SDK 2.0.0 compatibility.Paul Sokolovsky2016-08-06
|
* esp8266/scripts/port_diag.py: Include esp.check_fw() call.Paul Sokolovsky2016-08-04
|
* esp8266/modesp: Add check_fw() function to check integrity of the firmware.Paul Sokolovsky2016-08-04
| | | | | Requires firmware generated by the latest makeimg.py (which stores size and md5 of the firmware together with the firmware itself).
* esp8266/makeimg.py: Append md5 hash to the generated binary.Paul Sokolovsky2016-08-04
| | | | | | md5 is calculated over the entire file, except first 4 bytes, which contain flash parameters and may be changed by flashing tool or MicroPython flash auto-config.
* esp8266/makeimg.py: Store firmware size as last 4 bytes of padding area.Paul Sokolovsky2016-08-04
|
* esp8266: Make APA102 driver inclusion configurable.Paul Sokolovsky2016-08-01
|
* esp8266/eagle.rom.addr.v6.ld: Add Enable_QMode symbol from SDK 2.0.0.Paul Sokolovsky2016-08-01
|