diff options
| author | eZio Pan <[email protected]> | 2024-02-02 17:45:51 +0800 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-02-10 00:00:43 +0100 |
| commit | 6c690ab259ed15eece329a53a7147e7780f53cf3 (patch) | |
| tree | 80f9c05701ff01c2baa55681d5352b0009eddcd8 /examples | |
| parent | b3cdf3a040ae97923e84eca525505f7eff55e870 (diff) | |
restore original public API of timer, but keep new PAC
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/low_level_timer_api.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32h7/src/bin/low_level_timer_api.rs b/examples/stm32h7/src/bin/low_level_timer_api.rs index 0be3eccb7..cc508c3cf 100644 --- a/examples/stm32h7/src/bin/low_level_timer_api.rs +++ b/examples/stm32h7/src/bin/low_level_timer_api.rs | |||
| @@ -56,11 +56,11 @@ async fn main(_spawner: Spawner) { | |||
| 56 | Timer::after_millis(300).await; | 56 | Timer::after_millis(300).await; |
| 57 | } | 57 | } |
| 58 | } | 58 | } |
| 59 | pub struct SimplePwm32<'d, T: GeneralPurpose32bitInstance> { | 59 | pub struct SimplePwm32<'d, T: CaptureCompare32bitInstance> { |
| 60 | inner: PeripheralRef<'d, T>, | 60 | inner: PeripheralRef<'d, T>, |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | impl<'d, T: GeneralPurpose32bitInstance> SimplePwm32<'d, T> { | 63 | impl<'d, T: CaptureCompare32bitInstance> SimplePwm32<'d, T> { |
| 64 | pub fn new( | 64 | pub fn new( |
| 65 | tim: impl Peripheral<P = T> + 'd, | 65 | tim: impl Peripheral<P = T> + 'd, |
| 66 | ch1: impl Peripheral<P = impl Channel1Pin<T>> + 'd, | 66 | ch1: impl Peripheral<P = impl Channel1Pin<T>> + 'd, |
