aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-05-01 18:15:46 +0200
committerDario Nieuwenhuis <[email protected]>2023-05-01 22:43:23 +0200
commit96e8a7ddb9b768a2827dffa5c72723b1075381ad (patch)
tree4a4f790c6667ea5d86b7cefd5f0958427efc3416 /tests
parent25864ae4dc3e5a765f6a3e2bb52bceb4df2e0199 (diff)
stm32/uart: feature-gate ringbuffer out when using gpdma, not supported yet.
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/Cargo.toml20
-rw-r--r--tests/stm32/src/bin/usart_rx_ringbuffered.rs2
2 files changed, 15 insertions, 7 deletions
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml
index 240fad522..eca470358 100644
--- a/tests/stm32/Cargo.toml
+++ b/tests/stm32/Cargo.toml
@@ -5,18 +5,19 @@ version = "0.1.0"
5license = "MIT OR Apache-2.0" 5license = "MIT OR Apache-2.0"
6 6
7[features] 7[features]
8stm32f103c8 = ["embassy-stm32/stm32f103c8"] # Blue Pill 8stm32f103c8 = ["embassy-stm32/stm32f103c8", "not-gpdma"] # Blue Pill
9stm32f429zi = ["embassy-stm32/stm32f429zi", "sdmmc", "chrono"] # Nucleo 9stm32f429zi = ["embassy-stm32/stm32f429zi", "sdmmc", "chrono", "not-gpdma"] # Nucleo
10stm32g071rb = ["embassy-stm32/stm32g071rb"] # Nucleo 10stm32g071rb = ["embassy-stm32/stm32g071rb", "not-gpdma"] # Nucleo
11stm32c031c6 = ["embassy-stm32/stm32c031c6"] # Nucleo 11stm32c031c6 = ["embassy-stm32/stm32c031c6", "not-gpdma"] # Nucleo
12stm32g491re = ["embassy-stm32/stm32g491re"] # Nucleo 12stm32g491re = ["embassy-stm32/stm32g491re", "not-gpdma"] # Nucleo
13stm32h755zi = ["embassy-stm32/stm32h755zi-cm7"] # Nucleo 13stm32h755zi = ["embassy-stm32/stm32h755zi-cm7", "not-gpdma"] # Nucleo
14stm32wb55rg = ["embassy-stm32/stm32wb55rg"] # Nucleo 14stm32wb55rg = ["embassy-stm32/stm32wb55rg", "not-gpdma"] # Nucleo
15stm32h563zi = ["embassy-stm32/stm32h563zi"] # Nucleo 15stm32h563zi = ["embassy-stm32/stm32h563zi"] # Nucleo
16stm32u585ai = ["embassy-stm32/stm32u585ai"] # IoT board 16stm32u585ai = ["embassy-stm32/stm32u585ai"] # IoT board
17 17
18sdmmc = [] 18sdmmc = []
19chrono = ["embassy-stm32/chrono", "dep:chrono"] 19chrono = ["embassy-stm32/chrono", "dep:chrono"]
20not-gpdma = []
20 21
21[dependencies] 22[dependencies]
22embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } 23embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] }
@@ -80,6 +81,11 @@ name = "usart_dma"
80path = "src/bin/usart_dma.rs" 81path = "src/bin/usart_dma.rs"
81required-features = [] 82required-features = []
82 83
84[[bin]]
85name = "usart_rx_ringbuffered"
86path = "src/bin/usart_rx_ringbuffered.rs"
87required-features = [ "not-gpdma",]
88
83# END TESTS 89# END TESTS
84 90
85[profile.dev] 91[profile.dev]
diff --git a/tests/stm32/src/bin/usart_rx_ringbuffered.rs b/tests/stm32/src/bin/usart_rx_ringbuffered.rs
index 48dc25b0e..86bcfab8d 100644
--- a/tests/stm32/src/bin/usart_rx_ringbuffered.rs
+++ b/tests/stm32/src/bin/usart_rx_ringbuffered.rs
@@ -1,3 +1,5 @@
1// required-features: not-gpdma
2
1#![no_std] 3#![no_std]
2#![no_main] 4#![no_main]
3#![feature(type_alias_impl_trait)] 5#![feature(type_alias_impl_trait)]