circuitpython/ports/mimxrt10xx
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
..
boards Merge pull request #4468 from jepler/metro-m7-dup-pins 2021-03-27 12:49:33 -05:00
common-hal codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
linking Unify iMX flash config and add Metro M7 1011 2020-10-07 15:23:47 -07:00
peripherals/mimxrt10xx codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
sdk@8363ff7bed Correct MIMXRT sdk version 2020-03-27 15:40:17 -07:00
supervisor run code formatting script 2021-03-15 19:27:36 +05:30
.gitignore Add initial MIMXRT10XX port 2020-01-06 21:08:49 +01:00
Makefile Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
README.md Add initial MIMXRT10XX port 2020-01-06 21:08:49 +01:00
background.c run code formatting script 2021-03-15 19:27:36 +05:30
background.h supervisor: factor supervisor_background_tasks from sundry ports 2020-07-15 11:49:44 -05:00
board.h Add `board_deinit` for use with sleep 2020-12-08 10:52:25 -08:00
fatfs_port.c run code formatting script 2021-03-15 19:27:36 +05:30
mpconfigport.h run code formatting script 2021-03-15 19:27:36 +05:30
mpconfigport.mk mimxrt10xx: enable adafruit_bus_device in core 2021-04-06 09:19:41 -05:00
mphalport.c run code formatting script 2021-03-15 19:27:36 +05:30
mphalport.h run code formatting script 2021-03-15 19:27:36 +05:30
qstrdefsport.h Add initial MIMXRT10XX port 2020-01-06 21:08:49 +01:00
reset.c Refine iMX RT memory layout and add three boards 2020-01-17 17:36:08 -08:00
reset.h mimxrt10xx: Add required header for NORETURN definition 2020-09-28 18:56:01 -05:00

README.md

CircuitPython Port To The NXP i.MX RT10xx Series

This is a port of CircuitPython to the i.MX RT10xx series of chips.