diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/src/bin/stop.rs | 5 |
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}; | |||
| 14 | use embassy_stm32::rcc::RtcClockSource; | 14 | use embassy_stm32::rcc::RtcClockSource; |
| 15 | use embassy_stm32::rtc::{Rtc, RtcConfig}; | 15 | use embassy_stm32::rtc::{Rtc, RtcConfig}; |
| 16 | use embassy_stm32::time::Hertz; | 16 | use embassy_stm32::time::Hertz; |
| 17 | use embassy_stm32::Config; | ||
| 17 | use embassy_time::{Duration, Timer}; | 18 | use embassy_time::{Duration, Timer}; |
| 18 | use static_cell::make_static; | 19 | use static_cell::make_static; |
| 19 | 20 | ||
| @@ -45,7 +46,9 @@ async fn task_2() { | |||
| 45 | 46 | ||
| 46 | #[embassy_executor::task] | 47 | #[embassy_executor::task] |
| 47 | async fn async_main(spawner: Spawner) { | 48 | async 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); |
