diff options
| author | xoviat <[email protected]> | 2023-10-02 23:56:33 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-02 23:56:33 +0000 |
| commit | 58280048e332fadd73dc8b48588b0112c61b8ff9 (patch) | |
| tree | 5ccc1a454a223dc0782088e86412f603b33c3b0e /tests | |
| parent | 9dc927250c0a767b003aa0ff73b425398156fd5a (diff) | |
| parent | 00824af82ba8bfa5cd8226ee057719595d8d10af (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.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); |
