diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-07 00:47:59 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-07 00:47:59 +0000 |
| commit | 5dc5192d79d211569b447dd12b4b09191a9b5a54 (patch) | |
| tree | 2aff5b317fceac972a0f528dafa0a4b201260143 | |
| parent | c1b47599357fbc0c616afe56c5b77539149f6887 (diff) | |
| parent | 17c5dc496e725ad31ed5b285e07b38e9ce4ee7d2 (diff) | |
Merge #520
520: stm32/tests: add stm32h755zi, stm32wb55rg r=Dirbaio a=Dirbaio
Co-authored-by: Dario Nieuwenhuis <[email protected]>
| -rwxr-xr-x | ci.sh | 4 | ||||
| -rw-r--r-- | tests/stm32/Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/stm32/src/bin/gpio.rs | 4 |
3 files changed, 9 insertions, 1 deletions
| @@ -60,6 +60,8 @@ cargo batch \ | |||
| 60 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32f429zi --out-dir out/tests/nucleo-stm32f429zi \ | 60 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32f429zi --out-dir out/tests/nucleo-stm32f429zi \ |
| 61 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32g491re --out-dir out/tests/nucleo-stm32g491re \ | 61 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32g491re --out-dir out/tests/nucleo-stm32g491re \ |
| 62 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32g071rb --out-dir out/tests/nucleo-stm32g071rb \ | 62 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv6m-none-eabi --features stm32g071rb --out-dir out/tests/nucleo-stm32g071rb \ |
| 63 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32h755zi --out-dir out/tests/nucleo-stm32h755zi \ | ||
| 64 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32wb55rg --out-dir out/tests/nucleo-stm32wb55rg \ | ||
| 63 | 65 | ||
| 64 | 66 | ||
| 65 | function run_elf { | 67 | function run_elf { |
| @@ -87,7 +89,7 @@ if [[ -z "${TELEPROBE_TOKEN-}" ]]; then | |||
| 87 | fi | 89 | fi |
| 88 | 90 | ||
| 89 | for board in $(ls out/tests); do | 91 | for board in $(ls out/tests); do |
| 90 | echo Running tests fo board: $board | 92 | echo Running tests for board: $board |
| 91 | for elf in $(ls out/tests/$board); do | 93 | for elf in $(ls out/tests/$board); do |
| 92 | run_elf $board out/tests/$board/$elf | 94 | run_elf $board out/tests/$board/$elf |
| 93 | done | 95 | 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" | |||
| 9 | stm32f429zi = ["embassy-stm32/stm32f429zi"] | 9 | stm32f429zi = ["embassy-stm32/stm32f429zi"] |
| 10 | stm32g071rb = ["embassy-stm32/stm32g071rb"] | 10 | stm32g071rb = ["embassy-stm32/stm32g071rb"] |
| 11 | stm32g491re = ["embassy-stm32/stm32g491re"] | 11 | stm32g491re = ["embassy-stm32/stm32g491re"] |
| 12 | stm32h755zi = ["embassy-stm32/stm32h755zi-cm7"] | ||
| 13 | stm32wb55rg = ["embassy-stm32/stm32wb55rg"] | ||
| 12 | 14 | ||
| 13 | [dependencies] | 15 | [dependencies] |
| 14 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } | 16 | 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) { | |||
| 23 | let (mut a, mut b) = (p.PC4, p.PC5); | 23 | let (mut a, mut b) = (p.PC4, p.PC5); |
| 24 | #[cfg(feature = "stm32f429zi")] | 24 | #[cfg(feature = "stm32f429zi")] |
| 25 | let (mut a, mut b) = (p.PG14, p.PG9); | 25 | let (mut a, mut b) = (p.PG14, p.PG9); |
| 26 | #[cfg(feature = "stm32wb55rg")] | ||
| 27 | let (mut a, mut b) = (p.PA3, p.PA2); | ||
| 28 | #[cfg(feature = "stm32h755zi")] | ||
| 29 | let (mut a, mut b) = (p.PB6, p.PB7); | ||
| 26 | 30 | ||
| 27 | // Test initial output | 31 | // Test initial output |
| 28 | { | 32 | { |
