aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliebman <[email protected]>2025-11-03 12:59:06 -0800
committerliebman <[email protected]>2025-11-03 12:59:06 -0800
commit9f9ce2274a96f9d5395c814fc139abe594453625 (patch)
tree9dd0ce1991da25ec8686412a93b0c08a52c86f76
parent9131cbd9f2b28ff10be64162a3d55d288f27190a (diff)
stm32wle5 update low-power examples
-rw-r--r--examples/stm32wle5/src/bin/adc.rs2
-rw-r--r--examples/stm32wle5/src/bin/blinky.rs2
-rw-r--r--examples/stm32wle5/src/bin/button_exti.rs2
-rw-r--r--examples/stm32wle5/src/bin/i2c.rs2
4 files changed, 0 insertions, 8 deletions
diff --git a/examples/stm32wle5/src/bin/adc.rs b/examples/stm32wle5/src/bin/adc.rs
index b4af656ed..ff1a5fa16 100644
--- a/examples/stm32wle5/src/bin/adc.rs
+++ b/examples/stm32wle5/src/bin/adc.rs
@@ -74,8 +74,6 @@ async fn async_main(_spawner: Spawner) {
74 // give the RTC to the low_power executor... 74 // give the RTC to the low_power executor...
75 let rtc_config = RtcConfig::default(); 75 let rtc_config = RtcConfig::default();
76 let rtc = Rtc::new(p.RTC, rtc_config); 76 let rtc = Rtc::new(p.RTC, rtc_config);
77 static RTC: StaticCell<Rtc> = StaticCell::new();
78 let rtc = RTC.init(rtc);
79 embassy_stm32::low_power::stop_with_rtc(rtc); 77 embassy_stm32::low_power::stop_with_rtc(rtc);
80 78
81 info!("Hello World!"); 79 info!("Hello World!");
diff --git a/examples/stm32wle5/src/bin/blinky.rs b/examples/stm32wle5/src/bin/blinky.rs
index a7a571cb1..1191a1157 100644
--- a/examples/stm32wle5/src/bin/blinky.rs
+++ b/examples/stm32wle5/src/bin/blinky.rs
@@ -72,8 +72,6 @@ async fn async_main(_spawner: Spawner) {
72 // give the RTC to the low_power executor... 72 // give the RTC to the low_power executor...
73 let rtc_config = RtcConfig::default(); 73 let rtc_config = RtcConfig::default();
74 let rtc = Rtc::new(p.RTC, rtc_config); 74 let rtc = Rtc::new(p.RTC, rtc_config);
75 static RTC: StaticCell<Rtc> = StaticCell::new();
76 let rtc = RTC.init(rtc);
77 embassy_stm32::low_power::stop_with_rtc(rtc); 75 embassy_stm32::low_power::stop_with_rtc(rtc);
78 76
79 info!("Hello World!"); 77 info!("Hello World!");
diff --git a/examples/stm32wle5/src/bin/button_exti.rs b/examples/stm32wle5/src/bin/button_exti.rs
index c8083a240..f07f9724d 100644
--- a/examples/stm32wle5/src/bin/button_exti.rs
+++ b/examples/stm32wle5/src/bin/button_exti.rs
@@ -74,8 +74,6 @@ async fn async_main(_spawner: Spawner) {
74 // give the RTC to the low_power executor... 74 // give the RTC to the low_power executor...
75 let rtc_config = RtcConfig::default(); 75 let rtc_config = RtcConfig::default();
76 let rtc = Rtc::new(p.RTC, rtc_config); 76 let rtc = Rtc::new(p.RTC, rtc_config);
77 static RTC: StaticCell<Rtc> = StaticCell::new();
78 let rtc = RTC.init(rtc);
79 embassy_stm32::low_power::stop_with_rtc(rtc); 77 embassy_stm32::low_power::stop_with_rtc(rtc);
80 78
81 info!("Hello World!"); 79 info!("Hello World!");
diff --git a/examples/stm32wle5/src/bin/i2c.rs b/examples/stm32wle5/src/bin/i2c.rs
index 4a56773e9..af07f911e 100644
--- a/examples/stm32wle5/src/bin/i2c.rs
+++ b/examples/stm32wle5/src/bin/i2c.rs
@@ -81,8 +81,6 @@ async fn async_main(_spawner: Spawner) {
81 // give the RTC to the low_power executor... 81 // give the RTC to the low_power executor...
82 let rtc_config = RtcConfig::default(); 82 let rtc_config = RtcConfig::default();
83 let rtc = Rtc::new(p.RTC, rtc_config); 83 let rtc = Rtc::new(p.RTC, rtc_config);
84 static RTC: StaticCell<Rtc> = StaticCell::new();
85 let rtc = RTC.init(rtc);
86 embassy_stm32::low_power::stop_with_rtc(rtc); 84 embassy_stm32::low_power::stop_with_rtc(rtc);
87 85
88 info!("Hello World!"); 86 info!("Hello World!");