stm32l0xx-hal icon indicating copy to clipboard operation
stm32l0xx-hal copied to clipboard

Release Rx, Tx resource back to Pin

Open lgjonathan opened this issue 9 months ago • 0 comments

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: https://github.com/stm32-rs/stm32f4xx-hal/issues/748

lgjonathan avatar May 17 '24 03:05 lgjonathan