aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32/src/bin/stop.rs
diff options
context:
space:
mode:
authoreZio Pan <[email protected]>2024-04-27 21:37:58 +0800
committereZio Pan <[email protected]>2024-04-28 00:33:02 +0800
commitd9e59e8e42ea009e365bb893b91d81fe47fe927d (patch)
treec6aa9f34ef6cecc3e9bad121aea4f04d7258bdb8 /tests/stm32/src/bin/stop.rs
parent34074e6eb0741e084653b3ef71163393741f558b (diff)
low power for h5
Diffstat (limited to 'tests/stm32/src/bin/stop.rs')
-rw-r--r--tests/stm32/src/bin/stop.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/stm32/src/bin/stop.rs b/tests/stm32/src/bin/stop.rs
index 000296d46..c1106bb2f 100644
--- a/tests/stm32/src/bin/stop.rs
+++ b/tests/stm32/src/bin/stop.rs
@@ -51,6 +51,13 @@ async fn async_main(spawner: Spawner) {
51 let mut config = Config::default(); 51 let mut config = Config::default();
52 config.rcc.ls = LsConfig::default_lse(); 52 config.rcc.ls = LsConfig::default_lse();
53 53
54 // System Clock seems cannot be greater than 16 MHz
55 #[cfg(any(feature = "stm32h563zi", feature = "stm32h503rb"))]
56 {
57 use embassy_stm32::rcc::HSIPrescaler;
58 config.rcc.hsi = Some(HSIPrescaler::DIV4); // 64 MHz HSI will need a /4
59 }
60
54 let p = embassy_stm32::init(config); 61 let p = embassy_stm32::init(config);
55 info!("Hello World!"); 62 info!("Hello World!");
56 63