aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-10-02 23:56:33 +0000
committerGitHub <[email protected]>2023-10-02 23:56:33 +0000
commit58280048e332fadd73dc8b48588b0112c61b8ff9 (patch)
tree5ccc1a454a223dc0782088e86412f603b33c3b0e /tests
parent9dc927250c0a767b003aa0ff73b425398156fd5a (diff)
parent00824af82ba8bfa5cd8226ee057719595d8d10af (diff)
Merge pull request #2002 from embassy-rs/fix-stop
stm32: fix stop
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/stop.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/stm32/src/bin/stop.rs b/tests/stm32/src/bin/stop.rs
index 48d59b794..55c4aa900 100644
--- a/tests/stm32/src/bin/stop.rs
+++ b/tests/stm32/src/bin/stop.rs
@@ -14,6 +14,7 @@ use 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_stm32::time::Hertz;
17use embassy_stm32::Config;
17use embassy_time::{Duration, Timer}; 18use embassy_time::{Duration, Timer};
18use static_cell::make_static; 19use static_cell::make_static;
19 20
@@ -45,7 +46,9 @@ async fn task_2() {
45 46
46#[embassy_executor::task] 47#[embassy_executor::task]
47async fn async_main(spawner: Spawner) { 48async fn async_main(spawner: Spawner) {
48 let mut config = config(); 49 let _ = config();
50
51 let mut config = Config::default();
49 52
50 config.rcc.lse = Some(Hertz(32_768)); 53 config.rcc.lse = Some(Hertz(32_768));
51 config.rcc.rtc = Some(RtcClockSource::LSE); 54 config.rcc.rtc = Some(RtcClockSource::LSE);