Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Rx, Tx resource back to Pin #236

Open
lgjonathan opened this issue May 17, 2024 · 0 comments
Open

Release Rx, Tx resource back to Pin #236

lgjonathan opened this issue May 17, 2024 · 0 comments

Comments

@lgjonathan
Copy link

lgjonathan commented May 17, 2024

Since the Serial Struct does not own the pins, I can't regain the ownership of the pins by calling release()
I was wondering if there's a workaround of this?

My use case is that the tx pin sometimes need to transfer data, but sometimes need to send a specific
amount of duration of ping.

I'd be happy to rewrite the serial module like stm32f4xx_hal if this feature requires a rewrite.
stm32f4xx-hal provides a way to release the pin ownership: stm32-rs/stm32f4xx-hal#748

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

No branches or pull requests

1 participant