Add Waveshare RP2350-PiZero board - #1
Closed
davecheney wants to merge 1 commit into
Closed
davecheney wants to merge 1 commit into
davecheney wants to merge 1 commit into
Conversation
Owner
Author
|
Closed in favor of the upstream pull request: tinygo-org#5670 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Waveshare RP2350-PiZero is useful as a first-class TinyGo target for projects that use this RP2350B board. This adds a concrete target and machine pin map so users can build for it directly with
-target waveshare-rp2350-pizero.This target inherits from
rp2350b, sets the board build tag and 16 MB flash size, and adds RP2350B GPIO aliases plus the Pico SDK default UART1, I2C1, and SPI1 pins.LEDis set toNoPinbecause the Pico SDK board header does not definePICO_DEFAULT_LED_PIN, and the Arduino-Pico variant does not definePIN_LED.Validation:
LLVM_CONFIG=/opt/homebrew/opt/llvm@20/bin/llvm-config go test -tags=llvm20 ./compileopts -run 'TestLoadTarget|TestGetTargetSpecs'PATH=/opt/homebrew/opt/lld@20/bin:$PATH LLVM_CONFIG=/opt/homebrew/opt/llvm@20/bin/llvm-config go run -tags=llvm20 . build -target waveshare-rp2350-pizero -o /tmp/waveshare-rp2350-pizero-empty.uf2 examples/emptyPATH=/opt/homebrew/opt/lld@20/bin:$PATH LLVM_CONFIG=/opt/homebrew/opt/llvm@20/bin/llvm-config go run -tags=llvm20 . build -target waveshare-rp2350-pizero -o /tmp/waveshare-rp2350-pizero-blinky1.uf2 examples/blinky1