diff options
Diffstat (limited to 'tests/stm32/src/bin/stop.rs')
| -rw-r--r-- | tests/stm32/src/bin/stop.rs | 4 |
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; | |||
| 13 | use embassy_stm32::low_power::{stop_with_rtc, Executor}; | 13 | 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_time::{Duration, Timer}; | 17 | use embassy_time::{Duration, Timer}; |
| 17 | use static_cell::make_static; | 18 | use static_cell::make_static; |
| 18 | 19 | ||
| @@ -28,7 +29,8 @@ fn main() -> ! { | |||
| 28 | async fn async_main(_spawner: Spawner) { | 29 | async 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!"); |
