From a13f24b39b7cde4ce8a5c49bae3aa53ec2bcb96d Mon Sep 17 00:00:00 2001 From: Pedro Ferreira Date: Tue, 24 Sep 2024 19:42:27 +0200 Subject: [PATCH] TMP: use pio-rs from cbjamo --- embassy-rp/Cargo.toml | 9 +++++++-- examples/rp23/Cargo.toml | 8 ++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 29a8a3c53..5a1b83157 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml @@ -92,7 +92,7 @@ boot2-none = [] ## Configure the hal for use with the rp2040 rp2040 = ["rp-pac/rp2040"] -_rp235x = ["rp-pac/rp235x"] +_rp235x = ["rp-pac/rp235x", "pio/rp2350", "pio-proc/rp2350"] ## Configure the hal for use with the rp235xA rp235xa = ["_rp235x"] ## Configure the hal for use with the rp235xB @@ -139,7 +139,7 @@ embedded-hal-async = { version = "1.0" } embedded-hal-nb = { version = "1.0" } pio-proc = {version= "0.2" } -pio = {version= "0.2.1" } +pio = { version= "0.2.1" } rp2040-boot2 = "0.3" document-features = "0.2.7" sha2-const-stable = "0.1" @@ -148,3 +148,8 @@ rp-binary-info = { version = "0.1.0", optional = true } [dev-dependencies] embassy-executor = { version = "0.6.0", path = "../embassy-executor", features = ["arch-std", "executor-thread"] } static_cell = { version = "2" } + +[patch.crates-io] +pio = { git="https://github.com/CBJamo/pio-rs.git", rev="72a5a7daa859b9d8a416564a2fbf849f58e51639" } +pio-parser = { git="https://github.com/CBJamo/pio-rs.git", rev="72a5a7daa859b9d8a416564a2fbf849f58e51639" } +pio-proc = { git="https://github.com/CBJamo/pio-rs.git", rev="72a5a7daa859b9d8a416564a2fbf849f58e51639" } \ No newline at end of file diff --git a/examples/rp23/Cargo.toml b/examples/rp23/Cargo.toml index 087f6fd69..0addc7437 100644 --- a/examples/rp23/Cargo.toml +++ b/examples/rp23/Cargo.toml @@ -54,8 +54,8 @@ embedded-storage = { version = "0.3" } static_cell = "2.1" portable-atomic = { version = "1.5", features = ["critical-section"] } log = "0.4" -pio-proc = "0.2" -pio = "0.2.1" +pio-proc = { version = "0.2", feature = ["rp2350"] } +pio = { version = "0.2.1", feature = ["rp2350"] } rand = { version = "0.8.5", default-features = false } embedded-sdmmc = "0.7.0" @@ -77,3 +77,7 @@ embassy-futures = { path = "../../embassy-futures" } embassy-time = { path = "../../embassy-time" } embassy-time-driver = { path = "../../embassy-time-driver" } embassy-embedded-hal = { path = "../../embassy-embedded-hal" } + +pio = { git="https://github.com/CBJamo/pio-rs.git", rev="72a5a7daa859b9d8a416564a2fbf849f58e51639" } +pio-parser = { git="https://github.com/CBJamo/pio-rs.git", rev="72a5a7daa859b9d8a416564a2fbf849f58e51639" } +pio-proc = { git="https://github.com/CBJamo/pio-rs.git", rev="72a5a7daa859b9d8a416564a2fbf849f58e51639" } \ No newline at end of file