From 8930cd85b53608845e979377e437e0aca10e909e Mon Sep 17 00:00:00 2001 From: Michael Huebner Date: Mon, 31 Mar 2025 15:06:49 +0200 Subject: [PATCH] Fix pio loading --- Cargo.toml | 6 ++---- src/program.rs | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c7e4835..6973b96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,14 +14,11 @@ categories = ["embedded", "hardware-support", "no-std"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -embassy-rp = { version = "0.4.0", features = ["unstable-pac", "time-driver", "critical-section-impl"] } +embassy-rp = { version = "0.4.0", features = ["critical-section-impl", "time-driver", "unstable-pac"] } embassy-time = { version = "0.4.0" } cortex-m = { version = "0.7.6", features = ["inline-asm"] } cortex-m-rt = "0.7.3" -pio-proc = "0.2.2" -pio = "0.2.1" - fixed = "1.23.1" fixed-macro = "1.2" @@ -31,3 +28,4 @@ serde = { version = "1.0.203", default-features = false, features = ["derive"] } rp235xa = ["embassy-rp/rp235xa"] rp235xb = ["embassy-rp/rp235xb"] +default = ["rp235xa"] diff --git a/src/program.rs b/src/program.rs index 6e0fd3c..1fee707 100644 --- a/src/program.rs +++ b/src/program.rs @@ -1,5 +1,4 @@ -use embassy_rp::pio::{Common, Instance, LoadedProgram}; -use pio_proc::pio_file; +use embassy_rp::pio::{program::pio_file, Common, Instance, LoadedProgram}; pub struct DhtProgram<'d, PIO: Instance> { program: LoadedProgram<'d, PIO>,