aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32/src/bin/fdcan.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-05-01 02:21:06 +0200
committerDario Nieuwenhuis <[email protected]>2024-05-01 02:24:45 +0200
commitfb67fe0a6c155191534955f1230dccaea0e11a94 (patch)
treeac01b69047aeee08983a5149409080d137f19cb1 /tests/stm32/src/bin/fdcan.rs
parentecc910b76dbfa2064f42e6917a7b5654a89b81ed (diff)
stm32: add support for STM32H7[RS] "bootflash line", add HIL tests.
Diffstat (limited to 'tests/stm32/src/bin/fdcan.rs')
-rw-r--r--tests/stm32/src/bin/fdcan.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/stm32/src/bin/fdcan.rs b/tests/stm32/src/bin/fdcan.rs
index b0c0cd82e..20bd3f7e3 100644
--- a/tests/stm32/src/bin/fdcan.rs
+++ b/tests/stm32/src/bin/fdcan.rs
@@ -74,6 +74,20 @@ fn options() -> (Config, TestOptions) {
74 ) 74 )
75} 75}
76 76
77#[cfg(any(feature = "stm32h7s3l8"))]
78fn options() -> (Config, TestOptions) {
79 use embassy_stm32::rcc;
80 let mut c = config();
81 c.rcc.mux.fdcansel = rcc::mux::Fdcansel::HSE;
82 (
83 c,
84 TestOptions {
85 max_latency: Duration::from_micros(1200),
86 max_buffered: 3,
87 },
88 )
89}
90
77#[cfg(any(feature = "stm32g491re", feature = "stm32g431cb"))] 91#[cfg(any(feature = "stm32g491re", feature = "stm32g431cb"))]
78fn options() -> (Config, TestOptions) { 92fn options() -> (Config, TestOptions) {
79 info!("G4 config"); 93 info!("G4 config");