aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32wle5/src/bin/blinky.rs
diff options
context:
space:
mode:
authorxoviat <[email protected]>2025-11-04 12:26:37 -0600
committerxoviat <[email protected]>2025-11-04 12:26:37 -0600
commit488d06c0e9da673f770b41d8f79bf26227dc6d53 (patch)
tree6112eab36b08caccc0ea9f6b4389c90b84f564d7 /examples/stm32wle5/src/bin/blinky.rs
parent871189d198b4c8876e8dba36b9cf43bbfd64391c (diff)
stm32/stop: move stop_with_rtc into init
Diffstat (limited to 'examples/stm32wle5/src/bin/blinky.rs')
-rw-r--r--examples/stm32wle5/src/bin/blinky.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/stm32wle5/src/bin/blinky.rs b/examples/stm32wle5/src/bin/blinky.rs
index 1191a1157..b2745fdaf 100644
--- a/examples/stm32wle5/src/bin/blinky.rs
+++ b/examples/stm32wle5/src/bin/blinky.rs
@@ -7,7 +7,6 @@ use defmt_rtt as _;
7use embassy_executor::Spawner; 7use embassy_executor::Spawner;
8use embassy_stm32::gpio::{Level, Output, Speed}; 8use embassy_stm32::gpio::{Level, Output, Speed};
9use embassy_stm32::low_power::Executor; 9use embassy_stm32::low_power::Executor;
10use embassy_stm32::rtc::{Rtc, RtcConfig};
11use embassy_time::Timer; 10use embassy_time::Timer;
12use panic_probe as _; 11use panic_probe as _;
13use static_cell::StaticCell; 12use static_cell::StaticCell;
@@ -69,11 +68,6 @@ async fn async_main(_spawner: Spawner) {
69 defmt_serial::defmt_serial(SERIAL.init(uart)); 68 defmt_serial::defmt_serial(SERIAL.init(uart));
70 } 69 }
71 70
72 // give the RTC to the low_power executor...
73 let rtc_config = RtcConfig::default();
74 let rtc = Rtc::new(p.RTC, rtc_config);
75 embassy_stm32::low_power::stop_with_rtc(rtc);
76
77 info!("Hello World!"); 71 info!("Hello World!");
78 72
79 let mut led = Output::new(p.PB5, Level::High, Speed::Low); 73 let mut led = Output::new(p.PB5, Level::High, Speed::Low);