aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Schwind <[email protected]>2025-09-29 22:24:19 +0900
committerBrian Schwind <[email protected]>2025-09-29 22:24:19 +0900
commit61bc254879b328a944a36a81080abbadc6431ccf (patch)
tree167d27ff59b0adce6df34349c11ca98a4a4835a2
parent6bb08523c9d93fbddc9fac41b3d33c7c4bf91520 (diff)
Remove 'new_with_config()', just use 'new()'
-rw-r--r--embassy-stm32/src/timer/qei.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/embassy-stm32/src/timer/qei.rs b/embassy-stm32/src/timer/qei.rs
index 2e438bc74..bb152731c 100644
--- a/embassy-stm32/src/timer/qei.rs
+++ b/embassy-stm32/src/timer/qei.rs
@@ -88,15 +88,6 @@ impl<'d, T: GeneralInstance4Channel> Qei<'d, T> {
88 tim: Peri<'d, T>, 88 tim: Peri<'d, T>,
89 ch1: Peri<'d, if_afio!(impl TimerPin<T, CH1, A>)>, 89 ch1: Peri<'d, if_afio!(impl TimerPin<T, CH1, A>)>,
90 ch2: Peri<'d, if_afio!(impl TimerPin<T, CH2, A>)>, 90 ch2: Peri<'d, if_afio!(impl TimerPin<T, CH2, A>)>,
91 ) -> Self {
92 Self::new_with_config(tim, ch1, ch2, Default::default())
93 }
94 /// Create a new quadrature decoder driver, with a given [`Config`].
95 #[allow(unused)]
96 pub fn new_with_config<CH1: QeiChannel, CH2: QeiChannel, #[cfg(afio)] A>(
97 tim: Peri<'d, T>,
98 ch1: Peri<'d, if_afio!(impl TimerPin<T, CH1, A>)>,
99 ch2: Peri<'d, if_afio!(impl TimerPin<T, CH2, A>)>,
100 config: Config, 91 config: Config,
101 ) -> Self { 92 ) -> Self {
102 // Configure the pins to be used for the QEI peripheral. 93 // Configure the pins to be used for the QEI peripheral.