- May 31, 2019
-
-
Damien George authored
Because py/mpconfig.h has header include guards.
-
Martin Dybdal authored
The patch solves the problem where multiple Timer objects (e.g. multiple Timer(0) instances) could initialise multiple handles to the same internal timer. The list of timers is now maintained not for "active" timers (where init is called), but for all timers created. The timers are only removed from the list of timers on soft-reset (machine_timer_deinit_all). Fixes #4078.
-
Damien George authored
To enable define MICROPY_HW_USB_CDC_NUM to 3.
-
- May 30, 2019
-
-
Damien George authored
The board config option MICROPY_HW_USB_ENABLE_CDC2 is now changed to MICROPY_HW_USB_CDC_NUM, and the latter should be defined to the maximum number of CDC interfaces to support (defaults to 1).
-
- May 29, 2019
-
-
Damien George authored
mpy-cross uses MICROPY_DYNAMIC_COMPILER and MICROPY_EMIT_NATIVE but does not actually need to execute native functions, and does not need mp_fun_table. This commit makes it so mp_fun_table and all its entries are not built when MICROPY_DYNAMIC_COMPILER is enabled, significantly reducing the size of the mpy-cross executable and allowing it to be built on more machines/OS's.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Andrew Leech authored
Otherwise flushing and disabling the D-cache will give a hard-fault when SDRAM is used. Fixes #4818.
-
- May 28, 2019
-
-
Damien George authored
In d5f0c87b this call to tcp_poll() was added to put a timeout on closing TCP sockets. But after calling tcp_close() the PCB may be freed and therefore invalid, so tcp_poll() can not be used at that point. As a fix this commit calls tcp_poll() before closing the TCP PCB. If the PCB is subsequently closed and freed by tcp_close() or tcp_abort() then the PCB will not be on any active list and the callback will not be executed, which is the desired behaviour (the _lwip_tcp_close_poll() callback only needs to be called if the PCB remains active for longer than the timeout).
-
Damien George authored
Commit 2848a613 introduced a bug where lwip_socket_free_incoming() accessed pcb.tcp->state after the PCB was closed. The state may have changed due to that close call, or the PCB may be freed and therefore invalid. This commit fixes that by calling lwip_socket_free_incoming() before the PCB is closed.
-
Damien George authored
EAGAIN should be for pure non-blocking mode and ETIMEDOUT for when there is a finite (but non-zero) timeout enabled.
-
Damien George authored
-
Tom Manning authored
-
- May 27, 2019
-
-
Damien George authored
These are incorrect since 5a2599d9
-
- May 24, 2019
-
-
Andrew Leech authored
Set the active MPU region to the actual size of SDRAM configured and invalidate the rest of the memory-mapped region, to prevent errors due to CPU speculation. Also update the attributes of the SDRAM region as per ST recommendations, and change region numbers to avoid conflicts elsewhere in the codebase (see eth usage).
-
Damien George authored
Fixes issue #4795.
-
Paul Sokolovsky authored
I2C can't be enabled in prj_base.conf because it's a board-specific feature. For example, if a board doesn't have I2C but CONFIG_I2C=y then the build will fail (on Zephyr build system side). The patch here gets the qemu_cortex_m3 build working again.
-
Paul Sokolovsky authored
So it fits better with existing narrative.
-
Damien George authored
A global definition of MP_NOINLINE was added to py/mpconfig.h long ago in 0f5bf1aa
-
- May 23, 2019
-
-
stijn authored
This enables going back to previous wrapped lines using backspace or left arrow: instead of just sticking to the beginning of a line, the cursor will move a line up.
-
Andrew Leech authored
-
- May 22, 2019
-
-
Sebastien Rinsoz authored
This ; make Windows compilation fail with GNU makefile 4.2.1. It was added in 0dc85c9f as part of a shell if- statement, but this if-statement was subsequently removed in 23a693ec so the semicolon is not needed.
-
Sebastien Rinsoz authored
The variable $(TOUCH) is initialized with the "touch" value in mkenv.mk like for the other command line tools (rm, echo, cp, mkdir etc). With this, for example, Windows users can specify the path of touch.exe.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
As part of this, ctrl-C is now able to interrupt a running program.
-
- May 21, 2019
-
-
Glenn Ruben Bakke authored
Defining NRFX_STATIC_ASSERT macro to be empty, but available to nrfx.
-
Glenn Ruben Bakke authored
Updating the nrfx git submodule containing HAL drivers for nrf-port from v1.3.1 to current master. The version pointed to is one commit ahead of v1.7.1 release. The extra commit contains a bugfix for nrfx_uart_tx_in_progress() making it report correctly. The general upgrade of nrfx is considered to be safe, as almost all changes in between 1.3.1 and 1.7.1 are related to peripherals and target devices not used by the nrf-port as of today.
-
Sébastien Rinsoz authored
The variable $(CAT) is initialised with the "cat" value in mkenv.mk like for the other command line tools (rm, echo, cp, mkdir etc). With this, for example, Windows users can specify the path of cat.exe.
-
stijn authored
Reuse the implementation for bytes since it works the same way regardless of the underlying type. This method gets added for CPython compatibility of bytearray, but to keep the code simple and small array.array now also has a working decode method, which is non-standard but doesn't hurt.
-
Damien George authored
On MCUs that have an I2C TIMINGR register, this can now be explicitly set via the "timingr" keyword argument to the I2C constructor, for both machine.I2C and pyb.I2C. This allows to configure precise timing values when the defaults are inadequate.
-
Damien George authored
-
Andrew Leech authored
Previously the hardware I2C timeout was hard coded to 50ms which isn't guaranteed to be enough depending on the clock stretching specs of the I2C device(s) in use. This patch ensures the hardware I2C implementation honors the existing timeout argument passed to the machine.I2C constructor. The default timeout for software and hardware I2C is now 50ms.
-
- May 20, 2019
-
-
Damien George authored
On stm32 boards, machine.I2C is now preferred over pyb.I2C.
-
Damien George authored
-
Damien George authored
Fixes issue #3482.
-
Damien George authored
For example: i2c.writevto(addr, (buf1, buf2)). This allows to efficiently (wrt memory) write data composed of separate buffers, such as a command followed by a large amount of data.
-