summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-14esp8266/moduos: Add uos.mkdir function.Damien George
2016-04-14extmod/fsusermount: In mount/mkfs, deregister VFS object on error.Damien George
Should fix issue #1947.
2016-04-14esp8266/scripts/_boot: Mount block device on "" instead of "/".Damien George
"" is the correct name of the root directory when mounting a device there (as opposed to "/"). One can now do os.listdir('/') and open('/abc'), as well as os.listdir() and open('abc').
2016-04-15extmod/modlwip: More debug messages for various edge conditions.Paul Sokolovsky
2016-04-15esp8266/qstrdefsport.h: Mark qstr's for "esp" module.Paul Sokolovsky
2016-04-15esp8266: Enable input() builtin.Paul Sokolovsky
2016-04-15py: Declare help, input, open builtins in core.Paul Sokolovsky
These are *defined* per-port, but why redeclare them again and again.
2016-04-14esp8266/scripts/port_diag.py: Module to collect diagnostic info.Paul Sokolovsky
A shortcut for users to provide background diagnostic info for bug reports.
2016-04-14py/makeqstrdata: Add special case to handle \n qstr.Damien George
2016-04-14py/makeqstrdata: Reinstate Python2 compatibility.Damien George
2016-04-14py/makeqstrdata: Fix rendering of qstrs that have non-printable ASCII.Damien George
The qstr data needs to be turned into a proper C string so non-ASCII chars must be properly escaped according to C rules.
2016-04-14py: Simplify "and" action within parser by making ident-rules explicit.Damien George
Most grammar rules can optimise to the identity if they only have a single argument, saving a lot of RAM building the parse tree. Previous to this patch, whether a given grammar rule could be optimised was defined (mostly implicitly) by a complicated set of logic rules. With this patch the definition is always specified explicitly by using "and_ident" in the rule definition in the grammar. This simplifies the logic of the parser, making it a bit smaller and faster. RAM usage in unaffected.
2016-04-14esp8266: Switch integer arith routines to BootROM.Paul Sokolovsky
2016-04-14esp8266: Separate 1-wire timing funcs from Python module to save iRAM.Damien George
esponewire.c contains low-level timing-critical functions that go in iRAM. modonewire.c contains Python wrapper code.
2016-04-14esp8266: Add hard IRQ callbacks for pin change on GPIO0-15.Damien George
2016-04-14esp8266: Add dummy entries for non-existing pins to simplify pin logic.Damien George
Now pins can be easily looked up in the table using the pin number as the index and vice versa.
2016-04-14esp8266: Remove pin_id field from C pin object.Damien George
This field is the same as phys_port and not needed.
2016-04-14extmod/modlwip: Start adding debug output.Paul Sokolovsky
2016-04-14extmod/modlwip: lwip_tcp_receive(): Properly handle EOF for non-blocking sock.Paul Sokolovsky
2016-04-13py/makeqstrdata: Add more names for escaped chars and esc non-printable.Damien George
Non-printable characters are escaped as 0xXX, where XX are the hex digits of the character value.
2016-04-13extmod/modwebsocket: Another case to propagate EOF.Paul Sokolovsky
2016-04-13stmhal: Add Makefile option FROZEN_MPY_DIR to support frozen bytecode.Damien George
2016-04-13minimal: Add example of frozen persistent bytecode (.mpy file).Damien George
frozentest.py is frozen into the binary as frozen bytecode. The .mpy file is included so that there is no dependency on the cross compiler.
2016-04-13py: Add ability to have frozen persistent bytecode from .mpy files.Damien George
The config variable MICROPY_MODULE_FROZEN is now made of two separate parts: MICROPY_MODULE_FROZEN_STR and MICROPY_MODULE_FROZEN_MPY. This allows to have none, either or both of frozen strings and frozen mpy files (aka frozen bytecode).
2016-04-13tools: Add mpy-tool.py, to work with .mpy files.Damien George
Currently it can freeze .mpy files.
2016-04-13py/makeqstrdata: Factor out some code to functions that can be reused.Damien George
2016-04-13py/emitglue: Make mp_raw_code_t* arguments constant pointers.Damien George
2016-04-13py/emitglue: Move typedef of mp_raw_code_t from .c to .h file.Damien George
It's needed by frozen bytecode.
2016-04-13tests: Skip async tests for native emitter.Damien George
2016-04-13tests: Add .exp files for async tests, so they can run with Python 3.4.Damien George
2016-04-13ports: Disable async/await on bare-arm, minimal, pic16bit, cc3200.Damien George
It costs 1188 bytes of code on Thumb 2 archs.
2016-04-13tests: Add 6 tests for async await/for/with.Damien George
2016-04-13py: Fix constant folding and inline-asm to work with new async grammar.Damien George
2016-04-13py: add async/await/async for/async with syntaxpohmelie
They are sugar for marking function as generator, "yield from" and pep492 python "semantically equivalents" respectively. @dpgeorge was the original author of this patch, but @pohmelie made changes to implement `async for` and `async with`.
2016-04-13esp8266/esp_mphal: call_dupterm_read(): Fix order of deactivating on EOF.Paul Sokolovsky
First deactivate, then print diagnostic message.
2016-04-13esp8266/esp_mphal: Don't swallow exceptions in dupterm's read()/write().Paul Sokolovsky
The idea is that if dupterm object can handle exceptions, it will handle them itself. Otherwise, object state can be compromised and it's better to terminate dupterm session. For example, disconnected socket will keep throwing exceptions and dump messages about that.
2016-04-13extmod/moduos_dupterm: Don't swallow exceptions in dupterm's read()/write().Paul Sokolovsky
The idea is that if dupterm object can handle exceptions, it will handle them itself. Otherwise, object state can be compromised and it's better to terminate dupterm session. For example, disconnected socket will keep throwing exceptions and dump messages about that.
2016-04-13lib/utils/printf: Rework overriding printer of DEBUG_printf().Paul Sokolovsky
By default it uses mp_plat_print, but a port may override it to another value with MICROPY_DEBUG_PRINTER_DEST.
2016-04-13stmhal: Properly handle RTS/CTS flow control for buf/unbuf transfers.Peter Hinch
Fixes issues #1912 and #1913. UART documentation is also updated.
2016-04-13esp8266: In callback helpers, pop nlr_buf on successful call.Damien George
nlr_pop must be called if no exception was raised. Also, return value of these callback helpers is made void because ther is (currently) no use for it.
2016-04-13py/modbuiltins: __repl_print__: Add comment about setting "_" special var.Paul Sokolovsky
2016-04-12extmod/machine_i2c: Implement I2C memory reading/writing.Damien George
2016-04-12extmod/machine_i2c: Fix I2C reading by sending ack/nack at end of byte.Damien George
2016-04-12drivers: Add SSD1306 OLED driver, with I2C and SPI interfaces.Damien George
2016-04-12esp8266: Enable framebuf module.Damien George
2016-04-12esp8266: Switch from using custom I2C driver to generic extmod one.Damien George
2016-04-12esp8266: Implement basic C-level pin HAL.Damien George
2016-04-12esp8266: Protect modpyb.h header file from multiple inclusions.Damien George
Also include py/obj.h so the header is self contained.
2016-04-12stmhal: Enable framebuf module.Damien George
2016-04-12stmhal: Use new generic I2C object in machine module.Damien George