- 16 Oct, 2017 9 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Which Wiznet chip to use is a compile-time option: MICROPY_PY_WIZNET5K should be set to either 5200 or 5500 to support either one of these Ethernet chips. The driver is called network.WIZNET5K in both cases. Note that this commit introduces a breaking-change at the build level because previously the valid values for MICROPY_PY_WIZNET5K were 0 and 1 but now they are 0, 5200 and 5500.
-
Damien George authored
This patch implements the basic SPI read/write functions for the W5500 chip. It also allows _WIZCHIP_ to be configured externally to select the specific Wiznet chip.
-
Li Weiwei authored
Use MICROPY_THREAD_YIELD() instead of HAL_Delay in busy waiting to improve the performance of connect, send, recv, sento and recvfrom.
-
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.
-