aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32wle5/src/bin/i2c.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/i2c.rs
parent871189d198b4c8876e8dba36b9cf43bbfd64391c (diff)
stm32/stop: move stop_with_rtc into init
Diffstat (limited to 'examples/stm32wle5/src/bin/i2c.rs')
-rw-r--r--examples/stm32wle5/src/bin/i2c.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/stm32wle5/src/bin/i2c.rs b/examples/stm32wle5/src/bin/i2c.rs
index af07f911e..c31c673c9 100644
--- a/examples/stm32wle5/src/bin/i2c.rs
+++ b/examples/stm32wle5/src/bin/i2c.rs
@@ -7,7 +7,6 @@ use defmt_rtt as _;
7use embassy_executor::Spawner; 7use embassy_executor::Spawner;
8use embassy_stm32::i2c::I2c; 8use embassy_stm32::i2c::I2c;
9use embassy_stm32::low_power::Executor; 9use embassy_stm32::low_power::Executor;
10use embassy_stm32::rtc::{Rtc, RtcConfig};
11use embassy_stm32::time::Hertz; 10use embassy_stm32::time::Hertz;
12use embassy_stm32::{bind_interrupts, i2c, peripherals}; 11use embassy_stm32::{bind_interrupts, i2c, peripherals};
13use embassy_time::{Duration, Timer}; 12use embassy_time::{Duration, Timer};
@@ -78,11 +77,6 @@ async fn async_main(_spawner: Spawner) {
78 defmt_serial::defmt_serial(SERIAL.init(uart)); 77 defmt_serial::defmt_serial(SERIAL.init(uart));
79 } 78 }
80 79
81 // give the RTC to the low_power executor...
82 let rtc_config = RtcConfig::default();
83 let rtc = Rtc::new(p.RTC, rtc_config);
84 embassy_stm32::low_power::stop_with_rtc(rtc);
85
86 info!("Hello World!"); 80 info!("Hello World!");
87 let en3v3 = embassy_stm32::gpio::Output::new( 81 let en3v3 = embassy_stm32::gpio::Output::new(
88 p.PA9, 82 p.PA9,