diff options
Diffstat (limited to 'examples/stm32h7/src/bin/low_level_timer_api.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/low_level_timer_api.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/low_level_timer_api.rs b/examples/stm32h7/src/bin/low_level_timer_api.rs index 757ee3286..5841efb24 100644 --- a/examples/stm32h7/src/bin/low_level_timer_api.rs +++ b/examples/stm32h7/src/bin/low_level_timer_api.rs | |||
| @@ -73,7 +73,7 @@ impl<'d, T: CaptureCompare32bitInstance> SimplePwm32<'d, T> { | |||
| 73 | ) -> Self { | 73 | ) -> Self { |
| 74 | into_ref!(tim, ch1, ch2, ch3, ch4); | 74 | into_ref!(tim, ch1, ch2, ch3, ch4); |
| 75 | 75 | ||
| 76 | T::reset_and_enable(); | 76 | T::enable_and_reset(); |
| 77 | 77 | ||
| 78 | ch1.set_speed(Speed::VeryHigh); | 78 | ch1.set_speed(Speed::VeryHigh); |
| 79 | ch1.set_as_af(ch1.af_num(), AFType::OutputPushPull); | 79 | ch1.set_as_af(ch1.af_num(), AFType::OutputPushPull); |
