diff options
| author | Jakob <[email protected]> | 2025-11-15 20:19:06 +0100 |
|---|---|---|
| committer | Jakob <[email protected]> | 2025-11-15 20:19:06 +0100 |
| commit | 4793f59cde20203b33dca7222d12cbd9f95d5e1c (patch) | |
| tree | d6f12fcc9efa82f87907b80666b7ab07742f84c0 /embassy-stm32/src/timer/input_capture.rs | |
| parent | 67af86d664cd84122824d0a039ce366f2dcdae03 (diff) | |
Add separate method for generating update event. Make sure values are loaded into shadow registers before starting the timer.
Diffstat (limited to 'embassy-stm32/src/timer/input_capture.rs')
| -rw-r--r-- | embassy-stm32/src/timer/input_capture.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/timer/input_capture.rs b/embassy-stm32/src/timer/input_capture.rs index 2a4ec2db0..9cf0f8c34 100644 --- a/embassy-stm32/src/timer/input_capture.rs +++ b/embassy-stm32/src/timer/input_capture.rs | |||
| @@ -60,6 +60,7 @@ impl<'d, T: GeneralInstance4Channel> InputCapture<'d, T> { | |||
| 60 | this.inner.set_counting_mode(counting_mode); | 60 | this.inner.set_counting_mode(counting_mode); |
| 61 | this.inner.set_tick_freq(freq); | 61 | this.inner.set_tick_freq(freq); |
| 62 | this.inner.enable_outputs(); // Required for advanced timers, see GeneralInstance4Channel for details | 62 | this.inner.enable_outputs(); // Required for advanced timers, see GeneralInstance4Channel for details |
| 63 | this.inner.generate_update_event(); | ||
| 63 | this.inner.start(); | 64 | this.inner.start(); |
| 64 | 65 | ||
| 65 | // enable NVIC interrupt | 66 | // enable NVIC interrupt |
