Skip to content

stm32/uart: fix embedded_io::Write impl for BufferedUartTx#6535

Merged
xoviat merged 2 commits into
embassy-rs:mainfrom
rocknitive:fix-stm32-buffered-uart-write
Jul 17, 2026
Merged

stm32/uart: fix embedded_io::Write impl for BufferedUartTx#6535
xoviat merged 2 commits into
embassy-rs:mainfrom
rocknitive:fix-stm32-buffered-uart-write

Conversation

@JcBernack

@JcBernack JcBernack commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

The current implementation of embedded_io::Write for the BufferUartTx driver basically implemented write_all instead of write. The main difference being that write should not block until the whole buffer has been written, rather it should never block if it can write at least one byte.

While at it, I also implemented the embedded_io::WriteReady trait. Together, these changes enable non-blocking writes to the UART.

@xoviat
xoviat added this pull request to the merge queue Jul 17, 2026
Merged via the queue into embassy-rs:main with commit fa8bacd Jul 17, 2026
8 checks passed
@JcBernack
JcBernack deleted the fix-stm32-buffered-uart-write branch July 17, 2026 13:12
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.

3 participants