aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-12esp8266: Add Python modules for initial configuration.Paul Sokolovsky
Main entry point is _boot.py which checks whether FAT FS in flash mountable, and if so, mounts it. Otherwise, it checks if flash is empty, and if so, performs initial module setup: makes FAT FS, configures default AP name, etc. As a last option, if flash is not empty, and could not be mounted, it means filesystem corruption, and warning message with instructions is printed in an infinite loop.
2016-04-12esp8266/scripts/main.py: Remove stale file.Paul Sokolovsky
2016-04-12esp8266/modnetwork: .config(): Add "password" param (W/O).Paul Sokolovsky
2016-04-12esp8266/modnetwork: .config(): Add "authmode" param.Paul Sokolovsky
2016-04-12esp8266/modnetwork: .config(): Check interface whose config is requested.Paul Sokolovsky
2016-04-11unix: Build with MICROPY_PY_UHASHLIB_SHA1 if already building with axTLS.Paul Sokolovsky
2016-04-11esp8266: Enable websocket module.Paul Sokolovsky
2016-04-11docs: Bump version to 1.7.Damien George
2016-04-11extmod/modwebsocket: write(): Support write size beyond 125 bytes.Paul Sokolovsky
2016-04-11extmod/modlwip: Fix for loss of data in unaccepted incoming sockets.Paul Sokolovsky
When lwIP creates a incoming connection socket of a listen socket, it sets its recv callback to one which discards incoming data. We set proper callback only in accept() call, when we allocate Python-level socket where we can queue incoming data. So, in lwIP accept callback be sure to set recv callback to one which tells lwIP to not discard incoming data.
2016-04-11esp8266/modesp: Add freemem() and meminfo() functions.Paul Sokolovsky
They call into vendor SDK functions system_get_free_heap_size() and system_print_meminfo() respectively.
2016-04-10esp8266/main: mp_builtin_open(): Implement, using vfs_proxy_call().Paul Sokolovsky
2016-04-10py/stream: Move uPy func obj wrappers to below their respective funcs.Damien George
2016-04-10py/stream: Simplify arg extraction logic for stream_ioctl.Damien George
Saves 16 bytes of code. Also, use mp_obj_get_int_truncated to allow integers as big as a machine word to be passed as the value.
2016-04-10esp8266: Implement multistage bootstrap sequence.Damien George
Upon start-up, _boot module is executed from frozen files to do early initialization, e.g. create and mount the flash filesystem. Then "boot.py" is executed if it exists in the filesystem. Finally, "main.py" is executed if exists to allow start-on-boot user applications. This allows a user to make a custom boot file or startup application without recompiling the firmware, while letting to do early initialization in Python code. Based on RFC https://github.com/micropython/micropython/issues/1955.
2016-04-10extmod/modwebsocket.h: Split websocket-related defines for reuse.Paul Sokolovsky
2016-04-10py/stream: ioctl(): Properly support 2-arg form.Paul Sokolovsky
2016-04-10py/stream: Fix signed comparison issue.Paul Sokolovsky
2016-04-10extmod/modwebsocket: Implement MP_STREAM_SET_DATA_OPTS ioctl.Paul Sokolovsky
Allows to set fragment type (txt/bin/etc.) for output records.
2016-04-10extmod/modwebsocket: Allow to get type of last read data using ioctl().Paul Sokolovsky
2016-04-10py/stream: Add Python-level ioctl() method.Paul Sokolovsky
Will call underlying C virtual methods of stream interface. This isn't intended to be added to every stream object (it's not in CPython), but is convenient way to expose extra operation on Python side without adding bunch of Python-level methods.
2016-04-10py/stream.h: Add bigger inventory of stream ioctl's.Paul Sokolovsky
2016-04-09extmod/modwebsocket: Record current fragment type (binary/text/etc.)Paul Sokolovsky
Also, handle continuation frames (untested).
2016-04-09extmod/modwebsocket: Add option for blocking writes to non-blk sockets.Paul Sokolovsky
This is strange asymmetry which is sometimes needed, e.g. for WebREPL: we want to process only available input and no more; but for output, we want to get rid of all of it, because there's no other place to buffer/store it. This asymmetry is akin to CPython's asyncio asymmetry, where reads are asynchronous, but writes are synchronous (asyncio doesn't expect them to block, instead expects there to be (unlimited) buffering for any sync write to completely immediately).
2016-04-09extmod/modwebsocket: Reset mask between packets.Paul Sokolovsky
2016-04-08extmod/modwebsocket: Make sure to propagate EOF.Paul Sokolovsky
2016-04-08unix: freedos strip and size names for binariespohmelie
After this you need only one path for build (path/to/djgpp/bin). Original patch made by @dhylands
2016-04-08extmod/modure: re_exec() renamed to ure_exec() due to collison in 4.3BSD.Tom Sparks
Addresses issue #1972.
2016-04-08extmod/modwebsocket: Properly check number of args to constructor.Paul Sokolovsky
2016-04-08lib/axtls: Update to the latest upstream master.Paul Sokolovsky
2016-04-07docs: esp8266: Enable "machine" module docs.Paul Sokolovsky
The docs are still heavily biased towards WiPy, so will need a lot of exclusions.
2016-04-07docs/ubinascii: Document non-standard "sep" argument to hexlify().Paul Sokolovsky
2016-04-07stmhal: Consistently enable USB SOF Irqs for all USB modes (FS and HS).Martin Fischer
SOF irqs are now standard for rx/tx USB transfers, so enable them for both FS and HS modes. Fixes #1944.
2016-04-07py/objarray: Fix array.append so it doesn't extend if append fails.Damien George
Addresses issue #1965.
2016-04-07py: Implement basic with support in native emitter.Damien George
2016-04-07py: Combine continuous block of emit steps into with_cleanup emit call.Damien George
Because different emitters need to handle with-cleanup in different ways.
2016-04-07esp8266: Switch from terse error messages to normal ones.Damien George
Adds 2k to the code size.
2016-04-07esp8266/README: Add short troubleshooting section.Paul Sokolovsky
2016-04-06esp8266: Add initial implementation of machine.UART.Damien George
Currently UART(0) and UART(1) are exposed and only uart.write works.
2016-04-06cc3200/mods/modwlan: Include stream.h after recent refactor.Paul Sokolovsky
2016-04-06esp8266: Make destination for vendor OS debug output soft-configurable.Damien George
Use esp.osdebug(None) to disable, or esp.osdebug(uart_id) to send output to a UART.
2016-04-05py: Move stream-related declarations from obj.h to stream.h.Paul Sokolovsky
2016-04-05docs/esp8266/quickref: Add note about physical vs logical pin numbers.Paul Sokolovsky
2016-04-05esp8266/modnetwork: require_if(): Report the actual interface required.Paul Sokolovsky
2016-04-05docs/ubinascii: Document a2b_base64(), b2a_base64().Paul Sokolovsky
2016-04-05esp8266: Move pyb.unique_id() to machine.unique_id().Paul Sokolovsky
2016-04-05esp8266: Move pyb.hard_reset() to machine.reset().Paul Sokolovsky
2016-04-04unix/modsocket: Use mp_const_empty_map instead of creating empty map.Paul Sokolovsky
2016-04-04py/obj.h: Add comment why mp_fun_kw_t takes non-const mp_map_t*.Paul Sokolovsky
mp_fun_kw_t takes mp_map_t* (and not const mp_map_t*) to ease passing this arg to mp_map_lookup(), which may modify its arg, depending on flags.
2016-04-03unix: djgpp errno.h have no ENOTSUP, so define it to Linux value.pohmelie