micropython/ports
Damien George 9b090603a0 webassembly: Implement runPythonAsync() for top-level async code.
With this commit, `interpreter.runPythonAsync(code)` can now be used to run
Python code that uses `await` at the top level.  That will yield up to
JavaScript and produce a thenable, which the JavaScript runtime can then
resume.  Also implemented is the ability for Python code to await on
JavaScript promises/thenables.  For example, outer JavaScript code can
await on `runPythonAsync(code)` which then runs Python code that does
`await js.fetch(url)`.  The entire chain of calls will be suspended until
the fetch completes.

Signed-off-by: Damien George <damien@micropython.org>
2024-03-22 13:37:47 +11:00
..
bare-arm
cc3200 extmod/modmachine: Add MICROPY_PY_MACHINE_RESET configuration option. 2024-03-15 12:04:37 +11:00
embed
esp32 esp32: Workaround IDF issue placing ISR ringbuf functions in IRAM. 2024-03-22 12:14:27 +11:00
esp8266 all: Update extmod, ports, examples to build with new berkeley-db lib. 2024-03-16 12:19:12 +11:00
mimxrt mimxrt: Define the MICROPY_HW_ENABLE_USBDEV macro. 2024-03-15 13:37:42 +11:00
minimal
nrf nrf/boards: Enable MICROPY_HW_ENABLE_USBDEV on boards with USB CDC. 2024-03-16 00:40:39 +11:00
pic16bit
powerpc
qemu-arm
renesas-ra extmod/modmachine: Add MICROPY_PY_MACHINE_RESET configuration option. 2024-03-15 12:04:37 +11:00
rp2 rp2: Enable support for Python USB devices. 2024-03-15 14:24:52 +11:00
samd samd: Enable support for Python USB devices. 2024-03-15 14:24:52 +11:00
stm32 stm32/stm32.mk: Enable _Float16 support on MCUs with hardware floats. 2024-03-20 14:13:49 +11:00
unix unix/variants: Don't use native _Float16 type. 2024-03-20 14:13:49 +11:00
webassembly webassembly: Implement runPythonAsync() for top-level async code. 2024-03-22 13:37:47 +11:00
windows py/objdeque: Expand implementation to be doubly-ended and support iter. 2024-03-18 14:10:14 +11:00
zephyr