Skip to content

Async serial write - #510

Merged
jessebraham merged 4 commits into
esp-rs:mainfrom
MabezDev:async/serial-write
May 5, 2023
Merged

Async serial write#510
jessebraham merged 4 commits into
esp-rs:mainfrom
MabezDev:async/serial-write

Conversation

@MabezDev

@MabezDev MabezDev commented May 4, 2023

Copy link
Copy Markdown
Member

This implements embedded_hal_async::serial::Write for Uart. This is implemented through the FIFO + Interrupts.

In the future (particularly for writes > FIFO size) it will be more efficient to use the DMA.

@MabezDev
MabezDev requested review from bjoernQ and jessebraham May 4, 2023 14:27
@MabezDev
MabezDev force-pushed the async/serial-write branch 4 times, most recently from 2fd7543 to c4ecd53 Compare May 4, 2023 15:33

@bjoernQ bjoernQ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Great we have this now

@MabezDev
MabezDev force-pushed the async/serial-write branch from 0c99f04 to 057ac98 Compare May 5, 2023 11:18

@jessebraham jessebraham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for taking care of this!

@jessebraham
jessebraham merged commit 1731169 into esp-rs:main May 5, 2023
i404788 pushed a commit to i404788/esp-hal that referenced this pull request Jul 22, 2023
* Initial async_{write|flush} implementations

- ESP32C3 + UART0 example

* Support UART1 & UART2

* Add examples for all chips

* reduce number of wakers depending on uart count
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