aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-10-02 18:51:59 -0500
committerxoviat <[email protected]>2023-10-02 18:51:59 -0500
commitadf9ffb1095a65a375b7426086e6b99ccda3abc1 (patch)
treee2642b038e70931a574128e5a794ea7b4c07aa6d
parentbc203ebe4baedd8fd2923d775631800d0265b04a (diff)
tests/stm32: use default clock config
-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);