summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
Commit message (Collapse)AuthorAge
* 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
|
* esp8266: Enable btree module.Paul Sokolovsky2016-07-31
|
* esp8266/esp_mphal: Implement libc's errno.Paul Sokolovsky2016-07-31
| | | | | | Using __errno() function, and redirect it to use mp_stream_errno from stream module. This is pre-requisite for integrating with 3rd-party libs, like BerkeleyDB.
* py/mpconfig.h: Add MICROPY_STREAMS_POSIX_API setting.Paul Sokolovsky2016-07-30
| | | | | | To filter out even prototypes of mp_stream_posix_*() functions, which require POSIX types like ssize_t & off_t, which may be not available in some ports.
* esp8266/mpconfigport.h: Include sys/types.h for POSIX types definitions.Paul Sokolovsky2016-07-30
| | | | As required for related functions in stream.h.
* esp8266/axtls_helpers: Remove abort_(), now in lib/embed/.Paul Sokolovsky2016-07-30
|
* esp8266/modpybuart: Fix UART parity setting.daniel-k2016-07-27
| | | | | | | | | The configuration bits for the UART register were wrong and the parity couldn't be enabled, because the exist_parity member hasn't been updated. I took this ESP8266 register description (http://esp8266.ru/esp8266-uart-reg/) as reference. Verification has been done with a logic analyzer.
* 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: dupterm_task_init() should be called before running _boot.py, etc.Paul Sokolovsky2016-07-23
| | | | Because they may use dupterm functionality (e.g. WebREPL running on boot).
* esp8266: Enable MICROPY_PY_STR_BYTES_CMP_WARN.Paul Sokolovsky2016-07-22
|
* esp8266: Cache Xtensa-built libaxtls.a in local build dir.Paul Sokolovsky2016-07-16
| | | | Allows to build the library variant for other archs in parallel.
* esp8266/moduos: Add rmdir() function.Paul Sokolovsky2016-07-16
|
* esp8266: Select axTLS for SSL implementation, following recent refactor.Paul Sokolovsky2016-07-13
|
* esp8266/esp_mphal: Properly handle dupterm EOF after switching to readinto().Paul Sokolovsky2016-07-05
|
* esp8266/esp_mphal: call_dupterm_read: Use readinto() method.Paul Sokolovsky2016-07-04
| | | | | It's memory fragmentation hazard to allocate 1-char string each time by calling read() method.
* esp8266/main: Init recently added dupterm_arr_obj port state var.Paul Sokolovsky2016-07-04
|
* esp8266/README: Promote from "highly experimental" to "experimental".Paul Sokolovsky2016-07-02
|
* 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/modpybuart: allow setting baudrate and other paramsRadomir Dopieralski2016-06-30
|
* esp8266/websocket_helper.py: Fix typo in debug output.Paul Sokolovsky2016-06-30
|
* esp8266/websocket_helper.py: Avoid extra string allocations.Paul Sokolovsky2016-06-30
|
* esp8266/README: Describe how to build mpy-cross.Damien George2016-06-29
|
* 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.
* esp8266/main.c: Clear the command line history when (re)booting.Robert HH2016-06-26
| | | | | Not clearing the command line history sometimes results in strange output when going back after a reset.
* all: Rename mp_obj_type_t::stream_p to protocol.Paul Sokolovsky2016-06-18
| | | | | It's now used for more than just stream protocol (e.g. pin protocol), so don't use false names.
* esp8266: Use RTC to set date & time stamps for files.Robert HH2016-06-16
| | | | | | | The time stamp is taken from the RTC for all newly generated or changed files. RTC must be maintained separately. The dummy time stamp of Jan 1, 2000 is set in vfs.stat() for the root directory, avoiding invalid time values.
* esp8266/Makefile: Enable --verify option for esptool.py write_flash.Paul Sokolovsky2016-06-12
| | | | | | Based on my experience, there's rather non-zero chance to have an image be flashed incorrectly. As --verify option is now works well in teh latest esptool.py, enable it by default.
* esp8266: Switch floating-point arith routines to BootROM.Paul Sokolovsky2016-06-12
|
* esp8266: Let RTC work correctly after deepsleep.puuu2016-06-06
| | | | | | | | | By design, at wake up from deepsleep, the RTC timer will be reset, but the data stored in RTC memory will not [1]. Therefore, we have to adjust delta in RTC memory before going into deepsleep to get almost correct time after waking up. [1] http://bbs.espressif.com/viewtopic.php?t=1184#p4082
* esp8266/modnetwork: Use struct bss_info::ssid_len for ESSID length.Mark2016-06-04
| | | | | | | Instead of calling strlen(), which won't work if there're 32 chars in returned ESSID. struct bss_info::ssid_len is not documented in SDK API Guide, but is present in SDK headers since 1.4.0. Just in case, previous code is left commented.
* esp8266/modpybrtc: Handle RTC overflow.puuu2016-06-03
| | | | | | | | ESP-SDK system_get_rtc_time() returns uint32 and therefore overflow about every 7:45h. Let's write the last state of system_get_rtc_time() in RTC mem and use it to check for overflow. This commit require running pyb_rtc_get_us_since_2000() at least once within 7 hours to avoid overflow.
* esp8266: Provide a dedicated variable to disable ets_loop_iter.Damien George2016-06-01
| | | | So ets_loop_iter is now only disabled when using machine.disable_irq.
* esp8266/rtc: Set RTC user memory length to 0 on first boot.Damien George2016-06-01
| | | | | | So that RTC.memory() returns b'' on power up if it was never set. Fixes issue #2138.
* esp8266/moduos.c: Add stat() to the module uos of esp8266.Robert HH2016-05-31
| | | | | | | This implementation makes use of vfs.stat() and therefore has the same properties. Known issues for all ports: uos.stat(".") on the top level returns the error code 22, EINVAL. The same happens with uos.stat("dirname/") where dirname IS the name of a directory.
* esp8266: Enable MICROPY_PY_IO_FILEIO to get compliant text/binary streams.Paul Sokolovsky2016-05-31
|
* extmod/machine: Add MICROPY_PY_MACHINE_PULSE config for time_pulse_us.Damien George2016-05-31
| | | | | Since not all ports that enable the machine module have the pin HAL functions.
* esp8266/modmachine: Add machine.time_pulse_us function.Damien George2016-05-31
|
* esp8266/scripts/ntptime: Allow to override NTP server.Paul Sokolovsky2016-05-30
| | | | | This is not part of public API, variable name may change, or it can be replaced with a function.
* esp8266/moduos: Add chdir() and getcwd() functions.Paul Sokolovsky2016-05-29
|