From 42817c4259a0a636da5215e93c8f16d4e3cab5d3 Mon Sep 17 00:00:00 2001 From: mahu-wm <127418871+mahu-wm@users.noreply.github.com> Date: Mon, 20 Jan 2025 10:55:21 +0100 Subject: [PATCH 1/2] Fix issue with enabled split-pxy feature The fixed error message is: error[E0425]: cannot find value `pin_name` in this scope --- embassy-stm32/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index 4abbf8d69..78569f7da 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs @@ -1534,7 +1534,7 @@ fn main() { // This should avoid unintended side-effects as much as possible. #[cfg(feature = "_split-pins-enabled")] for split_feature in &split_features { - if split_feature.pin_name_without_c == pin_name { + if split_feature.pin_name_without_c == pin.name { pins_table.push(vec![ split_feature.pin_name_with_c.to_string(), p.name.to_string(), From 3de0a21acad8b8ca7d803562548084c0726a15f2 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 21 Jan 2025 23:25:49 +0100 Subject: [PATCH 2/2] stm32: test split pins in CI. --- ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci.sh b/ci.sh index 1aa206c1d..59bcab875 100755 --- a/ci.sh +++ b/ci.sh @@ -129,7 +129,7 @@ cargo batch \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32f730i8,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h753zi,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h735zg,defmt,exti,time-driver-any,time \ - --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h755zi-cm7,defmt,exti,time-driver-any,time \ + --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h755zi-cm7,defmt,exti,time-driver-any,time,split-pc2,split-pc3 \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h725re,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h7b3ai,defmt,exti,time-driver-any,time \ --- build --release --manifest-path embassy-stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h7b3ai,defmt,exti,time-driver-tim1,time \