-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #828 from rp-rs/move-examples-delete-workspace
Deletes the top-level workspace and moves the examples.
- Loading branch information
Showing
59 changed files
with
633 additions
and
317 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
rem Formats all the files in the repo | ||
|
||
cargo fmt --manifest-path rp2040-hal\Cargo.toml -- --check | ||
cargo fmt --manifest-path rp2040-hal-macros\Cargo.toml -- --check | ||
cargo fmt --manifest-path rp2040-hal-examples\Cargo.toml -- --check | ||
cargo fmt --manifest-path on-target-tests\Cargo.toml -- --check |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# Formats all the files in the repo | ||
|
||
cargo fmt --manifest-path rp2040-hal/Cargo.toml -- --check | ||
cargo fmt --manifest-path rp2040-hal-macros/Cargo.toml -- --check | ||
cargo fmt --manifest-path rp2040-hal-examples/Cargo.toml -- --check | ||
cargo fmt --manifest-path on-target-tests/Cargo.toml -- --check |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,78 @@ | ||
[package] | ||
authors = ["The rp-rs Developers"] | ||
description = "Test cases that run on an RP2040" | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
name = "on-target-tests" | ||
version = "0.1.0" | ||
publish = false | ||
readme = "README.md" | ||
repository = "https://github.com/rp-rs/rp-hal" | ||
version = "0.1.0" | ||
|
||
[[test]] | ||
name = "dma_m2m_u8" | ||
harness = false | ||
name = "dma_m2m_u8" | ||
|
||
[[test]] | ||
name = "dma_m2m_u16" | ||
harness = false | ||
name = "dma_m2m_u16" | ||
|
||
[[test]] | ||
name = "dma_m2m_u32" | ||
harness = false | ||
name = "dma_m2m_u32" | ||
|
||
[[test]] | ||
name = "dma_spi_loopback_u8" | ||
harness = false | ||
name = "dma_spi_loopback_u8" | ||
|
||
[[test]] | ||
name = "dma_spi_loopback_u16" | ||
harness = false | ||
name = "dma_spi_loopback_u16" | ||
|
||
[[test]] | ||
name = "dma_dyn" | ||
harness = false | ||
name = "dma_dyn" | ||
|
||
[[test]] | ||
name = "i2c_loopback" | ||
harness = false | ||
name = "i2c_loopback" | ||
|
||
[[test]] | ||
name = "i2c_loopback_async" | ||
harness = false | ||
name = "i2c_loopback_async" | ||
|
||
[[test]] | ||
name = "gpio" | ||
harness = false | ||
name = "gpio" | ||
|
||
[dependencies] | ||
cortex-m = "0.7" | ||
cortex-m-rt = "0.7" | ||
embedded_hal_0_2 = { package = "embedded-hal", version = "0.2.5", features = [ | ||
"unproven", | ||
] } | ||
embedded-hal = "1.0.0" | ||
embedded-hal-async = "1.0.0" | ||
|
||
critical-section = "1.0.0" | ||
defmt = "0.3" | ||
defmt-rtt = "0.4" | ||
defmt-test = "0.3.1" | ||
panic-probe = { version = "0.3", features = ["print-defmt"] } | ||
|
||
rp2040-hal = { path = "../rp2040-hal", features = [ | ||
"critical-section-impl", | ||
"defmt", | ||
"rt", | ||
"i2c-write-iter", | ||
] } | ||
# Needed to set spi frequencies | ||
embedded-hal = "1.0.0" | ||
embedded-hal-async = "1.0.0" | ||
embedded_hal_0_2 = {package = "embedded-hal", version = "0.2.5", features = ["unproven"]} | ||
fugit = "0.3.6" | ||
|
||
futures = {version = "0.3.30", default-features = false, features = ["async-await"]} | ||
heapless = {version = "0.8.0", features = ["portable-atomic-critical-section", "defmt-03"]} | ||
i2c-write-iter = {version = "1.0.0", features = ["async"]} | ||
itertools = {version = "0.12.0", default-features = false} | ||
nostd_async = {version = "0.6.1", features = ["wfe"]} | ||
panic-probe = {version = "0.3", features = ["print-defmt"]} | ||
rp2040-boot2 = "0.3.0" | ||
critical-section = "1.0.0" | ||
heapless = { version = "0.8.0", features = [ | ||
"portable-atomic-critical-section", | ||
"defmt-03", | ||
] } | ||
# - `wfe`: we may want to signal between cores with sev | ||
# - `wfe` implies `cortex-m` | ||
nostd_async = { version = "0.6.1", features = ["wfe"] } | ||
futures = { version = "0.3.30", default-features = false, features = [ | ||
"async-await", | ||
] } | ||
i2c-write-iter = { version = "1.0.0", features = ["async"] } | ||
itertools = { version = "0.12.0", default-features = false } | ||
rp2040-hal = {path = "../rp2040-hal", features = ["critical-section-impl", "defmt", "rt", "i2c-write-iter"]} | ||
|
||
[profile.dev] | ||
codegen-units = 1 | ||
incremental = false | ||
lto = 'fat' | ||
opt-level = 's' | ||
|
||
[profile.test] | ||
codegen-units = 1 | ||
incremental = false | ||
lto = 'fat' | ||
opt-level = 's' |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Cargo Configuration for the https://github.com/rp-rs/rp-hal.git repository. | ||
# | ||
# You might want to make a similar file in your own repository if you are | ||
# writing programs for Raspberry Silicon microcontrollers. | ||
# | ||
|
||
[build] | ||
# Set the default target to match the Cortex-M0+ in the RP2040 | ||
target = "thumbv6m-none-eabi" | ||
|
||
# Target specific options | ||
[target.thumbv6m-none-eabi] | ||
# Pass some extra options to rustc, some of which get passed on to the linker. | ||
# | ||
# * linker argument --nmagic turns off page alignment of sections (which saves | ||
# flash space) | ||
# * linker argument -Tlink.x tells the linker to use link.x as the linker | ||
# script. This is usually provided by the cortex-m-rt crate, and by default | ||
# the version in that crate will include a file called `memory.x` which | ||
# describes the particular memory layout for your specific chip. | ||
# * no-vectorize-loops turns off the loop vectorizer (seeing as the M0+ doesn't | ||
# have SIMD) | ||
rustflags = [ | ||
"-C", "link-arg=--nmagic", | ||
"-C", "link-arg=-Tlink.x", | ||
"-C", "link-arg=-Tdefmt.x", | ||
"-C", "no-vectorize-loops", | ||
] | ||
|
||
# This runner will make a UF2 file and then copy it to a mounted RP2040 in USB | ||
# Bootloader mode: | ||
runner = "elf2uf2-rs -d" | ||
|
||
# This runner will find a supported SWD debug probe and flash your RP2040 over | ||
# SWD: | ||
# runner = "probe-rs run --chip RP2040" |
Oops, something went wrong.