From 17c5dc496e725ad31ed5b285e07b38e9ce4ee7d2 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 7 Dec 2021 01:24:26 +0100 Subject: [PATCH] stm32/tests: add stm32h755zi, stm32wb55rg --- ci.sh | 4 +++- tests/stm32/Cargo.toml | 2 ++ tests/stm32/src/bin/gpio.rs | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ci.sh b/ci.sh index 046038ffa..6beea8677 100755 --- a/ci.sh +++ b/ci.sh @@ -60,6 +60,8 @@ cargo batch \ --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32f429zi --out-dir out/tests/nucleo-stm32f429zi \ --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32g491re --out-dir out/tests/nucleo-stm32g491re \ --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32g071rb --out-dir out/tests/nucleo-stm32g071rb \ + --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h755zi --out-dir out/tests/nucleo-stm32h755zi \ + --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32wb55rg --out-dir out/tests/nucleo-stm32wb55rg \ function run_elf { @@ -87,7 +89,7 @@ if [[ -z "${TELEPROBE_TOKEN-}" ]]; then fi for board in $(ls out/tests); do - echo Running tests fo board: $board + echo Running tests for board: $board for elf in $(ls out/tests/$board); do run_elf $board out/tests/$board/$elf done diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index e092caf8b..dc66d08c0 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml @@ -9,6 +9,8 @@ resolver = "2" stm32f429zi = ["embassy-stm32/stm32f429zi"] stm32g071rb = ["embassy-stm32/stm32g071rb"] stm32g491re = ["embassy-stm32/stm32g491re"] +stm32h755zi = ["embassy-stm32/stm32h755zi-cm7"] +stm32wb55rg = ["embassy-stm32/stm32wb55rg"] [dependencies] embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } diff --git a/tests/stm32/src/bin/gpio.rs b/tests/stm32/src/bin/gpio.rs index 7a9d38f2d..f276ce7f4 100644 --- a/tests/stm32/src/bin/gpio.rs +++ b/tests/stm32/src/bin/gpio.rs @@ -23,6 +23,10 @@ async fn main(_spawner: Spawner, p: Peripherals) { let (mut a, mut b) = (p.PC4, p.PC5); #[cfg(feature = "stm32f429zi")] let (mut a, mut b) = (p.PG14, p.PG9); + #[cfg(feature = "stm32wb55rg")] + let (mut a, mut b) = (p.PA3, p.PA2); + #[cfg(feature = "stm32h755zi")] + let (mut a, mut b) = (p.PB6, p.PB7); // Test initial output {