circuitpython/ports
Felix Dörre 3c2b2f7a4d rp2/modmachine: Fix lightsleep while wifi is powered off.
While cyw43 is deinitialized, an interrupt occurs.  That is handled with
these lines: ports/rp2/mpnetworkport.c#L59-L61 and as pendsv is disabled
while in network code, the poll function then just waits there.

When deinit has finished, the poll func is executed, but skipped:
src/cyw43_ctrl.c#L222-L225 this skips the `CYW43_POST_POLL_HOOK` which
would re-enable interrupts, but also reset `cyw43_has_pending`.

And in that state, the lightsleep code, will skip sleeping as it thinks
there is a network packet pending to be handled.

With this change applied, lightsleep works as expected when the wifi chip
is enabled, and when it's powered off.
2023-09-29 15:15:42 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
embed all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
esp32 ports: Restrict board.json to standard features. 2023-09-29 14:15:02 +10:00
esp8266 esp8266/boards: Make sure modespnow.o is placed in irom0. 2023-09-29 12:03:00 +10:00
mimxrt {mimxrt,powerpc,samd}/mpconfigport: Don't override parse chunk alloc. 2023-09-29 14:11:26 +10:00
minimal {mimxrt,powerpc,samd}/mpconfigport: Don't override parse chunk alloc. 2023-09-29 14:11:26 +10:00
nrf nrf/boards: Rename all nRF boards to use uppercase. 2023-08-23 13:54:37 +10:00
pic16bit ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
powerpc {mimxrt,powerpc,samd}/mpconfigport: Don't override parse chunk alloc. 2023-09-29 14:11:26 +10:00
qemu-arm examples: Mark asm, pio, etc. as noqa: F821 (undefined-name). 2023-08-16 16:12:33 +10:00
renesas-ra ports: Restrict board.json to standard features. 2023-09-29 14:15:02 +10:00
rp2 rp2/modmachine: Fix lightsleep while wifi is powered off. 2023-09-29 15:15:42 +10:00
samd {mimxrt,powerpc,samd}/mpconfigport: Don't override parse chunk alloc. 2023-09-29 14:11:26 +10:00
stm32 stm32/dma: Remove unbalanced ). 2023-09-28 17:31:54 +10:00
teensy ports: Standardise docs link in help text. 2023-06-02 11:48:46 +10:00
unix py/mkrules.mk: Don't strip binary if STRIP variable is unset. 2023-09-29 13:01:12 +10:00
webassembly webassembly: Replace typeof window check with ENVIRONMENT_IS_NODE flag. 2023-07-13 13:24:35 +10:00
windows extmod/moddeflate: Add deflate module providing the DeflateIO class. 2023-07-21 19:32:40 +10:00
zephyr py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00