Skip to content

embassy-stm32: Prevent InputCapture from dropping CapturePin#5664

Merged
xoviat merged 1 commit intoembassy-rs:mainfrom
narottamroyal:input_capture
Mar 14, 2026
Merged

embassy-stm32: Prevent InputCapture from dropping CapturePin#5664
xoviat merged 1 commit intoembassy-rs:mainfrom
narottamroyal:input_capture

Conversation

@narottamroyal
Copy link
Contributor

CapturePin switched from using Peri<'d, AnyPin> to Flex<'d> in 3e4b65a. However, unlike Peri, Flex implements Drop, which disconnects the pin when CapturePin is dropped and prevents the pin from triggering the interrupt required by InputCapture.

ComplementaryPwm, OnePulse, and SimplePwm had the same issue, which was fixed in 2fba48f, and this PR implements the same fix for InputCapture.

@xoviat xoviat enabled auto-merge March 14, 2026 03:00
@xoviat xoviat added this pull request to the merge queue Mar 14, 2026
Merged via the queue into embassy-rs:main with commit 088d0cf Mar 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants