summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-21drivers/ninaw10: Return standard error numbers.iabdalkader
2022-01-21extmod/modusocket: Create new sockets in blocking mode.iabdalkader
To conform with CPython and other MicroPython ports.
2022-01-21tests/multi_net/udp_data.py: Allow reusing port before bind.iabdalkader
2022-01-21tests/multi_net: Close accepted sockets when tests are done.iabdalkader
gc_sweep_all() cleans up sockets via the finaliser, but tests should cleanly free resources they use.
2022-01-21extmod/modusocket: Add makefile() method and common socket options.iabdalkader
2022-01-21extmod/modusocket: Make setsockopt return if NIC is not connected.iabdalkader
2022-01-21drivers/ninaw10: Fix timeout handling to match modusocket.iabdalkader
2022-01-21extmod/network_ninaw10: Implement MP_STREAM_POLL in ioctl.iabdalkader
There is currently no function to query if the socket is writable.
2022-01-21drivers/ninaw10: Add function to check socket state/data availability.iabdalkader
2022-01-20rp2/mphalport: Add optional dupterm support.iabdalkader
2022-01-20rp2/mpconfigport.h: Use internal error numbers.iabdalkader
2022-01-20rp2/machine_i2c: Provide more specific error codes from I2C transfer.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2022-01-20tools/mpremote: Use machine instead of umachine in commands.Damien George
Because bare-metal boards will have machine but not always umachine. Signed-off-by: Damien George <damien@micropython.org>
2022-01-20stm32/mboot: Remove custom HAL_RCC_GetHCLKFreq and use HAL provided one.Damien George
So that a board can access other HAL_RCC functions if it needs them (this was not possible previously by just adding hal_rcc.c to the src list for a board because it would clash with the custom HAL_RCC_GetHCLKFreq function). Signed-off-by: Damien George <damien@micropython.org>
2022-01-19py/objstr: Support '{:08}'.format("Jan") like Python 3.10.Jeff Epler
The new test has an .exp file, because it is not compatible with Python 3.9 and lower. See CPython version of the issue at https://bugs.python.org/issue27772 Signed-off-by: Jeff Epler <jepler@gmail.com>
2022-01-17stm32/mbedtls: Enable MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_KEY_EXCHANGE.Damien George
This adds MBEDTLS_MD_SHA1 to the list of default hashes for TLS 1.2 handshake signatures. Although SHA-1 is weak, this option is turned on in the default mbedtls configuration file, and allows better compatibility with older servers. In particular it allows an stm32-mbedtls-based client to connect to an axtls-based client (eg default unix port and esp8266). Signed-off-by: Damien George <damien@micropython.org>
2022-01-17tests/multi_net: Add testing key/cert to SSL server/client test.Damien George
So that this tests works with mbedtls. Signed-off-by: Damien George <damien@micropython.org>
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>