From 2f26c3c5f1380535c5fdd74cd39962338ed51204 Mon Sep 17 00:00:00 2001 From: xoviat Date: Wed, 5 Nov 2025 07:13:15 -0600 Subject: tests: disable rtc for h563 on non-stop --- tests/stm32/Cargo.toml | 2 +- tests/stm32/src/bin/rtc.rs | 4 ++++ tests/stm32/src/bin/stop.rs | 1 + tests/stm32/src/common.rs | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index e75a4ebb1..b92b47be2 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml @@ -73,7 +73,7 @@ teleprobe-meta = "1" embassy-sync = { version = "0.7.2", path = "../../embassy-sync", features = ["defmt"] } embassy-executor = { version = "0.9.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt"] } embassy-time = { version = "0.5.0", path = "../../embassy-time", features = ["defmt", "tick-hz-131_072", "defmt-timestamp-uptime"] } -embassy-stm32 = { version = "0.4.0", path = "../../embassy-stm32", features = [ "defmt", "unstable-pac", "memory-x", "time-driver-any"] } +embassy-stm32 = { version = "0.4.0", path = "../../embassy-stm32", features = [ "defmt", "unstable-pac", "memory-x", "time-driver-any", "_allow-disable-rtc"] } embassy-futures = { version = "0.1.2", path = "../../embassy-futures" } embassy-stm32-wpan = { version = "0.1.0", path = "../../embassy-stm32-wpan", optional = true, features = ["defmt", "stm32wb55rg", "ble"] } embassy-net = { version = "0.7.1", path = "../../embassy-net", features = ["defmt", "tcp", "udp", "dhcpv4", "medium-ethernet"] } diff --git a/tests/stm32/src/bin/rtc.rs b/tests/stm32/src/bin/rtc.rs index 43cf4a411..eb27af4ca 100644 --- a/tests/stm32/src/bin/rtc.rs +++ b/tests/stm32/src/bin/rtc.rs @@ -19,6 +19,10 @@ use embassy_time::Timer; async fn main(_spawner: Spawner) { let mut config = config(); config.rcc.ls = LsConfig::default_lse(); + #[cfg(feature = "stop")] + { + config.rtc._disable_rtc = false; + } let p = init_with_config(config); info!("Hello World!"); diff --git a/tests/stm32/src/bin/stop.rs b/tests/stm32/src/bin/stop.rs index 4b3a775bb..1fe65d867 100644 --- a/tests/stm32/src/bin/stop.rs +++ b/tests/stm32/src/bin/stop.rs @@ -49,6 +49,7 @@ async fn async_main(spawner: Spawner) { let mut config = Config::default(); config.rcc.ls = LsConfig::default_lse(); + config.rtc._disable_rtc = false; // System Clock seems cannot be greater than 16 MHz #[cfg(any(feature = "stm32h563zi", feature = "stm32h503rb"))] diff --git a/tests/stm32/src/common.rs b/tests/stm32/src/common.rs index 2bd934d6f..096cce947 100644 --- a/tests/stm32/src/common.rs +++ b/tests/stm32/src/common.rs @@ -468,6 +468,8 @@ pub fn config() -> Config { config.rcc.apb3_pre = APBPrescaler::DIV1; config.rcc.sys = Sysclk::PLL1_P; config.rcc.voltage_scale = VoltageScale::Scale0; + + config.rtc._disable_rtc = true; } #[cfg(feature = "stm32h503rb")] -- cgit