diff options
| author | xoviat <[email protected]> | 2025-11-05 07:13:15 -0600 |
|---|---|---|
| committer | xoviat <[email protected]> | 2025-11-05 07:13:15 -0600 |
| commit | 2f26c3c5f1380535c5fdd74cd39962338ed51204 (patch) | |
| tree | 8f5e137e832b00f4cca0e80634747ccd4121a7f5 /tests/stm32/src/bin | |
| parent | ff42c61dc6c0f870b4022aca52f3c45d992ae735 (diff) | |
tests: disable rtc for h563 on non-stop
Diffstat (limited to 'tests/stm32/src/bin')
| -rw-r--r-- | tests/stm32/src/bin/rtc.rs | 4 | ||||
| -rw-r--r-- | tests/stm32/src/bin/stop.rs | 1 |
2 files changed, 5 insertions, 0 deletions
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; | |||
| 19 | async fn main(_spawner: Spawner) { | 19 | async fn main(_spawner: Spawner) { |
| 20 | let mut config = config(); | 20 | let mut config = config(); |
| 21 | config.rcc.ls = LsConfig::default_lse(); | 21 | config.rcc.ls = LsConfig::default_lse(); |
| 22 | #[cfg(feature = "stop")] | ||
| 23 | { | ||
| 24 | config.rtc._disable_rtc = false; | ||
| 25 | } | ||
| 22 | 26 | ||
| 23 | let p = init_with_config(config); | 27 | let p = init_with_config(config); |
| 24 | info!("Hello World!"); | 28 | 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) { | |||
| 49 | 49 | ||
| 50 | let mut config = Config::default(); | 50 | let mut config = Config::default(); |
| 51 | config.rcc.ls = LsConfig::default_lse(); | 51 | config.rcc.ls = LsConfig::default_lse(); |
| 52 | config.rtc._disable_rtc = false; | ||
| 52 | 53 | ||
| 53 | // System Clock seems cannot be greater than 16 MHz | 54 | // System Clock seems cannot be greater than 16 MHz |
| 54 | #[cfg(any(feature = "stm32h563zi", feature = "stm32h503rb"))] | 55 | #[cfg(any(feature = "stm32h563zi", feature = "stm32h503rb"))] |
