Jeff Epler 78fc43baab
raspberrypi: Make port_idle_until_interrupt work
This needs thorough testing before it's merged, as we tried
and reverted this once before (#5341 and #5356).

I think that besides checking for tinyusb having "something to do",
the fact that `port_interrupt_after_ticks` and `port_disable_tick`
weren't implemented that was causing a secondary problem.

I've tested this on a pico w over reboot-cycles and ctrl-c-cycles,
with and without drive automounting, with and without serial repl open,
and on a power-only connection.

I didn't notice the problem reported in #5356 after merely implementing
port_idle_until_interrupt; but I did notice that sleeps in general would
take over-long until "something" (like writing to the USB drive) happened;
I think "something" was probably calling port_enable_tick(). When this
problem was happening, sleeps would take a lot longer; for instance,
`sleep(.001)` would take about 1/20s and `sleep(.1)` would take about 1/7s.
2022-11-12 09:16:41 -06:00
..
2022-10-25 10:09:16 -05:00
2022-09-30 11:19:21 -05:00
2022-10-07 08:48:36 -05:00
2022-08-26 09:54:16 -05:00
2021-09-19 15:51:43 +02:00
2022-04-23 13:09:36 -05:00
2021-09-19 15:51:43 +02:00
2021-03-15 19:27:36 +05:30
2021-01-20 19:16:56 -08:00
2021-03-18 16:55:42 -07:00
2021-10-15 08:20:54 -05:00
2021-07-21 11:02:55 -07:00
2022-03-11 14:03:04 -05:00
2021-03-15 19:27:36 +05:30
2021-01-20 19:16:56 -08:00
2021-01-20 19:16:56 -08:00
2021-11-10 12:11:06 -06:00

RP2040
==================

This port supports many development boards that utilize RP2040 chips. See
https://circuitpython.org/downloads for all supported boards.


Building
--------

For build instructions see this guide: https://learn.adafruit.com/building-circuitpython/


Port Specific modules
---------------------

.. toctree::
    ../../shared-bindings/rp2pio/index