- 24 Apr, 2024 3 commits
-
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Otherwise Emscripten allocates it on the Emscripten C stack, which will overflow for large amounts of code. Fixes issue #14307. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
In modularize mode, the `_createMicroPythonModule()` constructor must be await'ed on, before `Module` is ready to use. Signed-off-by: Damien George <damien@micropython.org>
-
- 22 Apr, 2024 7 commits
-
-
Damien George authored
To get more insight to firmware size changes when code changes. Signed-off-by: Damien George <damien@micropython.org>
-
Angus Gratton authored
This a stop-gap until there is a proper fix for this. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-
Angus Gratton authored
Two cases, one assigning to a slice. Closes https://github.com/micropython/micropython/issues/13283 Second is extending a slice from itself, similar logic. In both cases the problem occurs when m_renew causes realloc to move the buffer, leaving a dangling pointer behind. There are more complex and hard to fix cases when either argument is a memoryview into the buffer, currently resizing to a new address breaks memoryviews into that object. Reproducing this bug and confirming the fix was done by running the unix port under valgrind with GC-aware extensions. Note in default configurations with GIL this bug exists but has no impact (the free buffer won't be reused while the function is still executing, and is no longer referenced after it returns). Signed-off-by: Angus Gratton <angus@redyak.com.au>
-
Vonasmic authored
This commit swaps the order of the `flags` and `name` struct initialisers for `mp_obj_type_t`, to fix an incompatibility with C++. The original order of the initialiser didn't match the definition of the type, and although that's still legal C, it's not legal C++. Signed-off-by: Vonasmic <kasarkal123@gmail.com>
-
stijn authored
Explicit casts are needed. Fixes recent changes from 648a7578 and 94002297. Signed-off-by: stijn <stijn@ignitron.net>
-
Michiel W. Beijen authored
Signed-off-by: Michiel W. Beijen <mb@x14.nl>
-
Simon Wood authored
When `lightsleep()` is called from within a thread the interrupts may not be enabled on current core, and thus the call to `lightsleep()` never completes. Fixes issue #14092. Signed-off-by: Simon Wood <simon@mungewell.org>
-
- 20 Apr, 2024 1 commit
-
-
J. Neuschäfer authored
Fixes: https://github.com/micropython/micropython/issues/14340Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
-
- 17 Apr, 2024 1 commit
-
-
Angus Gratton authored
In the case where an OUT control transfer triggers with wLength==0 (i.e. all data sent in the SETUP phase, and no additional data phase) the callbacks were previously implemented to return b"" (i.e. an empty buffer for the data phase). However this didn't actually work as intended because b"" can't provide a RW buffer (needed for OUT transfers with a data phase to write data into), so actually the endpoint would stall. The symptom was often that the device process the request (if processing it in the SETUP phase when all information was already available), but the host sees the endpoint stall and eventually returns an error. This commit changes the behaviour so returning True from the SETUP phase of a control transfer queues a zero length status response. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-
- 11 Apr, 2024 1 commit
-
-
iabdalkader authored
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
- 30 Mar, 2024 3 commits
-
-
Damien George authored
This optimises the case where a Python function is, for example, stored to a JavaScript attribute and then later retrieved from Python. The Python function no longer needs to be a proxy with double proxying needed for the call from Python -> JavaScript -> Python. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
- 29 Mar, 2024 5 commits
-
-
iabdalkader authored
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
iabdalkader authored
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
iabdalkader authored
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
iabdalkader authored
Use the existing metal log handling mechanism instead of overriding the metal_log, which causes build issues when logging is enabled. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
- 28 Mar, 2024 17 commits
-
-
Damien George authored
Ports that use axtls cannot run the `test_tls_sites.py` test because the sites it connects to use advanced ciphers. So skip this test on such ports, and add a new, simpler test that doesn't require certificate verification and works with axtls. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Supporting `verify_mode` and `CERT_NONE` is required for the new `ssl.py` code, as well as `requests` to work. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
This is required because the .mpy native ABI was changed by the introduction of `mp_proto_fun_t`, see commits: - 416465d8 - 5e3006f1 - e2ff00e8 And three `mp_binary` functions were added to `mp_fun_table` in commit d2276f0d. Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
Signed-off-by: Damien George <damien@micropython.org>
-
Damien George authored
These are needed to read/write array.array objects, which is useful in native code to provide fast extensions that work with big arrays of data. Signed-off-by: Damien George <damien@micropython.org>
-
robert-hh authored
Confirguration provided by by @ironss-iotec. Signed-off-by: robert-hh <robert@hammelrath.com>
-
robert-hh authored
Change provided by @ironss-iotec. Tested with Adafruit, SEEED and MiniFig boards for non-interference. Fixes issue #14190. Signed-off-by: robert-hh <robert@hammelrath.com>
-
robert-hh authored
Using a define for MICROPY_HW_SPIFLASH_BAUDRATE in mpconfigboard.h. If not defined the default is 24MHz. Signed-off-by: robert-hh <robert@hammelrath.com>
-
robert-hh authored
For all MCUs: run the test for USB clock recovery mode fallback after USB has been started. For samd21: change DFLL48 config from the open loop mode variant to sync with the XOSC32KULP. Matches better the 48MHz value. Signed-off-by: robert-hh <robert@hammelrath.com>
-
robert-hh authored
For the boards ADAFRUIT_TRINKET_M0 and MINISAM_M4. Signed-off-by: robert-hh <robert@hammelrath.com>
-
robert-hh authored
At a single place, STM32 was used instead of SAMD. Signed-off-by: robert-hh <robert@hammelrath.com>
-
iabdalkader authored
Following the same change to extmod network interfaces. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
iabdalkader authored
Following the same change to extmod network interfaces. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
iabdalkader authored
Other constants such as `machine.Pin.OUT` are defined on the class that uses them, rather than at the module level. This commit makes that the case for WLAN network interfaces, adding IF_xxx and SEC_xxx constants. The SEC_xxx constants are named as such to match the `security` keyword that they are used with. And the IF_xxx constants have IF as a prefix so they are grouped together as names. This scheme of putting constants on the class means that only the available features (eg security configurations) are made available as constants. It also means that different network interfaces (eg WLAN vs LAN) can keep their own specific constants within their class, such as PHY_xxx for LAN. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
iabdalkader authored
The default CYW43 WiFi AP settings were missing the security mode, leaving the AP in open mode by default. That's changed by this commit to use WPA/WPA2 by default. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-
Matt Trentini authored
Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
-
- 27 Mar, 2024 2 commits
-
-
Damien George authored
When defining custom USB devices, longer strings may be needed. Eventually the memory for string descriptors can be allocated on demand, but for now this bigger value should be reasonable. Signed-off-by: Damien George <damien@micropython.org>
-
Angus Gratton authored
Updates a few code comments that were out of date or poorly worded. No code changes. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-