circuitpython/ports/raspberrypi
Jeff Epler e95e921ca1 codeformat: Fix filename matching
In #4683, tannewt noticed that uncrustify was not running on some
file in common-hal.

I investigated and found that it was not being run on a bunch of paths.

Rather than make incremental changes, I rewrote list_files to work
bsaed on regular expressions; these regular expressions are created from
the same git-style glob patterns.

I spot-checked some specific filenames after this change, and all looks good:

```
$ python3 tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py  ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
tools/codeformat.py -v --dry-run tests/basics/int_small.py ports/raspberrypi/common-hal/pulseio/PulseIn.c extmod/virtpin.c tests/thread/thread_exit1.py ports/raspberrypi/background.h extmod/re1.5/recursiveloop.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup extmod/virtpin.c ports/raspberrypi/background.h ports/raspberrypi/common-hal/pulseio/PulseIn.c
black --fast --line-length=99 -v tests/thread/thread_exit1.py
```
recursiveloop and int_small are excluded, while PulseIn, virtpin,
and background are included.

Testing running from a subdirectory (not _specifically_ supported though):
```
(cd ports && python3 ../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c)
../tools/codeformat.py -v --dry-run raspberrypi/common-hal/pulseio/PulseIn.c ../extmod/virtpin.c
uncrustify -c /home/jepler/src/circuitpython/tools/uncrustify.cfg -lC --no-backup ../extmod/virtpin.c raspberrypi/common-hal/pulseio/PulseIn.
```

As a side-effect, a bunch more files are re-formatted now. :-P
2021-04-30 10:48:08 -05:00
..
bindings/rp2pio Merge pull request #4649 from tannewt/merge_1.11_2 2021-04-27 11:02:02 -07:00
boards codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
common-hal codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
peripherals run code formatting script 2021-03-15 19:27:36 +05:30
sdk@7a6660134a Calculate RP2040 SDA hold time 2021-03-29 14:40:13 -04:00
sdk_config/pico Add initial RP2040 support 2021-01-20 19:16:56 -08:00
supervisor Fix doc build and address feedback 2021-03-22 15:24:27 -07:00
.gitignore Add initial RP2040 support 2021-01-20 19:16:56 -08:00
audio_dma.c run code formatting script 2021-03-15 19:27:36 +05:30
audio_dma.h run code formatting script 2021-03-15 19:27:36 +05:30
background.c run code formatting script 2021-03-15 19:27:36 +05:30
background.h Add initial RP2040 support 2021-01-20 19:16:56 -08:00
boot_stage2.ld Redo RP2040 flash settings 2021-03-18 16:55:42 -07:00
fatfs_port.c run code formatting script 2021-03-15 19:27:36 +05:30
gen_stage2.py Improve Winbond naming and correct board settings 2021-03-23 09:06:48 -07:00
link.ld Redo RP2040 flash settings 2021-03-18 16:55:42 -07:00
Makefile Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
mpconfigport.h run code formatting script 2021-03-15 19:27:36 +05:30
mpconfigport.mk raspberrypi: Implement ParallelImageCapture using PIO 2021-04-22 12:02:51 -05:00
mphalport.c Add initial RP2040 support 2021-01-20 19:16:56 -08:00
mphalport.h run code formatting script 2021-03-15 19:27:36 +05:30
qstrdefsport.h Add initial RP2040 support 2021-01-20 19:16:56 -08:00
README.rst Add initial RP2040 support 2021-01-20 19:16:56 -08:00
stage2.c.jinja Fix doc build and address feedback 2021-03-22 15:24:27 -07: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