Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RP2350 package to i2c-passthru example #19

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ set -euxo pipefail
# Ensure the book builds
mdbook build book

# Template builds for RP2040 and nRF52840
# Template builds for RP2040, RP2350 and nRF52840
rustup target add \
thumbv6m-none-eabi \
thumbv7em-none-eabihf
thumbv7em-none-eabihf \
thumbv8m.main-none-eabihf

# API ICD
cargo check \
Expand Down Expand Up @@ -97,6 +98,11 @@ cargo build \
--target thumbv6m-none-eabi \
--profile ci

cargo build \
--manifest-path examples/i2c-passthru/rp2350/Cargo.toml \
--target thumbv8m.main-none-eabihf \
--profile ci

cargo build \
--manifest-path examples/i2c-passthru/demo/Cargo.toml \
--profile ci
17 changes: 17 additions & 0 deletions examples/i2c-passthru/rp2350/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# If you have an SWD debugfer, you can uncomment this line:
# runner = "probe-rs run --chip RP235x --speed 12000 --protocol swd"

# If you don't, you can put the pico into the USB loader, and use this
# line instead:
runner = "picotool load -x -t elf"

[build]
target = "thumbv8m.main-none-eabihf"

[env]
DEFMT_LOG = "debug"

[unstable]
build-std = ["core"]
build-std-features = ["panic_immediate_abort"]
Loading
Loading