diff options
| author | xoviat <[email protected]> | 2025-11-04 12:26:37 -0600 |
|---|---|---|
| committer | xoviat <[email protected]> | 2025-11-04 12:26:37 -0600 |
| commit | 488d06c0e9da673f770b41d8f79bf26227dc6d53 (patch) | |
| tree | 6112eab36b08caccc0ea9f6b4389c90b84f564d7 /examples/stm32wle5/src/bin/adc.rs | |
| parent | 871189d198b4c8876e8dba36b9cf43bbfd64391c (diff) | |
stm32/stop: move stop_with_rtc into init
Diffstat (limited to 'examples/stm32wle5/src/bin/adc.rs')
| -rw-r--r-- | examples/stm32wle5/src/bin/adc.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/stm32wle5/src/bin/adc.rs b/examples/stm32wle5/src/bin/adc.rs index ff1a5fa16..8b830a1e6 100644 --- a/examples/stm32wle5/src/bin/adc.rs +++ b/examples/stm32wle5/src/bin/adc.rs | |||
| @@ -7,7 +7,6 @@ use defmt_rtt as _; | |||
| 7 | use embassy_executor::Spawner; | 7 | use embassy_executor::Spawner; |
| 8 | use embassy_stm32::adc::{Adc, SampleTime}; | 8 | use embassy_stm32::adc::{Adc, SampleTime}; |
| 9 | use embassy_stm32::low_power::Executor; | 9 | use embassy_stm32::low_power::Executor; |
| 10 | use embassy_stm32::rtc::{Rtc, RtcConfig}; | ||
| 11 | use embassy_time::Timer; | 10 | use embassy_time::Timer; |
| 12 | use panic_probe as _; | 11 | use panic_probe as _; |
| 13 | use static_cell::StaticCell; | 12 | use static_cell::StaticCell; |
| @@ -71,11 +70,6 @@ async fn async_main(_spawner: Spawner) { | |||
| 71 | defmt_serial::defmt_serial(SERIAL.init(uart)); | 70 | defmt_serial::defmt_serial(SERIAL.init(uart)); |
| 72 | } | 71 | } |
| 73 | 72 | ||
| 74 | // give the RTC to the low_power executor... | ||
| 75 | let rtc_config = RtcConfig::default(); | ||
| 76 | let rtc = Rtc::new(p.RTC, rtc_config); | ||
| 77 | embassy_stm32::low_power::stop_with_rtc(rtc); | ||
| 78 | |||
| 79 | info!("Hello World!"); | 73 | info!("Hello World!"); |
| 80 | 74 | ||
| 81 | let mut adc = Adc::new(p.ADC1); | 75 | let mut adc = Adc::new(p.ADC1); |
