aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEicke Hecht <[email protected]>2025-11-24 23:03:02 +0100
committerEicke Hecht <[email protected]>2025-11-24 23:03:02 +0100
commitff939095a2a883361346ea0cf6f2b6f9d1d24936 (patch)
treed7cb3124f258d65d045f92791997c3f9f44b7755
parent96ffbec30a0d17470dd93a6c50f4264060bf1e69 (diff)
fix: Formatting, use nightly...
-rw-r--r--embassy-stm32/src/timer/simple_pwm.rs3
-rw-r--r--examples/stm32f7/src/bin/pwm.rs3
2 files changed, 2 insertions, 4 deletions
diff --git a/embassy-stm32/src/timer/simple_pwm.rs b/embassy-stm32/src/timer/simple_pwm.rs
index 8b738741a..bbe7ef595 100644
--- a/embassy-stm32/src/timer/simple_pwm.rs
+++ b/embassy-stm32/src/timer/simple_pwm.rs
@@ -7,10 +7,9 @@ use super::low_level::{CountingMode, OutputCompareMode, OutputPolarity, Timer};
7use super::ringbuffered::RingBufferedPwmChannel; 7use super::ringbuffered::RingBufferedPwmChannel;
8use super::{Ch1, Ch2, Ch3, Ch4, Channel, GeneralInstance4Channel, TimerChannel, TimerPin}; 8use super::{Ch1, Ch2, Ch3, Ch4, Channel, GeneralInstance4Channel, TimerChannel, TimerPin};
9use crate::Peri; 9use crate::Peri;
10use crate::dma::TransferOptions;
11use crate::dma::WritableRingBuffer;
12#[cfg(not(any(bdma, gpdma)))] 10#[cfg(not(any(bdma, gpdma)))]
13use crate::dma::{Burst, FifoThreshold}; 11use crate::dma::{Burst, FifoThreshold};
12use crate::dma::{TransferOptions, WritableRingBuffer};
14#[cfg(gpio_v2)] 13#[cfg(gpio_v2)]
15use crate::gpio::Pull; 14use crate::gpio::Pull;
16use crate::gpio::{AfType, AnyPin, OutputType, Speed}; 15use crate::gpio::{AfType, AnyPin, OutputType, Speed};
diff --git a/examples/stm32f7/src/bin/pwm.rs b/examples/stm32f7/src/bin/pwm.rs
index c1c7ec6ce..b071eb597 100644
--- a/examples/stm32f7/src/bin/pwm.rs
+++ b/examples/stm32f7/src/bin/pwm.rs
@@ -5,8 +5,7 @@ use defmt::*;
5use embassy_executor::Spawner; 5use embassy_executor::Spawner;
6use embassy_stm32::Config; 6use embassy_stm32::Config;
7use embassy_stm32::gpio::OutputType; 7use embassy_stm32::gpio::OutputType;
8use embassy_stm32::time::Hertz; 8use embassy_stm32::time::{Hertz, mhz};
9use embassy_stm32::time::mhz;
10use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm}; 9use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm};
11use embassy_time::Timer; 10use embassy_time::Timer;
12use {defmt_rtt as _, panic_probe as _}; 11use {defmt_rtt as _, panic_probe as _};