aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32/src/bin/stop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stm32/src/bin/stop.rs')
-rw-r--r--tests/stm32/src/bin/stop.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/stm32/src/bin/stop.rs b/tests/stm32/src/bin/stop.rs
index a490d7b8c..f60ab271a 100644
--- a/tests/stm32/src/bin/stop.rs
+++ b/tests/stm32/src/bin/stop.rs
@@ -13,6 +13,7 @@ use embassy_executor::Spawner;
13use embassy_stm32::low_power::{stop_with_rtc, Executor}; 13use embassy_stm32::low_power::{stop_with_rtc, Executor};
14use embassy_stm32::rcc::RtcClockSource; 14use embassy_stm32::rcc::RtcClockSource;
15use embassy_stm32::rtc::{Rtc, RtcConfig}; 15use embassy_stm32::rtc::{Rtc, RtcConfig};
16use embassy_stm32::time::Hertz;
16use embassy_time::{Duration, Timer}; 17use embassy_time::{Duration, Timer};
17use static_cell::make_static; 18use static_cell::make_static;
18 19
@@ -28,7 +29,8 @@ fn main() -> ! {
28async fn async_main(_spawner: Spawner) { 29async fn async_main(_spawner: Spawner) {
29 let mut config = config(); 30 let mut config = config();
30 31
31 config.rcc.rtc = Some(RtcClockSource::LSI); 32 config.rcc.lse = Some(Hertz(32_768));
33 config.rcc.rtc = Some(RtcClockSource::LSE);
32 34
33 let p = embassy_stm32::init(config); 35 let p = embassy_stm32::init(config);
34 info!("Hello World!"); 36 info!("Hello World!");