summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-17tests/run-multitests.py: Set HOST_IP so tests work between PC and board.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-17tests/run-multitests.py: Ignore lld_pdu_get_tx_flush_nb msgs from IDF.Damien George
BLE still functions correctly even though these messages are sometimes printed by the IDF. Ignoring them allows the multi_bluetooth tests to pass on an esp32 board. Signed-off-by: Damien George <damien@micropython.org>
2022-01-17all: Bump version to 1.18.v1.18Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-17tools/mpremote: Bump version to 0.1.0.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-14windows/msvc: Run qstr preprocessing phase in parallel.stijn
Supported from VS2017 and up, this roughly halves build time.
2022-01-14esp32/machine_bitstream: Reinstate bitstream bit-bang implementation.Damien George
The bit-bang implementation was replaced with the RMT implementation in 599b61c08687ca077e3b0e115d5b76affcc673ca. This commit brings back that bit-bang code, and allows it to be selected via the new static method: esp32.RMT.bitstream_channel(None) The bit-bang implementation may be useful if the RMT needs to be used for something else, or if bit-banging is more stable in certain applications. Signed-off-by: Damien George <damien@micropython.org>
2022-01-14esp32/esp32_rmt: Install RMT driver on core 1.Damien George
MicroPython currently runs on core 0 of the esp32. Calling rmt_driver_install will mean that the RMT interrupt handler is also serviced on core 0. This can lead to glitches in the RMT output if WiFi is enabled (for esp32.RMT and machine.bitstream). This patch calls rmt_driver_install on core 1, ensuring that the RMT interrupt handler is serviced on core 1. This prevents glitches. Fixes issue #8161. Signed-off-by: Damien George <damien@micropython.org>
2022-01-13docs/esp32: Update RMT quickref example to match latest code.Damien George
The start keyword was removed in 18e48a71ee69557a5340c8652f2e73e586063be3 Signed-off-by: Damien George <damien@micropython.org>
2022-01-13tools/ci.sh: Build zephyr nucleo_wb55rg to test zephyr bluetooth build.Damien George
And eliminate one build to reduce CI time. Signed-off-by: Damien George <damien@micropython.org>
2022-01-13zephyr/modbluetooth_zephyr: Provide dummy connect_cancel function.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-13extmod/modbluetooth: Put declaration of connect_cancel in correct place.Damien George
This fixes a bug introduced in 851ecb2da178fff0b60aefdb5af502f28787a7ec Signed-off-by: Damien George <damien@micropython.org>
2022-01-13extmod/modbluetooth: Fix conditional compilation of ringbuf_put_uuid.Damien George
This fixes a bug introduced in a76604afba109d990e466cdcd5a69a82077a7f56 Signed-off-by: Damien George <damien@micropython.org>
2022-01-12extmod/network_ninaw10: Use socket timeout preset in modusocket.iabdalkader
2022-01-12extmod/modusocket: Initialise accepted socket state.iabdalkader
2022-01-12extmod/modusocket: Allow setting timeout on unbound sockets.iabdalkader
For an extended state socket, if settimeout() is called before a NIC is bound, save the timeout until the NIC is bound.
2022-01-10windows/appveyor: Build mpy-cross only once for mingw-w64.stijn
The main Makefile builds the mpy-cross executable automatically if it doesn't exist since 78718fffb1f3010c7a40bb4c29c6ddf5b8dadaa3, so build it first to make sure it doesn't get needlessly rebuilt.
2022-01-09esp32/boards/GENERIC_D2WD: Build with -Os optimisation.Damien George
This board has only 2MiB of flash so the build needs to be reduced in size to fit. Commit 549448e8bbc8ce0b6b5fc51c0660acdaff18c3d6 made all boards build with -O2 by default (for performance) so this overrides that default. Signed-off-by: Damien George <damien@micropython.org>
2022-01-08mimxrt,stm32: Enable MICROPY_PY_USSL_FINALISER.Damien George
This is needed because these ports allocate mbedtls data on the MicroPython heap, and SSL socket objects must be fully cleaned up when they are garbage collected, to free this memory allocated by mbedtls. As part of this, gc_sweep_all() will now ensure that the MP_STATE_PORT(mbedtls_memory) linked-list is fully deallocated on soft reset. Signed-off-by: Damien George <damien@micropython.org>
2022-01-07py/mpconfig.h: Define MICROPY_PY_USSL_FINALISER only if not defined.Damien George
So a port can define it even if MICROPY_PY_USSL is not defined. Signed-off-by: Damien George <damien@micropython.org>
2022-01-07py/modbuiltins: Add additional macro for extending builtins.stijn
Mainly useful for defining additional globals in boards and variants.
2022-01-07ports: Update board.json files to link to new board images.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06esp32: Enable platform module with IDF version.Damien George
Output looks like this: >>> import platform >>> platform.libc_ver() ('newlib', '3.0.0') >>> platform.platform() 'MicroPython-1.17.0-xtensa-IDFv4.2.2-with-newlib3.0.0' >>> platform.python_compiler() 'GCC 8.4.0' Signed-off-by: Damien George <damien@micropython.org>
2022-01-06extmod/moduplatform: Detect xtensa arch.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06rp2/boards/GARATRONIC_PYBSTICK26_RP2040: Use correct pico-sdk board cfg.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06rp2/CMakeLists.txt: Allow a board to override PICO_BOARD.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06lib/stm32lib: Update library for fix to F7 USB HS.Damien George
Fixes build on MCUs with built-in USB HS PHY. Signed-off-by: Damien George <damien@micropython.org>
2022-01-06LICENSE,docs: Update copyright year range to include 2022.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-06drivers/ninaw10/nina_wifi_drv: Fix DNS resolution.iabdalkader
- The wrong ACK is returned and checked. - Send secondary DNS to google.
2022-01-06extmod/network_ninaw10: Make recv/recvfrom interchangeable.iabdalkader
2022-01-06extmod/network_ninaw10: Return -1 on timeout from recv/send.iabdalkader
2022-01-06extmod/network_ninaw10: Make NIC state persistent.iabdalkader
2022-01-06extmod/network_ninaw10: Disable active connections before connecting.iabdalkader
2022-01-06zephyr: Upgrade to Zephyr v2.7.0.Maureen Helm
Updates the Zephyr port build instructions and CI to use the latest Zephyr release tag. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06zephyr: Use CONFIG_USB_DEVICE_STACK for conditional USB device support.Maureen Helm
CONFIG_USB was removed in Zephyr v2.7.0 after some Kconfig rework that made it sufficient to use CONFIG_USB_DEVICE_STACK only. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06zephyr: Get UART console device from devicetree instead of Kconfig.Maureen Helm
Updates the Zephyr port to get the UART console device from devicetree instead of Kconfig. The Kconfig option CONFIG_UART_CONSOLE_ON_DEV_NAME was removed in Zephyr v2.7.0. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06zephyr: Update include path to reboot.h.Maureen Helm
The reboot header was moved to a different path in Zephyr v2.6.0. The old path was deprecated for two releases (v2.6.0 and v2.7.0) and will no longer be supported after Zephyr v2.7.0. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06zephyr: Increase minimum CMake version to 3.20.0.Maureen Helm
As a prerequisite to upgrading to Zephyr v2.7.0, upgrade the minimum CMake version required for the Zephyr port to 3.20.0. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06tools/ci.sh: Upgrade Zephyr docker image to v0.21.0.Maureen Helm
As a prerequisite to upgrading to Zephyr v2.7.0, upgrade CI to use Zephyr docker image v0.21.0. In particular, this is needed to pick up a newer CMake version because Zephyr v2.7.0 increased the minimum CMake version required to 3.20.0. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-01-06rp2: Add support for DHT11 and DHT22 sensors.iabdalkader
2022-01-06rp2/machine_pwm: Keep duty value when changing the frequency.robert-hh
The duty is saved and set whenever the frequency is changed, unless the duty rate was not set yet.
2022-01-06rp2/machine_pwm: Fix PWM frequency setting.robert-hh
The top value was off by 1: in order to count n ticks it has to be set to n-1. Fixes issue #8122.
2022-01-06rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Set default I2C pins.iabdalkader
2022-01-06esp32/machine_bitstream: Fix signal duplication on output pins.Simon Baatz
After changing the bitstream implementation to use the RMT driver in commit 72d86158121e32bbabaeade08f449d507bf40f9a ("esp32/machine_bitstream.c: Replace with RMT-based driver."), using multiple `Neopixel` instances shows signal duplication between the instances (i.e. a `write()` on one instance is written to all instances). On invocation, the rmt driver configures the GPIO matrix to route the output signal to the respective GPIO pin. When called for a different `NeoPixel` instance using a different pin, the new route is established, but the old route still exists. Now, the RMT output signal is sent to both pins. Fix this by setting the standard GPIO output function for the current pin after uninstalling the RMT driver. Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
2022-01-06esp32/machine_i2s: Add support for ESP-IDF 4.4.MikeTeachman
- Add default values for I2S features added in ESP-IDF 4.4. - Add workaround for bug introduced in ESP-IDF 4.4 (https://github.com/espressif/esp-idf/issues/8121).
2022-01-06shared/runtime/pyexec: Cleanup EXEC_FLAG flag constants.iabdalkader
- Cleanup pyexec flags definitions so it's clear they are different. - Use mp_uint_t for exec_flags because it should be unsigned.
2022-01-06py/qstr: Reset mpstate.qstr_last_chunk before raising an error.Emilie Feral
The qstr_last_chunk is not collected by the garbage collector. This relies on the assertion that qstr_pool_t also references the qstr_last_chunk. If an exception is raised while allocating the qstr_pool_t, qstr_last_chunk has to be invalidated not to become a dangling reference at the next garbage collection. Signed-off-by: Emilie Feral <emilie.feral@numworks.com>
2022-01-05docs/differences: Document details of new PEPs/features in Python 3.5+.NitiKaur
And how they relate to MicroPython. As these features are implemented (or the decision is made to not implement them) the tables can be updated to document the differences between MicroPython and standard Python.
2022-01-04mimxrt/hal: Allow readSampleClkSrc to be configured by a board.Chris Boudacoff
Via the MICROPY_HW_FLASH_DQS flag.
2022-01-04windows/appveyor: Build both standard and dev variants.stijn
This makes sure changes from previous related commits actually work.
2022-01-04tests/extmod: Skip uselect_poll_udp when poll() is not available.stijn
This is the same fix as applied in uselect_poll_basic.py.