aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7/src/bin/low_level_timer_api.rs
diff options
context:
space:
mode:
authorpbert <[email protected]>2023-10-11 21:38:41 +0200
committerpbert <[email protected]>2023-10-12 11:04:44 +0200
commitecdd7c0e2f9dcc07e53e136557140d3ccc6a5ee1 (patch)
tree6db9bf875d3e83d94f6bf8e8a2e7ff03a83c5bb4 /examples/stm32h7/src/bin/low_level_timer_api.rs
parentd7d79f3068a4a2d883b078b8900ad194f7c98203 (diff)
enable clock first
Diffstat (limited to 'examples/stm32h7/src/bin/low_level_timer_api.rs')
-rw-r--r--examples/stm32h7/src/bin/low_level_timer_api.rs2
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);