You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a use case that I need to send a pulse with UART before communicating.
So my approach was to call set_high, set_low and delay to send a pulse.
But once the USART consumes the pin, I couldn't release the pin back to output pin.
From what I see, Serial::new() and Serial::release() is not bidirectional because Tx takes the ownership of the underlying pin.
I was wondering if there's a way to release Tx back to Pin?
(so I can call into_push_pull_output)
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hi,
I have a use case that I need to send a pulse with UART before communicating.
So my approach was to call
set_high
,set_low
anddelay
to send a pulse.But once the USART consumes the pin, I couldn't release the pin back to output pin.
From what I see,
Serial::new()
andSerial::release()
is not bidirectional because Tx takes the ownership of the underlying pin.I was wondering if there's a way to release
Tx
back toPin
?(so I can call into_push_pull_output)
Thanks in advance
The text was updated successfully, but these errors were encountered: