Skip to content

Commit 5376443

Browse files
committed
Add support for RP2350 to CircuitPython
This adds support for the next RP2 microcontroller, the RP2350. Thanks to Raspberry Pi folks for early access and to @arturo182, @oberchoo and @SalamCytron for helping with CircuitPython.
1 parent 90fec27 commit 5376443

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2359
-264
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ repos:
88
hooks:
99
- id: check-yaml
1010
- id: end-of-file-fixer
11-
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
11+
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/raspberrypi/sdk|lib/tinyusb)'
1212
- id: trailing-whitespace
13-
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/generate_errors.diff)'
13+
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/generate_errors.diff|ports/raspberrypi/sdk|lib/tinyusb)'
1414
- repo: https://github.com/codespell-project/codespell
1515
rev: v2.2.4
1616
hooks:
@@ -22,7 +22,8 @@ repos:
2222
lib/|
2323
tests/unicode/data/utf-8_invalid.txt|
2424
tests/extmod/data/qr.pgm|
25-
tests/basics/bytearray_byte_operations.py
25+
tests/basics/bytearray_byte_operations.py|
26+
ports/raspberrypi/sdk
2627
)
2728
- repo: local
2829
hooks:
@@ -37,3 +38,8 @@ repos:
3738
entry: python3 tools/codeformat.py
3839
types_or: [c, python]
3940
language: system
41+
exclude: |
42+
(?x)^(
43+
lib/tinyusb|
44+
ports/raspberrypi/sdk
45+
)

lib/tinyusb

Submodule tinyusb updated 212 files

lib/tlsf

Submodule tlsf updated 1 file

locale/circuitpython.pot

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ msgstr ""
109109
#: ports/espressif/common-hal/espulp/ULP.c
110110
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
111111
#: ports/mimxrt10xx/common-hal/usb_host/Port.c
112-
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
112+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c
113+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c
113114
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
114115
#: ports/raspberrypi/common-hal/usb_host/Port.c
115116
#: shared-bindings/digitalio/DigitalInOut.c
@@ -509,7 +510,7 @@ msgid "All event channels in use"
509510
msgstr ""
510511

511512
#: ports/raspberrypi/common-hal/floppyio/__init__.c
512-
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
513+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c
513514
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
514515
#: ports/raspberrypi/common-hal/usb_host/Port.c
515516
msgid "All state machines in use"
@@ -519,7 +520,7 @@ msgstr ""
519520
msgid "All sync event channels in use"
520521
msgstr ""
521522

522-
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
523+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c
523524
msgid "All timers for this pin are in use"
524525
msgstr ""
525526

@@ -1160,7 +1161,9 @@ msgstr ""
11601161
#: ports/atmel-samd/common-hal/ps2io/Ps2.c
11611162
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
11621163
#: ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.c
1163-
#: ports/cxd56/common-hal/pulseio/PulseIn.c shared-bindings/pwmio/PWMOut.c
1164+
#: ports/cxd56/common-hal/pulseio/PulseIn.c
1165+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c
1166+
#: shared-bindings/pwmio/PWMOut.c
11641167
msgid "Internal resource(s) in use"
11651168
msgstr ""
11661169

@@ -1181,12 +1184,17 @@ msgstr ""
11811184
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
11821185
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
11831186
#: ports/raspberrypi/bindings/picodvi/Framebuffer.c
1184-
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c py/argcheck.c
1187+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c
1188+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c py/argcheck.c
11851189
#: shared-bindings/digitalio/DigitalInOut.c
11861190
#: shared-bindings/epaperdisplay/EPaperDisplay.c shared-bindings/pwmio/PWMOut.c
11871191
msgid "Invalid %q"
11881192
msgstr ""
11891193

1194+
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c
1195+
msgid "Invalid %q and %q"
1196+
msgstr ""
1197+
11901198
#: ports/atmel-samd/common-hal/microcontroller/Pin.c
11911199
#: ports/espressif/common-hal/dotclockframebuffer/DotClockFramebuffer.c
11921200
#: ports/mimxrt10xx/common-hal/microcontroller/Pin.c

0 commit comments

Comments
 (0)