| Age | Commit message (Collapse) | Author |
|
|
|
To conform with CPython and other MicroPython ports.
|
|
|
|
gc_sweep_all() cleans up sockets via the finaliser, but tests should
cleanly free resources they use.
|
|
|
|
|
|
|
|
There is currently no function to query if the socket is writable.
|
|
|
|
|
|
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Because bare-metal boards will have machine but not always umachine.
Signed-off-by: Damien George <damien@micropython.org>
|
|
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>
|
|
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>
|
|
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>
|
|
So that this tests works with mbedtls.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
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>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Supported from VS2017 and up, this roughly halves build time.
|
|
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>
|
|
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>
|
|
The start keyword was removed in 18e48a71ee69557a5340c8652f2e73e586063be3
Signed-off-by: Damien George <damien@micropython.org>
|
|
And eliminate one build to reduce CI time.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
This fixes a bug introduced in 851ecb2da178fff0b60aefdb5af502f28787a7ec
Signed-off-by: Damien George <damien@micropython.org>
|
|
This fixes a bug introduced in a76604afba109d990e466cdcd5a69a82077a7f56
Signed-off-by: Damien George <damien@micropython.org>
|
|
|
|
|
|
For an extended state socket, if settimeout() is called before a NIC is
bound, save the timeout until the NIC is bound.
|
|
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.
|
|
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>
|
|
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>
|
|
So a port can define it even if MICROPY_PY_USSL is not defined.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Mainly useful for defining additional globals in boards and variants.
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
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>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
Fixes build on MCUs with built-in USB HS PHY.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Signed-off-by: Damien George <damien@micropython.org>
|
|
- The wrong ACK is returned and checked.
- Send secondary DNS to google.
|
|
|
|
|
|
|
|
|
|
Updates the Zephyr port build instructions and CI to use the latest
Zephyr release tag.
Signed-off-by: Maureen Helm <maureen.helm@intel.com>
|