- 16 Oct, 2017 4 commits
-
-
Li Weiwei authored
-
Damien George authored
This matches the behaviour of getaddrinfo in extmod/modlwip.c.
-
Damien George authored
-
Damien George authored
-
- 15 Oct, 2017 1 commit
-
-
Paul Sokolovsky authored
To increase visibility of Contributors' Guidelines and Code Conventions docs.
-
- 13 Oct, 2017 3 commits
-
-
Damien George authored
The uos.dupterm() signature and behaviour is updated to reflect the latest enhancements in the docs. It has minor backwards incompatibility in that it no longer accepts zero arguments. The dupterm_rx helper function is moved from esp8266 to extmod and generalised to support multiple dupterm slots. A port can specify multiple slots by defining the MICROPY_PY_OS_DUPTERM config macro to an integer, being the number of slots it wants to have; 0 means to disable the dupterm feature altogether. The unix and esp8266 ports are updated to work with the new interface and are otherwise unchanged with respect to functionality.
-
Li Weiwei authored
-
Damien George authored
So that characters can be buffered before the USB device is connected (restoring behviour of the driver before recent state refactoring).
-
- 12 Oct, 2017 1 commit
-
-
Damien George authored
-
- 11 Oct, 2017 4 commits
-
-
Damien George authored
-
Vitor Massaru Iha authored
This patch also makes the code more concise by combining the checks for the password length.
-
Mike Causer authored
-
Damien George authored
-
- 10 Oct, 2017 8 commits
-
-
Damien George authored
Reduces code size by a tiny bit.
-
Damien George authored
NaN may have the sign bit set but it has no meaning, so don't print it out.
-
Damien George authored
-
Damien George authored
So that a pointer to it can be passed as a pointer to math_generic_1. This patch also makes the function work for single and double precision floating point.
-
Damien George authored
This patch changes how most of the plain math functions are implemented: there are now two generic math wrapper functions that take a pointer to a math function (like sin, cos) and perform the necessary conversion to and from MicroPython types. This helps to reduce code size. The generic functions can also check for math domain errors in a generic way, by testing if the result is NaN or infinity combined with finite inputs. The result is that, with this patch, all math functions now have full domain error checking (even gamma and lgamma) and code size has decreased for most ports. Code size changes in bytes for those with the math module are: unix x64: -432 unix nanbox: -792 stm32: -88 esp8266: +12 Tests are also added to check domain errors are handled correctly.
-
Mike Causer authored
-
Mike Causer authored
-
Mike Causer authored
-
- 09 Oct, 2017 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- 08 Oct, 2017 1 commit
-
-
Paul Sokolovsky authored
Add these methods to this "GPIO output emulated with console prints" config.
-
- 07 Oct, 2017 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
While this console API improves handling on real hardware boards (e.g. clipboard paste is much more reliable, as well as programmatic communication), it vice-versa poses problems under QEMU, apparently because it doesn't emulate UART interrupt handling faithfully. That leads to inability to run the testsuite on QEMU at all. To work that around, we have to suuport both old and new console routines, and use the old ones under QEMU.
-
Paul Sokolovsky authored
We want to close communication object even if there were exceptions somewhere in the code. This is important for --device exec:/execpty: which may otherwise leave processing running in the background.
-
Paul Sokolovsky authored
Ideally, these should be configurable from Python (using network module), but as that doesn't exist, we better off using Zephyr's native bootstrap configuration facility.
-
- 06 Oct, 2017 3 commits
-
-
Damien George authored
-
Damien George authored
The poweroff() and poweron() methods are used to do soft power control of the display, and this patch makes these methods work the same for both I2C and SPI interfaces.
-
Tiago Queiroz authored
After a poweroff(), the poweron() method does a soft power-on and any previous state of the display persists.
-
- 05 Oct, 2017 3 commits
-
-
Paul Sokolovsky authored
As it may contain newlines, etc.
-
Damien George authored
-
Li Weiwei authored
When wiznet5k_socket_accept is called, if a socket is established, get the IP address of the socket.
-
- 04 Oct, 2017 5 commits
-
-
Damien George authored
The binary and unary ops have changed bytecode encoding.
-
Damien George authored
-
Damien George authored
2 non-bytecode binary ops (NOT_IN and IN_NOT) are moved out of the bytecode group, so this change will change the bytecode format.
-
Damien George authored
-
Damien George authored
Printing "(null)" when a NULL string pointer is passed to %s is a debugging feature and not a feature that's relied upon by the code. So it only needs to be compiled in when debugging (such as assert) is enabled, and saves roughy 30 bytes of code when disabled. This patch also fixes this NULL check to not do the check if the precision is specified as zero.
-