diff options
| author | Caleb Jamison <[email protected]> | 2024-08-09 12:31:29 -0400 |
|---|---|---|
| committer | Caleb Jamison <[email protected]> | 2024-08-09 12:31:29 -0400 |
| commit | e5d8d8b18e80244275458c38b3dc13a5b9d72a9f (patch) | |
| tree | a8fa9eb709ccc8ba8488c6568f94475643693567 | |
| parent | 6a797deb7200447c20bdd4bddcf79f32affe210b (diff) | |
Switch to single pac
| -rw-r--r-- | embassy-rp/Cargo.toml | 13 | ||||
| -rw-r--r-- | embassy-rp/src/lib.rs | 9 | ||||
| -rw-r--r-- | examples/rp23/Cargo.toml | 2 |
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] |
| 25 | default = [ "rt" ] | 25 | default = [ "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. |
| 27 | rt = [] | 27 | rt = [ "rp-pac/rt" ] |
| 28 | rt-2040 = [ "rt", "rp-pac/rt" ] | ||
| 29 | rt-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. |
| 32 | defmt = ["dep:defmt", "embassy-usb-driver/defmt", "embassy-hal-internal/defmt"] | 30 | defmt = ["dep:defmt", "embassy-usb-driver/defmt", "embassy-hal-internal/defmt"] |
| @@ -91,8 +89,8 @@ boot2-w25x10cl = [] | |||
| 91 | ## ``` | 89 | ## ``` |
| 92 | boot2-none = [] | 90 | boot2-none = [] |
| 93 | 91 | ||
| 94 | rp2040 = ["dep:rp-pac"] | 92 | rp2040 = ["rp-pac/rp2040"] |
| 95 | rp235x = ["dep:rp23-pac"] | 93 | rp235x = ["rp-pac/rp235x"] |
| 96 | rp235xa = ["rp235x"] | 94 | rp235xa = ["rp235x"] |
| 97 | rp235xb = ["rp235x"] | 95 | rp235xb = ["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. |
| 103 | binary-info = [ "rt-235x" ] | 101 | binary-info = [ "rt" ] |
| 104 | 102 | ||
| 105 | [dependencies] | 103 | [dependencies] |
| 106 | embassy-sync = { version = "0.6.0", path = "../embassy-sync" } | 104 | embassy-sync = { version = "0.6.0", path = "../embassy-sync" } |
| @@ -126,8 +124,7 @@ embedded-storage-async = { version = "0.4.1" } | |||
| 126 | rand_core = "0.6.4" | 124 | rand_core = "0.6.4" |
| 127 | fixed = "1.23.1" | 125 | fixed = "1.23.1" |
| 128 | 126 | ||
| 129 | rp-pac = { git = "https://github.com/CBJamo/rp-pac.git", feature = ["rt"], optional = true } | 127 | rp-pac = { git = "https://github.com/CBJamo/rp-pac.git", feature = ["rt"] } |
| 130 | rp23-pac = { git = "https://github.com/HellbenderInc/rp23-pac.git", feature = ["rt"], optional = true } | ||
| 131 | 128 | ||
| 132 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } | 129 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } |
| 133 | embedded-hal-1 = { package = "embedded-hal", version = "1.0" } | 130 | embedded-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 |
| 48 | pub use embassy_hal_internal::{into_ref, Peripheral, PeripheralRef}; | 48 | pub use embassy_hal_internal::{into_ref, Peripheral, PeripheralRef}; |
| 49 | #[cfg(all(feature = "unstable-pac", feature = "rp235x"))] | 49 | |
| 50 | pub use rp23_pac as pac; | 50 | #[cfg(feature = "unstable-pac")] |
| 51 | #[cfg(all(not(feature = "unstable-pac"), feature = "rp235x"))] | ||
| 52 | pub(crate) use rp23_pac as pac; | ||
| 53 | #[cfg(all(feature = "unstable-pac", feature = "rp2040"))] | ||
| 54 | pub use rp_pac as pac; | 51 | pub use rp_pac as pac; |
| 55 | #[cfg(all(not(feature = "unstable-pac"), feature = "rp2040"))] | 52 | #[cfg(not(feature = "unstable-pac"))] |
| 56 | pub(crate) use rp_pac as pac; | 53 | pub(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", | |||
| 10 | embassy-sync = { version = "0.6.0", path = "../../embassy-sync", features = ["defmt"] } | 10 | embassy-sync = { version = "0.6.0", path = "../../embassy-sync", features = ["defmt"] } |
| 11 | embassy-executor = { version = "0.6.0", path = "../../embassy-executor", features = ["task-arena-size-98304", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] } | 11 | embassy-executor = { version = "0.6.0", path = "../../embassy-executor", features = ["task-arena-size-98304", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] } |
| 12 | embassy-time = { version = "0.3.2", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } | 12 | embassy-time = { version = "0.3.2", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } |
| 13 | embassy-rp = { version = "0.2.0", path = "../../embassy-rp", features = ["defmt", "unstable-pac", "time-driver", "critical-section-impl", "rp235xa", "binary-info", "rt-235x", "boot2-none"] } | 13 | embassy-rp = { version = "0.2.0", path = "../../embassy-rp", features = ["defmt", "unstable-pac", "time-driver", "critical-section-impl", "rp235xa", "binary-info"] } |
| 14 | embassy-usb = { version = "0.3.0", path = "../../embassy-usb", features = ["defmt"] } | 14 | embassy-usb = { version = "0.3.0", path = "../../embassy-usb", features = ["defmt"] } |
| 15 | embassy-net = { version = "0.4.0", path = "../../embassy-net", features = ["defmt", "tcp", "udp", "raw", "dhcpv4", "medium-ethernet", "dns"] } | 15 | embassy-net = { version = "0.4.0", path = "../../embassy-net", features = ["defmt", "tcp", "udp", "raw", "dhcpv4", "medium-ethernet", "dns"] } |
| 16 | embassy-net-wiznet = { version = "0.1.0", path = "../../embassy-net-wiznet", features = ["defmt"] } | 16 | embassy-net-wiznet = { version = "0.1.0", path = "../../embassy-net-wiznet", features = ["defmt"] } |
