aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Jamison <[email protected]>2024-08-09 12:31:29 -0400
committerCaleb Jamison <[email protected]>2024-08-09 12:31:29 -0400
commite5d8d8b18e80244275458c38b3dc13a5b9d72a9f (patch)
treea8fa9eb709ccc8ba8488c6568f94475643693567
parent6a797deb7200447c20bdd4bddcf79f32affe210b (diff)
Switch to single pac
-rw-r--r--embassy-rp/Cargo.toml13
-rw-r--r--embassy-rp/src/lib.rs9
-rw-r--r--examples/rp23/Cargo.toml2
3 files changed, 9 insertions, 15 deletions
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml
index 80f7eca66..6a504335d 100644
--- a/embassy-rp/Cargo.toml
+++ b/embassy-rp/Cargo.toml
@@ -24,9 +24,7 @@ features = ["defmt", "unstable-pac", "time-driver"]
24[features] 24[features]
25default = [ "rt" ] 25default = [ "rt" ]
26## Enable the rt feature of [`rp-pac`](https://docs.rs/rp-pac). This brings in the [`cortex-m-rt`](https://docs.rs/cortex-m-rt) crate, which adds startup code and minimal runtime initialization. 26## Enable the rt feature of [`rp-pac`](https://docs.rs/rp-pac). This brings in the [`cortex-m-rt`](https://docs.rs/cortex-m-rt) crate, which adds startup code and minimal runtime initialization.
27rt = [] 27rt = [ "rp-pac/rt" ]
28rt-2040 = [ "rt", "rp-pac/rt" ]
29rt-235x = [ "rt", "rp23-pac/rt" ]
30 28
31## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers. 29## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers.
32defmt = ["dep:defmt", "embassy-usb-driver/defmt", "embassy-hal-internal/defmt"] 30defmt = ["dep:defmt", "embassy-usb-driver/defmt", "embassy-hal-internal/defmt"]
@@ -91,8 +89,8 @@ boot2-w25x10cl = []
91## ``` 89## ```
92boot2-none = [] 90boot2-none = []
93 91
94rp2040 = ["dep:rp-pac"] 92rp2040 = ["rp-pac/rp2040"]
95rp235x = ["dep:rp23-pac"] 93rp235x = ["rp-pac/rp235x"]
96rp235xa = ["rp235x"] 94rp235xa = ["rp235x"]
97rp235xb = ["rp235x"] 95rp235xb = ["rp235x"]
98 96
@@ -100,7 +98,7 @@ rp235xb = ["rp235x"]
100# 98#
101# Takes up a little flash space, but picotool can then report the name of your 99# Takes up a little flash space, but picotool can then report the name of your
102# program and other details. 100# program and other details.
103binary-info = [ "rt-235x" ] 101binary-info = [ "rt" ]
104 102
105[dependencies] 103[dependencies]
106embassy-sync = { version = "0.6.0", path = "../embassy-sync" } 104embassy-sync = { version = "0.6.0", path = "../embassy-sync" }
@@ -126,8 +124,7 @@ embedded-storage-async = { version = "0.4.1" }
126rand_core = "0.6.4" 124rand_core = "0.6.4"
127fixed = "1.23.1" 125fixed = "1.23.1"
128 126
129rp-pac = { git = "https://github.com/CBJamo/rp-pac.git", feature = ["rt"], optional = true } 127rp-pac = { git = "https://github.com/CBJamo/rp-pac.git", feature = ["rt"] }
130rp23-pac = { git = "https://github.com/HellbenderInc/rp23-pac.git", feature = ["rt"], optional = true }
131 128
132embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } 129embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
133embedded-hal-1 = { package = "embedded-hal", version = "1.0" } 130embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs
index ff9c0803d..a0c6538d2 100644
--- a/embassy-rp/src/lib.rs
+++ b/embassy-rp/src/lib.rs
@@ -46,13 +46,10 @@ pub(crate) mod relocate;
46 46
47// Reexports 47// Reexports
48pub use embassy_hal_internal::{into_ref, Peripheral, PeripheralRef}; 48pub use embassy_hal_internal::{into_ref, Peripheral, PeripheralRef};
49#[cfg(all(feature = "unstable-pac", feature = "rp235x"))] 49
50pub use rp23_pac as pac; 50#[cfg(feature = "unstable-pac")]
51#[cfg(all(not(feature = "unstable-pac"), feature = "rp235x"))]
52pub(crate) use rp23_pac as pac;
53#[cfg(all(feature = "unstable-pac", feature = "rp2040"))]
54pub use rp_pac as pac; 51pub use rp_pac as pac;
55#[cfg(all(not(feature = "unstable-pac"), feature = "rp2040"))] 52#[cfg(not(feature = "unstable-pac"))]
56pub(crate) use rp_pac as pac; 53pub(crate) use rp_pac as pac;
57 54
58#[cfg(feature = "rt")] 55#[cfg(feature = "rt")]
diff --git a/examples/rp23/Cargo.toml b/examples/rp23/Cargo.toml
index 89947ae46..8f8d6ff10 100644
--- a/examples/rp23/Cargo.toml
+++ b/examples/rp23/Cargo.toml
@@ -10,7 +10,7 @@ embassy-embedded-hal = { version = "0.2.0", path = "../../embassy-embedded-hal",
10embassy-sync = { version = "0.6.0", path = "../../embassy-sync", features = ["defmt"] } 10embassy-sync = { version = "0.6.0", path = "../../embassy-sync", features = ["defmt"] }
11embassy-executor = { version = "0.6.0", path = "../../embassy-executor", features = ["task-arena-size-98304", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] } 11embassy-executor = { version = "0.6.0", path = "../../embassy-executor", features = ["task-arena-size-98304", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] }
12embassy-time = { version = "0.3.2", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } 12embassy-time = { version = "0.3.2", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] }
13embassy-rp = { version = "0.2.0", path = "../../embassy-rp", features = ["defmt", "unstable-pac", "time-driver", "critical-section-impl", "rp235xa", "binary-info", "rt-235x", "boot2-none"] } 13embassy-rp = { version = "0.2.0", path = "../../embassy-rp", features = ["defmt", "unstable-pac", "time-driver", "critical-section-impl", "rp235xa", "binary-info"] }
14embassy-usb = { version = "0.3.0", path = "../../embassy-usb", features = ["defmt"] } 14embassy-usb = { version = "0.3.0", path = "../../embassy-usb", features = ["defmt"] }
15embassy-net = { version = "0.4.0", path = "../../embassy-net", features = ["defmt", "tcp", "udp", "raw", "dhcpv4", "medium-ethernet", "dns"] } 15embassy-net = { version = "0.4.0", path = "../../embassy-net", features = ["defmt", "tcp", "udp", "raw", "dhcpv4", "medium-ethernet", "dns"] }
16embassy-net-wiznet = { version = "0.1.0", path = "../../embassy-net-wiznet", features = ["defmt"] } 16embassy-net-wiznet = { version = "0.1.0", path = "../../embassy-net-wiznet", features = ["defmt"] }