aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/timer/input_capture.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-01-03 17:44:26 +0000
committerGitHub <[email protected]>2025-01-03 17:44:26 +0000
commite68efc2d7cdea195aec112ecb61231e148a282c2 (patch)
tree4c640afd25b54be360db721c765b87abac1e05d1 /embassy-stm32/src/timer/input_capture.rs
parentb127ca9844a7e4e9079800be81d173e2725066c6 (diff)
parenteba8089601450fdf2a666f3d3316c8412cadf470 (diff)
Merge pull request #3714 from elagil/stm32h5_ucpd_example
Fix/clean up STM32H5 UCPD example
Diffstat (limited to 'embassy-stm32/src/timer/input_capture.rs')
-rw-r--r--embassy-stm32/src/timer/input_capture.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/timer/input_capture.rs b/embassy-stm32/src/timer/input_capture.rs
index 341ac2c04..b7c13343c 100644
--- a/embassy-stm32/src/timer/input_capture.rs
+++ b/embassy-stm32/src/timer/input_capture.rs
@@ -129,7 +129,7 @@ impl<'d, T: GeneralInstance4Channel> InputCapture<'d, T> {
129 // Configuration steps from ST RM0390 (STM32F446) chapter 17.3.5 129 // Configuration steps from ST RM0390 (STM32F446) chapter 17.3.5
130 // or ST RM0008 (STM32F103) chapter 15.3.5 Input capture mode 130 // or ST RM0008 (STM32F103) chapter 15.3.5 Input capture mode
131 self.inner.set_input_ti_selection(channel, tisel); 131 self.inner.set_input_ti_selection(channel, tisel);
132 self.inner.set_input_capture_filter(channel, FilterValue::NOFILTER); 132 self.inner.set_input_capture_filter(channel, FilterValue::NO_FILTER);
133 self.inner.set_input_capture_mode(channel, mode); 133 self.inner.set_input_capture_mode(channel, mode);
134 self.inner.set_input_capture_prescaler(channel, 0); 134 self.inner.set_input_capture_prescaler(channel, 0);
135 self.inner.enable_channel(channel, true); 135 self.inner.enable_channel(channel, true);