-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deletes the top-level workspace and moves the examples.
RP2350 stuff is coming, and you can't build rp2040-hal for Armv8-M and you can't build rp235x-hal for Armv6-M, and so they cannot be in the same workspace. Ergo, if the rp2350-hal is coming to this repo (and it is), we cannot have a workspace any more. I also moved the examples into their own package, because that's much neater than having to deal with memory.x being in magically the right place, or a bunch of dev-dependencies that are not relevant to most crate users.
- Loading branch information
Showing
58 changed files
with
581 additions
and
255 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
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" |
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,36 @@ | ||
[package] | ||
name = "rp2040-hal-examples" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["The rp-rs Developers"] | ||
homepage = "https://github.com/rp-rs/rp-hal" | ||
description = "Examples for the rp2040-hal crate" | ||
license = "MIT OR Apache-2.0" | ||
rust-version = "1.77" | ||
repository = "https://github.com/rp-rs/rp-hal" | ||
categories = ["embedded", "hardware-support", "no-std", "no-std::no-alloc"] | ||
keywords = ["embedded", "hal", "raspberry-pi", "rp2040", "embedded-hal"] | ||
|
||
[dependencies] | ||
cortex-m = "0.7.2" | ||
cortex-m-rt = "0.7" | ||
cortex-m-rtic = "1.1.4" | ||
critical-section = { version = "1.0.0" } | ||
defmt = "0.3" | ||
defmt-rtt = "0.4.0" | ||
dht-sensor = "0.2.1" | ||
embedded_hal_0_2 = { package = "embedded-hal", version = "0.2.5", features = ["unproven"] } | ||
embedded-alloc = "0.5.1" | ||
embedded-hal = "1.0.0" | ||
embedded-hal-async = "1.0.0" | ||
fugit = "0.3.6" | ||
futures = { version = "0.3.30", default-features = false, features = ["async-await"] } | ||
hd44780-driver = "0.4.0" | ||
nb = "1.0" | ||
nostd_async = { version = "0.6.1", features = ["cortex_m"] } | ||
panic-halt = "0.2.0" | ||
panic-probe = { version = "0.3.1", features = ["print-defmt"] } | ||
pio = "0.2.0" | ||
pio-proc = "0.2.0" | ||
rp2040-boot2 = "0.3.0" | ||
rp2040-hal = { path = "../rp2040-hal", version = "0.10.0", features = ["binary-info", "critical-section-impl", "rt", "defmt"] } |
Oops, something went wrong.