aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-09-01 17:30:27 -0500
committerGitHub <[email protected]>2023-09-02 00:30:27 +0200
commit1d87ec9cc36442542814d6dca7ae8e71068820e1 (patch)
tree1585285654a8e2a912d51073993d0cc733dbd5be
parentb74645e25960c6d4160b5a150d2e6bf239cef9c8 (diff)
stm32/qei: fix struct naming (#1852)
Co-authored-by: xoviat <[email protected]>
-rw-r--r--embassy-stm32/src/timer/qei.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/timer/qei.rs b/embassy-stm32/src/timer/qei.rs
index c0f9288a5..15f2c3a79 100644
--- a/embassy-stm32/src/timer/qei.rs
+++ b/embassy-stm32/src/timer/qei.rs
@@ -43,11 +43,11 @@ macro_rules! channel_impl {
43channel_impl!(new_ch1, Ch1, Channel1Pin); 43channel_impl!(new_ch1, Ch1, Channel1Pin);
44channel_impl!(new_ch2, Ch2, Channel2Pin); 44channel_impl!(new_ch2, Ch2, Channel2Pin);
45 45
46pub struct SimplePwm<'d, T> { 46pub struct Qei<'d, T> {
47 _inner: PeripheralRef<'d, T>, 47 _inner: PeripheralRef<'d, T>,
48} 48}
49 49
50impl<'d, T: CaptureCompare16bitInstance> SimplePwm<'d, T> { 50impl<'d, T: CaptureCompare16bitInstance> Qei<'d, T> {
51 pub fn new(tim: impl Peripheral<P = T> + 'd, _ch1: QeiPin<'d, T, Ch1>, _ch2: QeiPin<'d, T, Ch2>) -> Self { 51 pub fn new(tim: impl Peripheral<P = T> + 'd, _ch1: QeiPin<'d, T, Ch1>, _ch2: QeiPin<'d, T, Ch2>) -> Self {
52 Self::new_inner(tim) 52 Self::new_inner(tim)
53 } 53 }