From d25b5ce3bec44f4a023403a8b479e034d8386275 Mon Sep 17 00:00:00 2001 From: xoviat Date: Mon, 3 Nov 2025 13:02:08 -0600 Subject: low_power: update api to allow reconfig --- examples/stm32h5/src/bin/stop.rs | 2 -- examples/stm32l5/src/bin/stop.rs | 2 -- 2 files changed, 4 deletions(-) (limited to 'examples') diff --git a/examples/stm32h5/src/bin/stop.rs b/examples/stm32h5/src/bin/stop.rs index 3c4f49f64..29a735ed2 100644 --- a/examples/stm32h5/src/bin/stop.rs +++ b/examples/stm32h5/src/bin/stop.rs @@ -39,8 +39,6 @@ async fn async_main(spawner: Spawner) { // give the RTC to the executor... let rtc = Rtc::new(p.RTC, RtcConfig::default()); - static RTC: StaticCell = StaticCell::new(); - let rtc = RTC.init(rtc); embassy_stm32::low_power::stop_with_rtc(rtc); spawner.spawn(unwrap!(blinky(p.PB4.into()))); diff --git a/examples/stm32l5/src/bin/stop.rs b/examples/stm32l5/src/bin/stop.rs index c34053190..fd2aca372 100644 --- a/examples/stm32l5/src/bin/stop.rs +++ b/examples/stm32l5/src/bin/stop.rs @@ -30,8 +30,6 @@ async fn async_main(spawner: Spawner) { // give the RTC to the executor... let rtc = Rtc::new(p.RTC, RtcConfig::default()); - static RTC: StaticCell = StaticCell::new(); - let rtc = RTC.init(rtc); embassy_stm32::low_power::stop_with_rtc(rtc); spawner.spawn(unwrap!(blinky(p.PC7.into()))); -- cgit