diff options
| author | xoviat <[email protected]> | 2023-09-01 17:30:27 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-02 00:30:27 +0200 |
| commit | 1d87ec9cc36442542814d6dca7ae8e71068820e1 (patch) | |
| tree | 1585285654a8e2a912d51073993d0cc733dbd5be | |
| parent | b74645e25960c6d4160b5a150d2e6bf239cef9c8 (diff) | |
stm32/qei: fix struct naming (#1852)
Co-authored-by: xoviat <[email protected]>
| -rw-r--r-- | embassy-stm32/src/timer/qei.rs | 4 |
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 { | |||
| 43 | channel_impl!(new_ch1, Ch1, Channel1Pin); | 43 | channel_impl!(new_ch1, Ch1, Channel1Pin); |
| 44 | channel_impl!(new_ch2, Ch2, Channel2Pin); | 44 | channel_impl!(new_ch2, Ch2, Channel2Pin); |
| 45 | 45 | ||
| 46 | pub struct SimplePwm<'d, T> { | 46 | pub struct Qei<'d, T> { |
| 47 | _inner: PeripheralRef<'d, T>, | 47 | _inner: PeripheralRef<'d, T>, |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | impl<'d, T: CaptureCompare16bitInstance> SimplePwm<'d, T> { | 50 | impl<'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 | } |
