Skip to content

Commit

Permalink
Merge pull request #9490 from tannewt/rp2350
Browse files Browse the repository at this point in the history
Add support for the new RP2350
  • Loading branch information
ladyada authored Aug 8, 2024
2 parents f8f1741 + 347d035 commit 060018b
Show file tree
Hide file tree
Showing 77 changed files with 2,747 additions and 292 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,13 @@ jobs:
wget --no-verbose -O gcc-arm.zip https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip
unzip -q -d /tmp gcc-arm.zip
tar -C /tmp/arm-gnu-toolchain* -cf - . | tar -C /usr/local -xf -
pip install wheel
# requirements_dev.txt doesn't install on windows. (with msys2 python)
# We could use a venv instead, but that requires entering the venv on each run step
# that runs in its own shell. There are some actions that help with that, but not for msys2
# that I can find. (dhalbert)
pip install --break-system-packages wheel
# requirements-dev.txt doesn't install on windows. (with msys2 python)
# instead, pick a subset for what we want to do
pip install cascadetoml jinja2 typer click intelhex
pip install --break-system-packages cascadetoml jinja2 typer click intelhex
# check that installed packages work....?
which python; python --version; python -c "import cascadetoml"
which python3; python3 --version; python3 -c "import cascadetoml"
Expand Down
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
url = https://github.com/adafruit/nrfx.git
[submodule "lib/tinyusb"]
path = lib/tinyusb
url = https://github.com/hathach/tinyusb.git
branch = master
url = https://github.com/tannewt/tinyusb.git
branch = esp_fix
fetchRecurseSubmodules = false
[submodule "tools/huffman"]
path = tools/huffman
Expand Down Expand Up @@ -344,8 +344,8 @@
url = https://github.com/adafruit/Adafruit_CircuitPython_Wave.git
[submodule "ports/raspberrypi/lib/Pico-PIO-USB"]
path = ports/raspberrypi/lib/Pico-PIO-USB
url = https://github.com/sekigon-gonnoc/Pico-PIO-USB.git
branch = main
url = https://github.com/adafruit/Pico-PIO-USB.git
branch = sdk2_fix
[submodule "lib/micropython-lib"]
path = lib/micropython-lib
url = https://github.com/micropython/micropython-lib.git
Expand Down
12 changes: 9 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ repos:
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|ports/raspberrypi/sdk|lib/tinyusb)'
- id: trailing-whitespace
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/generate_errors.diff)'
exclude: '^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*|lib/mbedtls_errors/generate_errors.diff|ports/raspberrypi/sdk|lib/tinyusb)'
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
Expand All @@ -22,7 +22,8 @@ repos:
lib/|
tests/unicode/data/utf-8_invalid.txt|
tests/extmod/data/qr.pgm|
tests/basics/bytearray_byte_operations.py
tests/basics/bytearray_byte_operations.py|
ports/raspberrypi/sdk
)
- repo: local
hooks:
Expand All @@ -37,3 +38,8 @@ repos:
entry: python3 tools/codeformat.py
types_or: [c, python]
language: system
exclude: |
(?x)^(
lib/tinyusb|
ports/raspberrypi/sdk
)
2 changes: 1 addition & 1 deletion lib/tinyusb
Submodule tinyusb updated 212 files
2 changes: 1 addition & 1 deletion lib/tlsf
Submodule tlsf updated 1 files
+1 −0 tlsf.c
20 changes: 14 additions & 6 deletions locale/circuitpython.pot
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ msgstr ""
#: ports/espressif/common-hal/espulp/ULP.c
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
#: ports/mimxrt10xx/common-hal/usb_host/Port.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
#: ports/raspberrypi/common-hal/usb_host/Port.c
#: shared-bindings/digitalio/DigitalInOut.c
Expand Down Expand Up @@ -153,7 +154,7 @@ msgstr ""
msgid "%q length must be >= %d"
msgstr ""

#: py/objmodule.c py/runtime.c
#: py/modsys.c py/objmodule.c py/runtime.c
msgid "%q moved from %q to %q"
msgstr ""

Expand Down Expand Up @@ -509,7 +510,7 @@ msgid "All event channels in use"
msgstr ""

#: ports/raspberrypi/common-hal/floppyio/__init__.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c
#: ports/raspberrypi/common-hal/rp2pio/StateMachine.c
#: ports/raspberrypi/common-hal/usb_host/Port.c
msgid "All state machines in use"
Expand All @@ -519,7 +520,7 @@ msgstr ""
msgid "All sync event channels in use"
msgstr ""

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

Expand Down Expand Up @@ -1160,7 +1161,9 @@ msgstr ""
#: ports/atmel-samd/common-hal/ps2io/Ps2.c
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
#: ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.c
#: ports/cxd56/common-hal/pulseio/PulseIn.c shared-bindings/pwmio/PWMOut.c
#: ports/cxd56/common-hal/pulseio/PulseIn.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c
#: shared-bindings/pwmio/PWMOut.c
msgid "Internal resource(s) in use"
msgstr ""

Expand All @@ -1181,12 +1184,16 @@ msgstr ""
#: ports/mimxrt10xx/common-hal/audiobusio/__init__.c
#: ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
#: ports/raspberrypi/bindings/picodvi/Framebuffer.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer.c py/argcheck.c
#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2040.c py/argcheck.c
#: shared-bindings/digitalio/DigitalInOut.c
#: shared-bindings/epaperdisplay/EPaperDisplay.c shared-bindings/pwmio/PWMOut.c
msgid "Invalid %q"
msgstr ""

#: ports/raspberrypi/common-hal/picodvi/Framebuffer_RP2350.c
msgid "Invalid %q and %q"
msgstr ""

#: ports/atmel-samd/common-hal/microcontroller/Pin.c
#: ports/espressif/common-hal/dotclockframebuffer/DotClockFramebuffer.c
#: ports/mimxrt10xx/common-hal/microcontroller/Pin.c
Expand Down Expand Up @@ -2329,6 +2336,7 @@ msgid "You pressed the SW38 button at start up."
msgstr ""

#: ports/espressif/boards/hardkernel_odroid_go/mpconfigboard.h
#: ports/espressif/boards/vidi_x/mpconfigboard.h
msgid "You pressed the VOLUME button at start up."
msgstr ""

Expand Down
5 changes: 4 additions & 1 deletion ports/espressif/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ ifneq ($(IDF_TARGET),esp32c6)
endif

ifeq ($(IDF_TARGET_ARCH),xtensa)
CFLAGS += -mlongcalls
# Remove the last two flags once TinyUSB is updated with the `#include <xtensa_api.h>` instead of
# `#include "xtensa/xtensa_api.h"`.

CFLAGS += -mlongcalls -isystem esp-idf/components/xtensa/deprecated_include/ -Wno-error=cpp
else ifeq ($(IDF_TARGET_ARCH),riscv)
CFLAGS += -march=rv32imac_zicsr_zifencei
endif
Expand Down
Loading

0 comments on commit 060018b

Please sign in to comment.